Commit 03d0730c authored by root's avatar root

Better detection of SELinux

parent a62e091d
......@@ -68,7 +68,8 @@ LVMDisks="$(lsblk -b | egrep -i lvm | awk '{print $4" "$NF}' | egrep -vi swap |
# Flags
# SELinux
SELinux="$(if sestatus &>/dev/null; then sestatus | egrep "^Current mode:|^SELinux status:" | awk '{print $NF}'; else echo "Not present"; fi)"
#SELinux="$(if sestatus &>/dev/null; then sestatus | egrep "^Current mode:|^SELinux status:" | awk '{print $NF}'; else echo "Not present"; fi)"
SELinux="$(if sestatus &>/dev/null; then sestatus | egrep "^Current mode:|^SELinux status:" | awk '{print $NF}' | sed -z 's/\n/; /g;s/; $/\n/g'; else echo "Not present"; fi)"
# CPU bugs
CPUBugs="$(egrep "^bugs" /proc/cpuinfo | cut -d: -f2 | cut -c2- | uniq)"
# Ex: CPUBugs='cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs itlb_multihit'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment