meta data for this page
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| linux:security [2026/06/11 16:23] – titannet | linux:security [2026/06/12 07:56] (current) – titannet | ||
|---|---|---|---|
| Line 10: | Line 10: | ||
| auditreport | auditreport | ||
| - | / | + | / |
| / | / | ||
| Line 21: | Line 21: | ||
| <code bash> | <code bash> | ||
| - | # basic audit system parameters | + | # Delete all previous rules |
| -D | -D | ||
| + | # Set buffer size | ||
| -b 8192 | -b 8192 | ||
| - | -f 1 | + | # Make the configuration immutable |
| - | -e 1 | + | -e 2 |
| + | # Panic when a failure occurs | ||
| + | -f 2 | ||
| + | # Generate at most 100 audit messages per second | ||
| + | -r 100 | ||
| + | # Make login UID immutable once it is set (may break containers) | ||
| + | --loginuid-immutable | ||
| + | |||
| + | -w /etc/passwd -p wa -k passwd_changes | ||
| + | -w / | ||
| + | -w / | ||
| # some file and directory watches with keys | # some file and directory watches with keys | ||
| Line 97: | Line 108: | ||
| sudo tail -f / | sudo tail -f / | ||
| + | sudo tail -f / | ||
| </ | </ | ||
| + | |||
| + | |||
| + | ===== SELinux ===== | ||
| + | |||
| + | * Mandatory access control | ||
| + | * (" | ||
| + | * -> Mandatory: generic profile rules | ||
| + | * Each process has domain (label) and each file has label | ||
| + | |||
| + | |||
| + | <code bash> | ||
| + | |||
| + | |||
| + | </ | ||
| + | |||