Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apparmor clutter in dmesg? #32

Closed
NetwarSystem opened this issue Jul 9, 2021 · 1 comment
Closed

Apparmor clutter in dmesg? #32

NetwarSystem opened this issue Jul 9, 2021 · 1 comment

Comments

@NetwarSystem
Copy link

I have a handful of applications I use on Ubuntu 20.04 that come as snap packages, mostly comms stuff - Discord, Telegram, Wire. All of these applications spew junk into dmesg on a nonstop basis due to apparmor and there isn't any obvious way to make it stop.

Nothing in /etc/appamor or /etc/apparmor.d seems to stop this.

I spent some time with aa-teardown and aa-disable, no joy there. Disabling apparmor with systemd didn't seem to help. I care not at all about what the programs listed in /var/lib/snapd/apparmor/profiles do, so I wiped that directory, which mostly cleaned up dmesg, at the expense of none of the three apps I mentioned being able to run.

I'm really puzzled as to the thought process that lead to this configuration being created in the first place. I've been using Unix since about the time dmesg was added and it's always been the command line view into the kernel ring buffer, a place where one could see particulars regarding system hardware. Absolutely nothing in userland should be getting under foot in there. Continuous notification of activity makes sense for someone who is tuning applications that are using apparmor, but alias of aa-log to tail -f of something in /var/log seems like the right way to go about doing that.

So ... how does one ban snap apps from doing this?

@NetwarSystem
Copy link
Author

There's a simple solution to this - install auditd and apparmor will stop using the kernel buffer. The apparmor guys had a solution within about half an hour.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant