mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-11-25 12:56:23 -05:00
debugging
This commit is contained in:
parent
45126cede6
commit
fc1b865dd7
1 changed files with 3 additions and 0 deletions
|
|
@ -22,6 +22,7 @@ elif [ -r /proc/1/cmdline ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$kernel_cmdline" =~ 'boot-role=sysmaint' ]]; then
|
if [[ "$kernel_cmdline" =~ 'boot-role=sysmaint' ]]; then
|
||||||
|
true "INFO: session type: sysmaint session"
|
||||||
if [ "$PAM_USER" != 'sysmaint' ]; then
|
if [ "$PAM_USER" != 'sysmaint' ]; then
|
||||||
printf '%s\n' 'ERROR: Rejecting non-sysmaint account in sysmaint session!'
|
printf '%s\n' 'ERROR: Rejecting non-sysmaint account in sysmaint session!'
|
||||||
exit 1
|
exit 1
|
||||||
|
|
@ -30,6 +31,8 @@ if [[ "$kernel_cmdline" =~ 'boot-role=sysmaint' ]]; then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
true "INFO: session type: user session"
|
||||||
|
|
||||||
if ! output="$(/usr/libexec/helper-scripts/get-user-list)"; then
|
if ! output="$(/usr/libexec/helper-scripts/get-user-list)"; then
|
||||||
printf '%s\n' 'ERROR: Failed to get user list!'
|
printf '%s\n' 'ERROR: Failed to get user list!'
|
||||||
exit 1
|
exit 1
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue