Update cheatsheets

This commit is contained in:
ivuorinen
2025-10-10 00:19:31 +00:00
parent d4e4abca39
commit 4ccd905055
82 changed files with 557 additions and 148 deletions

27
tldr/linux/audit2why Normal file
View File

@@ -0,0 +1,27 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# audit2why
> Explain SELinux denials from audit logs.
> Part of the `policycoreutils-python-utils` package.
> See also: `audit2allow`, `ausearch`, `sealert`.
> More information: <https://manned.org/audit2why>.
- Explain the most recent SELinux denial:
`sudo audit2why`
- Explain SELinux denials from a specific audit log file:
`sudo audit2why {{[-i|--input]}} {{path/to/audit.log}}`
- Explain all SELinux denials from the audit log:
`sudo ausearch {{[-m|--message]}} avc | audit2why`
- Explain denials for a specific service:
`sudo ausearch {{[-m|--message]}} avc {{[-c|--comm]}} {{service_name}} | audit2why`