mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-12 21:47:52 +00:00
Update cheatsheets
This commit is contained in:
30
tldr/linux/setsebool
Normal file
30
tldr/linux/setsebool
Normal file
@@ -0,0 +1,30 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# setsebool
|
||||
|
||||
> Set SELinux boolean value.
|
||||
> See also: `semanage-boolean`, `getsebool`.
|
||||
> More information: <https://manned.org/man/setsebool>.
|
||||
|
||||
- Show the current setting of [a]ll booleans:
|
||||
|
||||
`getsebool -a`
|
||||
|
||||
- Set or unset a boolean temporarily (non-persistent across reboot):
|
||||
|
||||
`sudo setsebool {{httpd_can_network_connect}} {{1|true|on|0|false|off}}`
|
||||
|
||||
- Set or unset a boolean [p]ersistently:
|
||||
|
||||
`sudo setsebool -P {{container_use_devices}} {{1|true|on|0|false|off}}`
|
||||
|
||||
- Set or unset multiple booleans [p]ersistently at once:
|
||||
|
||||
`sudo setsebool -P {{ftpd_use_fusefs=1 mount_anyfile=0 ...}}`
|
||||
|
||||
- Set or unset a boolean persistently (alternative method using `semanage-boolean`):
|
||||
|
||||
`sudo semanage boolean {{-m|--modify}} {{-1|--on|-0|--off}} {{haproxy_connect_any}}`
|
||||
Reference in New Issue
Block a user