use $PAM_SO_SUFFIX
This commit is contained in:
parent
276ced7ca5
commit
ebec74ba89
@ -26,7 +26,10 @@ file="$1"
|
||||
head -1 "$file" |grep -qs '^#%PAM' || exit 0
|
||||
|
||||
# pam_module.so
|
||||
sed -ne 's#^\(account\|auth\|password\|session\)[[:space:]]\+\(requisite\|required\|sufficient\|optional\)[[:space:]]\+\(/lib/security/\)\?\([^[:space:]]\+\).*#\4#pg' <"$file" |sort -u
|
||||
sed -ne 's#^\(account\|auth\|password\|session\)[[:space:]]\+\(requisite\|required\|sufficient\|optional\)[[:space:]]\+\(/lib/security/\)\?\([^.[:space:]]\+\.so\)[[:space:]].*#\4'$PAM_SO_SUFFIX'#pg' <"$file" |sort -u
|
||||
|
||||
# pam_module.so*
|
||||
sed -ne 's#^\(account\|auth\|password\|session\)[[:space:]]\+\(requisite\|required\|sufficient\|optional\)[[:space:]]\+\(/lib/security/\)\?\([^.[:space:]]\+\.so[^[:space:]]\+\).*#\4#pg' <"$file" |sort -u
|
||||
|
||||
# libpam(include)
|
||||
sed -ne 's#^\(account\|auth\|password\|session\)[[:space:]]\+include[[:space:]].*#libpam(include)#pg' <"$file" |sort -u
|
||||
|
Loading…
Reference in New Issue
Block a user