Update cheatsheets

This commit is contained in:
ivuorinen
2025-10-23 00:19:46 +00:00
parent 0cc7cfe867
commit 058ce19122
64 changed files with 437 additions and 86 deletions

View File

@@ -19,11 +19,11 @@ source: https://github.com/tldr-pages/tldr.git
- Add a user-defined rule that labels any path which matches a PCRE `regex`:
`sudo semanage fcontext {{[-a|--add]}} {{[-t|--type]}} {{samba_share_t}} {{'/mnt/share(/.*)?'}}`
`sudo semanage fcontext {{[-a|--add]}} {{[-t|--type]}} {{samba_share_t}} '{{/mnt/share(/.*)?}}'`
- Delete a user-defined rule using its PCRE `regex`:
`sudo semanage fcontext {{[-d|--delete]}} {{'/mnt/share(/.*)?'}}`
`sudo semanage fcontext {{[-d|--delete]}} '{{/mnt/share(/.*)?}}'`
- Relabel a directory recursively by applying the new rules: