setsebool(8) — Linux manual page


setsebool(8)       SELinux Command Line documentation       setsebool(8)

NAME         top

       setsebool - set SELinux boolean value

SYNOPSIS         top

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

DESCRIPTION         top

       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

       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.

AUTHOR         top

       This manual page was written by Dan Walsh <>.
       The program was written by Tresys Technology.

SEE ALSO         top

       getsebool(8), booleans(8), togglesebool(8), semanage(8)

COLOPHON         top

       This page is part of the selinux (Security-Enhanced Linux user-
       space libraries and tools) project.  Information about the
       project can be found at 
       ⟨⟩.  If you have a
       bug report for this manual page, see
       This page was obtained from the project's upstream Git repository
       ⟨⟩ on 2023-12-22.  (At
       that time, the date of the most recent commit that was found in
       the repository was 2023-05-11.)  If you discover any rendering
       problems in this HTML version of the page, or you believe there
       is a better or more up-to-date source for the page, or you have
       corrections or improvements to the information in this COLOPHON
       (which is not part of the original manual page), send a mail to              11 Aug 2004                  setsebool(8)

Pages that refer to this page: booleans(8)getsebool(8)selinux(8)semanage-boolean(8)sepolicy-booleans(8)togglesebool(8)