t/one-core-peak: Reporting SElinux status
authorErwan Velu <erwanaliasr1@gmail.com>
Sun, 17 Oct 2021 19:18:40 +0000 (21:18 +0200)
committerErwan Velu <erwanaliasr1@gmail.com>
Mon, 25 Oct 2021 18:33:24 +0000 (20:33 +0200)
SElinux can influence the overall performance.
Let's report its state

Signed-off-by: Erwan Velu <erwanaliasr1@gmail.com>
t/one-core-peak.sh

index fba4ec954528a843d6b59fb17983482fbc1648eb..08cffcd4091693a64a610ba389c491d60fda292a 100755 (executable)
@@ -241,6 +241,7 @@ show_system() {
     info "system" "KERNEL: $(show_kernel_config_item ${config_item})"
   done
   info "system" "KERNEL: $(cat /proc/cmdline)"
+  info "system" "SElinux: $(getenforce)"
   tsc=$(journalctl -k | grep 'tsc: Refined TSC clocksource calibration:' | awk '{print $11}')
   if [ -n "${tsc}" ]; then
     info "system" "TSC: ${tsc} Mhz"