getsebool - command /usr/sbin/getsebool -a
¶
This parser returns the output of the getsebool
command.
Sample getsebool -a
output:
webadm_manage_user_files --> off
webadm_read_user_files --> off
wine_mmap_zero_ignore --> off
xdm_bind_vnc_tcp_port --> off
ssh_keysign --> off
Examples
>>> "webadm_manage_user_files" in getsebool
True
>>> "tmpreaper_use_nfs" in getsebool
False
>>> getsebool['ssh_keysign']
'off'
-
class
insights.parsers.getsebool.
Getsebool
(context, extra_bad_lines=None)[source]¶ Bases:
insights.core.LegacyItemAccess
,insights.core.CommandParser
The output of “getsebool” command is like following:
tmpreaper_use_nfs --> off tmpreaper_use_samba --> offSo we can return the value like {“tmpreaper_use_nfs”:”off”, “tmpreaper_use_samba”:”off”}
Raises: SkipComponent
-- When SELinux is not enabled.