getsebool(8) — Linux manual page

NAME | SYNOPSIS | DESCRIPTION | OPTIONS | EXAMPLE | AUTHOR | SEE ALSO | COLOPHON

getsebool(8)        SELinux Command Line documentation       getsebool(8)

NAME         top

       getsebool - get SELinux boolean value(s)

SYNOPSIS         top

       getsebool [-a] [boolean]

DESCRIPTION         top

       getsebool reports whether a particular SELinux boolean, or all
       SELinux booleans, are on or off.  In certain situations a boolean
       can be in one state with a pending change to the other state.
       getsebool will report this as a pending change.  The pending value
       indicates the value that will be applied upon the next boolean
       commit.

       The setting of boolean values occurs in two stages; first the
       pending value is changed, then the booleans are committed, causing
       their active values to become their pending values. This allows a
       group of booleans to be changed in a single transaction, by
       setting all of their pending values as desired and then committing
       once.

OPTIONS         top

       -a     Show all SELinux booleans.

EXAMPLE         top

       Show current state of httpd_can_connect_ftp
       # getsebool httpd_can_connect_ftp

AUTHOR         top

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

SEE ALSO         top

       selinux(8), setsebool(8), booleans(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 ⟨https://github.com/SELinuxProject/selinux/wiki⟩.
       If you have a bug report for this manual page, see
       ⟨https://github.com/SELinuxProject/selinux/wiki/Contributing⟩.
       This page was obtained from the project's upstream Git repository
       ⟨https://github.com/SELinuxProject/selinux⟩ on 2025-02-02.  (At
       that time, the date of the most recent commit that was found in
       the repository was 2025-01-29.)  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
       man-pages@man7.org

dwalsh@redhat.com              11 Aug 2004                   getsebool(8)

Pages that refer to this page: security_load_booleans(3)booleans(8)semanage-boolean(8)sepolicy-booleans(8)setsebool(8)togglesebool(8)