linux:selinux_cheatsheet
Differences
This shows you the differences between two versions of the page.
Last revisionBoth sides next revision | |||
linux:selinux_cheatsheet [2023/02/27 14:19] – created dodger | linux:selinux_cheatsheet [2023/02/27 14:24] – dodger | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== [CHEATSHEET] selinux ====== | ====== [CHEATSHEET] selinux ====== | ||
+ | |||
+ | ====== Binaries ====== | ||
+ | ===== Add path as binaries to allow execution ===== | ||
+ | <code bash> | ||
+ | semanage fcontext -a -t bin_t '/ | ||
+ | </ | ||
+ | |||
+ | ===== Change security context of files/ | ||
+ | <code bash> | ||
+ | chcon -Rv -u system_u -t bin_t '/ | ||
+ | </ | ||
+ | |||
+ | ===== List defined paths by context ===== | ||
+ | |||
+ | <code bash> | ||
+ | | ||
+ | </ | ||
+ | |||
+ | |||
Line 16: | Line 35: | ||
</ | </ | ||
+ | ===== Empty ===== | ||
+ | <code bash> | ||
+ | |||
+ | </ |
linux/selinux_cheatsheet.txt · Last modified: 2023/02/27 14:25 by dodger