85ffb3aebf
The content of this branch was automatically imported from Fedora ELN with the following as its source: https://src.fedoraproject.org/rpms/libselinux#1f5682248b0510c849008907b03abe3eda549aa6
7 lines
334 B
Ruby
7 lines
334 B
Ruby
require 'selinux'
|
|
print "selinux\n"
|
|
print "Is selinux enabled? " + Selinux.is_selinux_enabled().to_s + "\n"
|
|
print "Is selinux enforce? " + Selinux.security_getenforce().to_s + "\n"
|
|
print "Setfscreatecon? " + Selinux.setfscreatecon("system_u:object_r:etc_t:s0").to_s + "\n"
|
|
print "/etc -> " + Selinux.matchpathcon("/etc", 0)[1] + "\n"
|