mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-05-17 15:10:22 -04:00
fix: apply PAM wheal only to su
PAM service
This commit is contained in:
parent
40b23cfad4
commit
d4767b7520
2 changed files with 18 additions and 0 deletions
17
usr/libexec/security-misc/pam_only_if_su
Executable file
17
usr/libexec/security-misc/pam_only_if_su
Executable file
|
@ -0,0 +1,17 @@
|
|||
#!/bin/bash
|
||||
|
||||
## Copyright (C) 2019 - 2025 ENCRYPTED SUPPORT LLC <adrelanos@whonix.org>
|
||||
## See the file COPYING for copying conditions.
|
||||
|
||||
## Similar to:
|
||||
## /usr/libexec/security-misc/pam_only_if_login
|
||||
|
||||
set -x
|
||||
|
||||
true "PAM_SERVICE: $PAM_SERVICE"
|
||||
|
||||
if [ "$PAM_SERVICE" = "su" ]; then
|
||||
exit 1
|
||||
else
|
||||
exit 0
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue