Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #224409 > unrolled thread
| Started by | l0f4r0@tuta.io |
|---|---|
| First post | 2020-07-05 21:10 +0200 |
| Last post | 2020-07-08 01:00 +0200 |
| Articles | 5 — 2 participants |
Back to article view | Back to linux.debian.user
No "type=APPARMOR_ALLOWED/DENIED" logs l0f4r0@tuta.io - 2020-07-05 21:10 +0200
Re: No "type=APPARMOR_ALLOWED/DENIED" logs didier.gaumet@gmail.com - 2020-07-06 12:30 +0200
Re: No "type=APPARMOR_ALLOWED/DENIED" logs l0f4r0@tuta.io - 2020-07-06 23:10 +0200
Re: No "type=APPARMOR_ALLOWED/DENIED" logs didier.gaumet@gmail.com - 2020-07-07 00:10 +0200
Re: No "type=APPARMOR_ALLOWED/DENIED" logs l0f4r0@tuta.io - 2020-07-08 01:00 +0200
| From | l0f4r0@tuta.io |
|---|---|
| Date | 2020-07-05 21:10 +0200 |
| Subject | No "type=APPARMOR_ALLOWED/DENIED" logs |
| Message-ID | <Apibw-2pz-9@gated-at.bofh.it> |
Hi, I'm under Debian 10 (kernel 5.4.8-1~bpo10+1) and I installed auditd some weeks ago. Issue: I don't get any AppArmor logs like ALLOWED or DENIED in my /var/log/audit/audit.log while I'm sure I should have some (for example, aa-genprof seems unable to scan my logs and help me to generate an appropriate profile). I thought AppArmor writes its logs directly in /var/log/audit/audit.log if auditd is already installed, otherwise they go to /var/log/syslog, /var/log/messages or /var/log/kern.log. I have nothing there neither... Did I miss something please? NB: * the only AppArmor related logs I have are some apparmor="STATUS" regarding operation="profile_load" for the most part... * apparmor.service is running and everything is OK with aa-status Thanks in advance :) Best regards, l0f4r0
[toc] | [next] | [standalone]
| From | didier.gaumet@gmail.com |
|---|---|
| Date | 2020-07-06 12:30 +0200 |
| Message-ID | <ApwxP-32n-1@gated-at.bofh.it> |
| In reply to | #224409 |
Hello, Sorry, I am almost totally Apparmor ignorant but would both set enforce and complain modes for your profiles give you the result you expect?
[toc] | [prev] | [next] | [standalone]
| From | l0f4r0@tuta.io |
|---|---|
| Date | 2020-07-06 23:10 +0200 |
| Message-ID | <ApGxb-FS-11@gated-at.bofh.it> |
| In reply to | #224430 |
Hi, 6 juil. 2020 à 12:05 de didier.gaumet@gmail.com: > Sorry > No worries, thanks for replying :) > I am almost totally Apparmor ignorant but would both set enforce and complain modes for your profiles give you the result you expect? > I'm afraid not because: * most of my profiles are already in enforce mode * aa-genprof is supposed to create a new profile, set it into complain mode, adapt the profile thanks to AppArmor logs and decisions from the sysadmin and finally enforce the profile. In other words, I should have logs already... Best regards, l0f4r0
[toc] | [prev] | [next] | [standalone]
| From | didier.gaumet@gmail.com |
|---|---|
| Date | 2020-07-07 00:10 +0200 |
| Message-ID | <ApHtf-1eC-5@gated-at.bofh.it> |
| In reply to | #224460 |
OK, I have read a little bit :-) Now I understand better the difference between enforce (for production) and complain (for testing/setup) modes and that they are mutually exclusive. man aa-genprof seems to indicate that the complain mode is set only during the generation of the profile: when aa-genprof exits the profile is in enforce mode. man -s7 apparmor seems to indicate (DEBUGGING section) that for the DENY messages to appear, you have to "Turn off deny audit quieting" and for the ALLOW messages to appear you have to "Force audit mode" Good luck :-)
[toc] | [prev] | [next] | [standalone]
| From | l0f4r0@tuta.io |
|---|---|
| Date | 2020-07-08 01:00 +0200 |
| Message-ID | <Aq4Jc-6ZZ-5@gated-at.bofh.it> |
| In reply to | #224464 |
Hi Didier, 6 juil. 2020 à 23:42 de didier.gaumet@gmail.com: > man -s7 apparmor seems to indicate (DEBUGGING section) that for the DENY messages to appear, you have to "Turn off deny audit quieting" and for the ALLOW messages to appear you have to "Force audit mode" > Thanks for having checked that. Unfortunately, filling /sys/module/apparmor/parameters/audit with "noquiet" or "all" doesn't change anything about my logs (even after restarting apparmor.service)... I will probably post a message on AppArmor ML and tell you should I get the final answer :) Best regards, l0f4r0
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.user
csiph-web