setenforce(8) SELinux Command Line documentation setenforce(8)NAME
setenforce - modify the mode SELinux is running in.
setenforce [ Enforcing | Permissive | 1 | 0 ]
Use Enforcing or 1 to put SELinux in enforcing mode.
Use Permissive or 0 to put SELinux in permissive mode.
If SELinux is disabled and you want to enable it, or SELinux is enabled and you want to disable it, please see selinux(8).
Dan Walsh, <email@example.com>
SEE ALSO selinux(8), getenforce(1), selinuxenabled(1)firstname.lastname@example.org 7 April 2004 setenforce(8)
Check Out this Related Man Page
security_load_policy(3) SELinux API documentation security_load_policy(3)NAME
security_load_policy - load a new SELinux policy
int security_load_policy(void *data, size_t len);
int selinux_mkload_policy(int preservebools);
int selinux_init_load_policy(int *enforce);
security_load_policy loads a new policy, returns 0 for success and -1 for error.
selinux_mkload_policy makes a policy image and loads it. This function provides a higher level interface for loading policy than secu-
rity_load_policy, internally determining the right policy version, locating and opening the policy file, mapping it into memory, manipulat-
ing it as needed for current boolean settings and/or local definitions, and then calling security_load_policy to load it. preservebools is
a boolean flag indicating whether current policy boolean values should be preserved into the new policy (if 1) or reset to the saved policy
settings (if 0). The former case is the default for policy reloads, while the latter case is an option for policy reloads but is primarily
used for the initial policy load. selinux_init_load_policy performs the initial policy load. This function determines the desired enforc-
ing mode, sets the enforce argument accordingly for the caller to use, sets the SELinux kernel enforcing status to match it, and loads the
policy. It also internally handles the initial selinuxfs mount required to perform these actions.
It should also be noted that after the initial policy load, the SELinux kernel code cannot anymore be disabled and the selinuxfs cannot be
unmounted using a call to security_disable(3). Therefore, after the initial policy load, the only operational changes are those permitted
by setenforce(3) (i.e. eventually setting the framework in permissive mode rather than in enforcing one).
returns zero on success or -1 on error.
This manual page has been written by Guido Trentalancia <email@example.com>
SEE ALSO selinux(8), security_disable(3), setenforce(1)firstname.lastname@example.org 3 November 2009 security_load_policy(3)
I have recently started Apache on my Fedora 11. I placed a working html file in the ServerRoot.
I can wget and telnet from within the localhost and access the index.html.
My telnet to port 80 from another machine works fine but when I try to access the web page through Firefox I... (8 Replies)
i am new to linux. iam using centos 6.2, and trying to configure ftp server in my local network, i have seen one fpt server how to videos tutriol but iam unable to follow i have some confussion in /etc/vsftpd/vsftpd.conf about userlist_enable and userlist_deny,... (6 Replies)
I have an external drive (1 TB) attached via usb to a server running Red Hat Linux 6.2. During an application install one step requires perms set by root. Even though I could ls -l and see that root was able to do the 4755 but the install would fail. Someone pointed out the dot in the permission... (3 Replies)
I have a script listed in my roots crontab
07 9 * * * /opt/HLRSDATA_2010_OCT/HLRS_Scheduler_sp.sh > /opt/HLRSDATA_2010_OCT/logs/HLRTKJob.log
This script contains the following
echo HLRSData Scheduler
/usr/bin/java -Xms32m -Xmx1024m -cp... (6 Replies)
Hi, I can not start named service:
Error in named configuration:
zone default.domain/IN: loading from master file /home/admin/conf/dns/default.domain.db failed: permission denied
zone default.domain/IN: not loaded due to errors.... (2 Replies)
I have a Fedora 19 box with a 26TB RAID set mounted as my home directory
# mount|grep home
/dev/md0 on /home type xfs (rw,relatime,seclabel,attr2,inode64,logbsize=128k,sunit=256,swidth=3584,noquota)
I have been able to add/modify user accounts using VNC +... (4 Replies)
I am using oracle linux 6.4. My hard drive capacity is 500 GB. my filesystem size onbly 50GB. I would like to extend my filesystem size to around 100GB. I tried many codes but still I am not able.
this is the output of df -h :
Filesystem Size Used Avail Use% Mounted on... (6 Replies)
I worked all night on creating an RHEL 7 template customized for our private cloud and almost had it ready. While doing the final part, enabling GDM, I made the blunder of disabling SELINUX. Now I am not able to re-enable or put into permissive mode again. Earlier, when this happened on RHEL 6... (3 Replies)
the attached perl script is a deamon that, once kicked off from the command line, it runs in the background and waits for the master server to tell it what plugins to run.
the script works well. but the problem is, whenever i start it, after about a few seconds of starting it, i start getting... (4 Replies)
I am installing a few rpms on a new Redhat 6.4 box and while it downloads from the local repository, I get the following Errors:
Installing : ss7-capv2-responder-ece-rda-1.2.7-1.noarch 1/1Non-fatal POSTIN scriptlet failure in rpm package... (1 Reply)
First server every thing is working but keeps crashing so to be on the safe side created second server and moved all the files. But I notice there is a " dot " at the end. See below. Not sure what that means. Also getting 403 on Apache. Please see below. Thanks you so much.
ls -l... (4 Replies)