informatique:linux:auditctl
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| informatique:linux:auditctl [2015/04/14 08:11] – benoit | informatique:linux:auditctl [2015/04/14 13:09] (Version actuelle) – benoit | ||
|---|---|---|---|
| Ligne 3: | Ligne 3: | ||
| Permet de logger tous les processus lancé sous Linux. | Permet de logger tous les processus lancé sous Linux. | ||
| + | ==== Installation ==== | ||
| Pour installer : | Pour installer : | ||
| apt-get install auditd | apt-get install auditd | ||
| + | |||
| + | ==== Lancement en live ==== | ||
| Pour lancer un audit : | Pour lancer un audit : | ||
| auditctl -a task,always | auditctl -a task,always | ||
| Ligne 13: | Ligne 16: | ||
| auditctl -a exit,always -S all -F uid=33 | auditctl -a exit,always -S all -F uid=33 | ||
| - | Pour consulter | + | Pour tracer tous les fichiers ouverts par apache (www-data uid 33) : |
| - | | + | |
| + | auditctl -a always,exit -F arch=b32 -S open -S openat -F uid=33 | ||
| + | |||
| + | ==== Configuration au lancement du système ==== | ||
| + | |||
| + | Il est possible d' | ||
| + | |||
| + | # This file contains the auditctl rules that are loaded | ||
| + | # whenever the audit daemon is started via the initscripts. | ||
| + | # The rules are simply the parameters that would be passed | ||
| + | # to auditctl. | ||
| + | |||
| + | # First rule - delete all | ||
| + | -D | ||
| + | |||
| + | # Increase the buffers to survive stress events. | ||
| + | # Make this bigger for busy systems | ||
| + | -b 1024 | ||
| + | |||
| + | # Feel free to add below this line. See auditctl man page | ||
| + | |||
| + | #-a exit,always -S all -F uid=33 | ||
| + | -a always,exit -F arch=b64 -S open -S openat -F uid=33 | ||
| + | -a always,exit -F arch=b32 -S open -S openat -F uid=33 | ||
| + | |||
| + | relancer le service : | ||
| + | / | ||
| + | |||
| + | ==== Rapport et logs ==== | ||
| + | Les logs générés se trouvent dans : ''/ | ||
informatique/linux/auditctl.1428999074.txt.gz · Dernière modification : (modification externe)
