File: setsebool.8

package info (click to toggle)
policycoreutils 3.9-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,832 kB
  • sloc: ansic: 4,848; sh: 591; makefile: 497; perl: 20
file content (37 lines) | stat: -rw-r--r-- 1,344 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
.TH "setsebool" "8" "11 Aug 2004" "dwalsh@redhat.com" "SELinux Command Line documentation"
.SH "NAME"
setsebool \- set SELinux boolean value

.SH "SYNOPSIS"
.B setsebool
.I "[ \-PNV ] boolean value | bool1=val1 bool2=val2 ..."

.SH "DESCRIPTION"
.B setsebool
sets the current state of a particular SELinux boolean or a list of booleans
to a given value. The value may be 1 or true or on to enable the boolean, or 0 or false or off to disable it.

Without the \-P option, only the current boolean value is
affected; the boot-time default settings
are not changed.

If the \-P option is given, all pending values are written to
the policy file on disk. So they will be persistent across reboots.

If the \-N option is given, the policy on disk is not reloaded into the kernel.

If the \-V option is given, verbose error messages will be printed from semanage libraries.

.SH EXAMPLE
.nf
Enable container_use_devices boolean (will return to persistent value after reboot)
# setsebool container_use_devices 1
Persistently enable samba_create_home_dirs and samba_enable_home_dirs booleans
# setsebool -P samba_create_home_dirs=on samba_enable_home_dirs=on

.SH AUTHOR
This manual page was written by Dan Walsh <dwalsh@redhat.com>.
The program was written by Tresys Technology.

.SH "SEE ALSO"
getsebool(8), booleans(8), togglesebool(8), semanage(8)