1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-08-01 19:18:28 -04:00

feat(auth): expand shared PAM support for custom policies

- Add support for DMS and System managed factor policies
- Add validated dedicated security-key PAM / U2F Key sources
- Restore U2F OR/AND flows

Related: #2874
Port 1.5
This commit is contained in:
purian23
2026-07-16 09:24:12 -04:00
parent 7c24e85c19
commit 48e36ae146
10 changed files with 544 additions and 105 deletions
@@ -4634,24 +4634,6 @@
"zenbrowser"
]
},
{
"section": "lockAuthSource",
"label": "Authentication Source",
"tabIndex": 11,
"category": "Lock Screen",
"keywords": [
"authentication",
"lock",
"login",
"pam",
"password",
"screen",
"security",
"service",
"source"
],
"icon": "key"
},
{
"section": "lockPamPath",
"label": "Authentication Source",
@@ -4728,10 +4710,14 @@
"fprint",
"lock",
"login",
"managed",
"password",
"primary",
"screen",
"security"
]
"security",
"source"
],
"description": "Managed by the primary PAM source."
},
{
"section": "loginctlLockIntegration",
@@ -4769,12 +4755,16 @@
"key",
"lock",
"login",
"managed",
"password",
"primary",
"screen",
"security",
"source",
"u2f",
"yubikey"
]
],
"description": "Managed by the primary PAM source."
},
{
"section": "_tab_11",
@@ -4814,6 +4804,25 @@
"icon": "palette",
"description": "Font used for the clock and date on the lock screen"
},
{
"section": "lockAuthSource",
"label": "Lock Screen Authentication",
"tabIndex": 11,
"category": "Lock Screen",
"keywords": [
"authentication",
"lock",
"lockscreen",
"login",
"pam",
"password",
"screen",
"security",
"service",
"source"
],
"icon": "key"
},
{
"section": "lockDisplay",
"label": "Lock Screen Display",
@@ -5005,24 +5014,54 @@
],
"description": "Turn off all displays immediately when the lock screen activates"
},
{
"section": "lockU2fPamPath",
"label": "Security Key PAM Source",
"tabIndex": 11,
"category": "Lock Screen",
"keywords": [
"auto",
"bundled",
"installed",
"key",
"lock",
"login",
"pam",
"password",
"screen",
"security",
"service",
"source",
"u2f",
"uses"
],
"description": "Auto uses an installed or bundled key-only service."
},
{
"section": "u2fMode",
"label": "Security key mode",
"tabIndex": 11,
"category": "Lock Screen",
"keywords": [
"alternative",
"button",
"factor",
"fingerprint",
"follows",
"key",
"lock",
"login",
"mode",
"passkey",
"password",
"screen",
"second",
"security",
"u2f",
"uses",
"yubikey"
]
],
"description": "Alternative uses the passkey button. Second factor follows password or fingerprint."
},
{
"section": "lockScreenShowMediaPlayer",
@@ -5159,6 +5198,27 @@
"time"
]
},
{
"section": "lockPamExternallyManaged",
"label": "Use system PAM authentication",
"tabIndex": 11,
"category": "Lock Screen",
"keywords": [
"authentication",
"external",
"lock",
"login",
"managed",
"pam",
"password",
"policy",
"screen",
"security",
"sets",
"system"
],
"description": "System PAM sets the authentication policy."
},
{
"section": "videoScreensaver",
"label": "Video Screensaver",