Recent Changes - Search:

Softwares

.

SELinux-utilities-setenforce

Main.SELinux-utilities-setenforce History

Show minor edits - Show changes to output

November 08, 2011, at 04:05 PM by 117.192.149.40 -
Added line 20:
Changed lines 28-29 from:
Displays the detailed status of a system running SELinux.
to:
'''Displays the detailed status of a system running SELinux'''.
Changed lines 31-55 from:
to:
[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 03:58 PM by 117.192.149.40 -
Added lines 1-35:
(:Google1:)
(:Googlemm:)
----
!!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 :)
(:cellnr:)
/usr/sbin/sestatus -v
(:tableend:)

Displays the detailed status of a system running SELinux.

[@

@]

----
(:Google1:)
(:Googlemm:)
Edit - History - Print - Recent Changes - Search
Page last modified on November 08, 2011, at 04:05 PM