xref: /aosp_15_r20/external/selinux/libselinux/man/man8/getsebool.8 (revision 2d543d20722ada2425b5bdab9d0d1d29470e7bba)
"getsebool" "8" "11 Aug 2004" "[email protected]" "SELinux Command Line documentation"
"NAME"
getsebool - get SELinux boolean value(s) .
"SYNOPSIS"
getsebool [ -a ] [ boolean ] .
"DESCRIPTION"
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

-a Show all SELinux booleans. .

EXAMPLE
Show current state of httpd_can_connect_ftp
# getsebool httpd_can_connect_ftp
.
AUTHOR
This manual page was written by Dan Walsh <[email protected]>. The program was written by Tresys Technology. .
"SEE ALSO"
selinux (8), setsebool (8), booleans (8)