Skip to content

A hardened Linux desktop, rebuilt from scratch, with your Windows apps built in. Free and open source.

2.3 KB
Raw Blame
# Lock screen (kscreenlocker) authentication for Wild OS. Takes precedence over
# /usr/lib/pam.d/kde.
#
# The stock file includes common-auth, where Kicksecure adds pam_faillock to
# count failed logins. Recording a failure needs root, but the lock screen
# runs as the user, so every attempt printed "Permission denied" from the
# tally file instead of unlocking cleanly. Here the password is checked by
# pam_unix alone. The lock screen is local and kscreenlocker already waits
# after each failed attempt; sign-in through SDDM, the console and sudo keep
# Kicksecure's full stack, including the lockout.
auth    requisite       pam_nologin.so
auth    required        pam_succeed_if.so user != root quiet_success
# The PIN from Settings > Accounts > Sign-in options, typed in the password
# box. The right PIN skips the three password lines below; anything else,
# a missing module included, carries on to the password as before. The
# sign-in screen takes the PIN through common-auth (the wildos-pin PAM
# profile).
auth    [success=3 default=ignore]      pam_wildos_pin.so
# nullok: the live session user has no password; installed accounts always
# do, because the installer refuses an empty one.
auth    required        pam_unix.so nullok try_first_pass
# A password unlock lets the fingerprint back in for Advanced protection's
# "Fingerprint needs your password sometimes". fingerprint-stamp checks
# the password again itself, so a wrong one notes nothing.
auth    optional        pam_exec.so quiet seteuid expose_authtok /usr/libexec/wildos/fingerprint-stamp
auth    optional        pam_kwallet5.so
# Where the right PIN lands. It changes nothing for a password: a wrong
# one has already failed at pam_unix, which is required.
auth    required        pam_permit.so

@include common-account

session [success=ok ignore=ignore module_unknown=ignore default=bad] pam_selinux.so close
session required        pam_loginuid.so
session [success=ok ignore=ignore module_unknown=ignore default=bad] pam_selinux.so open
session optional        pam_keyinit.so force revoke
session required        pam_limits.so
session required        pam_env.so readenv=1
session required        pam_env.so readenv=1 envfile=/etc/default/locale
@include common-session
session optional        pam_kwallet5.so auto_start

@include common-password