pam.req.in: Add optional modules support

This commit is contained in:
Дмитрий Левин 2009-06-26 00:09:07 +00:00
parent d4327f8968
commit eef44cccfc

View File

@ -42,6 +42,9 @@ sed -ne 's#^\(account\|auth\|password\|session\)[[:space:]]\+\(requisite\|requir
# pam_module.so* # pam_module.so*
sed -ne 's#^\(account\|auth\|password\|session\)[[:space:]]\+\(requisite\|required\|sufficient\|optional\)[[:space:]]\+\(/lib[0-9]*/security/\)\?\([^.[:space:]]\+\.so[^[:space:]]\+\).*#PAM(\4)#pg' <"$file" |sort -u sed -ne 's#^\(account\|auth\|password\|session\)[[:space:]]\+\(requisite\|required\|sufficient\|optional\)[[:space:]]\+\(/lib[0-9]*/security/\)\?\([^.[:space:]]\+\.so[^[:space:]]\+\).*#PAM(\4)#pg' <"$file" |sort -u
# libpam(optional_module)
sed -n 's/^[[:space:]]*-.*/libpam(optional_module)/p' <"$file" |sort -u
# libpam(include), libpam(substack) # libpam(include), libpam(substack)
sed -ne 's#^\(account\|auth\|password\|session\)[[:space:]]\+\(include\|substack\)[[:space:]].*#libpam(\2)#pg' <"$file" |sort -u sed -ne 's#^\(account\|auth\|password\|session\)[[:space:]]\+\(include\|substack\)[[:space:]].*#libpam(\2)#pg' <"$file" |sort -u