diff options
-rwxr-xr-x | systemd/fedora-readonly | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/systemd/fedora-readonly b/systemd/fedora-readonly index 83b1747b..a3679580 100755 --- a/systemd/fedora-readonly +++ b/systemd/fedora-readonly @@ -11,7 +11,7 @@ HOSTNAME="$(hostname)" # Check SELinux status SELINUX_STATE= -if [ -e "/sys/fs/selinux/enforce" ] && [ "$(cat /proc/self/attr/current)" != "kernel" ]; then +if [ -e "/sys/fs/selinux/enforce" ] && [ "$(cat /proc/self/attr/current | tr -d '\000' )" != "kernel" ]; then if [ -r "/sys/fs/selinux/enforce" ] ; then SELINUX_STATE=$(cat "/sys/fs/selinux/enforce") else |