Remove selinux_enforcing? method
parent
5bc24d048c
commit
f3ee870d72
|
@ -178,18 +178,6 @@ module Kernel
|
||||||
rescue
|
rescue
|
||||||
raise 'Could not determine SELinux status'
|
raise 'Could not determine SELinux status'
|
||||||
end
|
end
|
||||||
|
|
||||||
#
|
|
||||||
# Returns true if SELinux is in enforcing mode
|
|
||||||
#
|
|
||||||
# @return [Boolean]
|
|
||||||
#
|
|
||||||
def selinux_enforcing?
|
|
||||||
cmd_exec('/usr/sbin/getenforce').to_s.include? 'Enforcing'
|
|
||||||
rescue
|
|
||||||
raise 'Could not determine SELinux encforcing status'
|
|
||||||
end
|
|
||||||
|
|
||||||
end # Kernel
|
end # Kernel
|
||||||
end # Linux
|
end # Linux
|
||||||
end # Post
|
end # Post
|
||||||
|
|
Loading…
Reference in New Issue