Skip to contentSkip to conversation

Suggestion on the Man Page of setenforce

DISCUSSION Jing He 1 participant 1 message Dec 2, 2024 SELinux security module

lore
Share & tools
lore

Jing He

author
#0 lore raw

Dear SELinux contributors,

May I suggest we elaborate more on the man page of setenforce command -- https://github.com/SELinuxProject/selinux/blob/main/libselinux/man/man8/setenforce.8 ? To clarify the difference between changing SELinux mode using setenforce command and changing it in /etc/SELinux/config file.

Currently some people say if using setenforce command, SELinux can be disabled / enabled immediately without reboot (https://serverfault.com/questions/1042420/selinux-what-are-the-differences-between-setenforce-0-to-permanent-selinux), while some others (https://wiki.gentoo.org/wiki/SELinux/Tutorials/Permissive_versus_enforcing) say it also need to take effective after the reboot.

Thanks!