crontab: Use /sys/fs/selinux and /selinux instead of /etc/selinux to find out if SELinux is around.
This commit is contained in:
parent
0bd41f4edb
commit
fa2876b51d
@ -16,7 +16,7 @@ _crontab()
|
||||
|
||||
local -A opts=( [-u]= [-l]= [-r]= [-e]= )
|
||||
[[ $OSTYPE == *linux* ]] && opts[-i]=
|
||||
[ -e /etc/selinux ] && opts[-s]=
|
||||
[[ -d /sys/fs/selinux || -d /selinux ]] && opts[-s]=
|
||||
|
||||
local i
|
||||
for (( i=0; i < ${#words[@]}-1; i++ )); do
|
||||
|
Loading…
x
Reference in New Issue
Block a user