HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

getsebool — Get SELinux boolean value. See also: `semanage-boolean`, `setsebool`. More information: <https://man

Submitted by: @import:tldr-pages··
0
Viewed 0 times
getseboolcommandbooleanseevaluecliselinuxget
linux

Problem

How to use the getsebool command: Get SELinux boolean value. See also: semanage-boolean, setsebool. More information: <https://manned.org/getsebool>.

Solution

getsebool — Get SELinux boolean value. See also: semanage-boolean, setsebool. More information: <https://manned.org/getsebool>.

Show the current setting of a boolean:
getsebool {{httpd_can_connect_ftp}}


Show the current setting of [a]ll booleans:
getsebool -a


Show the current setting of all booleans with explanations:
sudo semanage boolean {{[-l|--list]}}

Code Snippets

Show the current setting of a boolean

getsebool {{httpd_can_connect_ftp}}

Show the current setting of [a]ll booleans

getsebool -a

Show the current setting of all booleans with explanations

sudo semanage boolean {{[-l|--list]}}

Context

tldr-pages: linux/getsebool

Revisions (0)

No revisions yet.