mirror of
https://github.com/carlospolop/PEASS-ng
synced 2025-02-24 23:15:25 +01:00
Update 1_system_information.sh
This commit is contained in:
parent
ff96d02125
commit
4ba0f6b6c2
@ -161,6 +161,10 @@ else
|
|||||||
echo_not_found "AppArmor"
|
echo_not_found "AppArmor"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
#-- SY) AppArmor2
|
||||||
|
print_list "AppArmor profile? .............. "$NC
|
||||||
|
(cat /proc/self/attr/current 2>/dev/null || echo "unconfined") | sed "s,unconfined,${SED_RED}," | sed "s,kernel,${SED_GREEN},"
|
||||||
|
|
||||||
#-- SY) LinuxONE
|
#-- SY) LinuxONE
|
||||||
print_list "is linuxONE? ................... "$NC
|
print_list "is linuxONE? ................... "$NC
|
||||||
( (uname -a | grep "s390x" >/dev/null 2>&1) && echo "Yes" || echo_not_found "s390x")
|
( (uname -a | grep "s390x" >/dev/null 2>&1) && echo "Yes" || echo_not_found "s390x")
|
||||||
@ -185,10 +189,6 @@ print_list "SELinux enabled? ............... "$NC
|
|||||||
print_list "Seccomp enabled? ............... "$NC
|
print_list "Seccomp enabled? ............... "$NC
|
||||||
([ "$(grep Seccomp /proc/self/status 2>/dev/null | grep -v 0)" ] && echo "enabled" || echo "disabled") | sed "s,disabled,${SED_RED}," | sed "s,enabled,${SED_GREEN},"
|
([ "$(grep Seccomp /proc/self/status 2>/dev/null | grep -v 0)" ] && echo "enabled" || echo "disabled") | sed "s,disabled,${SED_RED}," | sed "s,enabled,${SED_GREEN},"
|
||||||
|
|
||||||
#-- SY) AppArmor
|
|
||||||
print_list "AppArmor profile? .............. "$NC
|
|
||||||
(cat /proc/self/attr/current 2>/dev/null || echo "unconfined") | sed "s,unconfined,${SED_RED}," | sed "s,kernel,${SED_GREEN},"
|
|
||||||
|
|
||||||
#-- SY) AppArmor
|
#-- SY) AppArmor
|
||||||
print_list "User namespace? ................ "$NC
|
print_list "User namespace? ................ "$NC
|
||||||
if [ "$(cat /proc/self/uid_map 2>/dev/null)" ]; then echo "enabled" | sed "s,enabled,${SED_GREEN},"; else echo "disabled" | sed "s,disabled,${SED_RED},"; fi
|
if [ "$(cat /proc/self/uid_map 2>/dev/null)" ]; then echo "enabled" | sed "s,enabled,${SED_GREEN},"; else echo "disabled" | sed "s,disabled,${SED_RED},"; fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user