LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

setsebool

Set SELinux boolean values at runtime

TLDR

Set a boolean temporarily
$ sudo setsebool [boolean_name] on
copy
Unset a boolean temporarily
$ sudo setsebool [boolean_name] off
copy
Set a boolean persistently across reboots
$ sudo setsebool -P [boolean_name] on
copy
Set multiple booleans persistently
$ sudo setsebool -P [bool1]=[on] [bool2]=[off]
copy

SYNOPSIS

setsebool [-PNV] boolean value | bool1=val1 bool2=val2...

DESCRIPTION

setsebool sets the current state of a particular SELinux boolean or a list of booleans to a given value. Booleans allow runtime customization of SELinux policy without requiring policy modification or recompilation.Values can be specified as 1, true, or on for enabled, or 0, false, or off for disabled. Multiple booleans can be set at once using the bool=value syntax.

PARAMETERS

-P

Make changes persistent across reboots
-N
Don't reload policy after change
-V
Verbose output

INSTALL

sudo apt install policycoreutils
copy
sudo dnf install policycoreutils
copy
sudo zypper install policycoreutils
copy
nix profile install nixpkgs#policycoreutils
copy

CAVEATS

Requires root privileges. Without -P flag, changes are lost on reboot. Use getsebool to view current boolean values. SELinux must be enabled for this command to work.

SEE ALSO

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid