Recent Changes - Search:




Main.SELinux-utilities-setenforce History

Hide minor edits - Show changes to output

November 08, 2011, at 10:05 AM by -
Added line 20:
Changed lines 28-29 from:
Displays the detailed status of a system running SELinux.
'''Displays the detailed status of a system running SELinux'''.
Changed lines 31-55 from:
[centos@centos ~]$ sudo sestatus -v
[sudo] password for centos:
SELinux status: enabled
SELinuxfs mount: /selinux
Current mode: enforcing
Mode from config file: enforcing
Policy version: 24
Policy from config file: targeted

Process contexts:
Current context: unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
Init context: system_u:system_r:init_t:s0
/sbin/mingetty system_u:system_r:getty_t:s0

File contexts:
Controlling term: unconfined_u:object_r:user_devpts_t:s0
/etc/passwd system_u:object_r:etc_t:s0
/etc/shadow system_u:object_r:shadow_t:s0
/bin/bash system_u:object_r:shell_exec_t:s0
/bin/login system_u:object_r:login_exec_t:s0
/bin/sh system_u:object_r:bin_t:s0 -> system_u:object_r:shell_exec_t:s0
/sbin/agetty system_u:object_r:getty_exec_t:s0
/sbin/init system_u:object_r:init_exec_t:s0
/sbin/mingetty system_u:object_r:getty_exec_t:s0
/usr/sbin/sshd system_u:object_r:sshd_exec_t:s0
Added lines 57-59:

November 08, 2011, at 09:58 AM by -
Added lines 1-35:
!!SELinux Utilities setenforce

'''SELinux Utilities setenforce'''

The following are some of the commonly used SELinux utilities:

/usr/sbin/setenforce — Modifies in real-time the mode in which SELinux runs.

'''For example''':

setenforce 1 — SELinux runs in enforcing mode.

setenforce 0 — SELinux runs in permissive mode.
To actually disable SELinux, you need to either specify the appropriate setenforce parameter in /etc/sysconfig/selinux or pass the parameter selinux=0 to the kernel, either in /etc/grub.conf or at boot time.

(:table border=1 width=70% bgcolor=#cccc99 cellspacing=0 :)
/usr/sbin/sestatus -v

Displays the detailed status of a system running SELinux.



Edit - History - Print - Recent Changes - Search
Page last modified on November 08, 2011, at 10:05 AM