-
Notifications
You must be signed in to change notification settings - Fork 66
Monit casus massive amounts of apparmor logs #13
Comments
@JensErat thanks for pointing this out. This is not an issue of the Did you tried adding the following line to
Could you share with me the Ubuntu and Docker version you are using? |
Yes, as I already pointed out, it probably is not something the container can change, but would be a reasonable thing to put into documentation.
This disables apparmor for all containers and is a horrible thing to do!
On this machine, I run Ubuntu 14.04 with all updates and Docker from their own repositories, version 1.5.0. |
@JensErat I'll write it down in the documentation. Will replicate over the weekend so I can understand better how to work with |
I'm neither very familiar with apparmor, mostly sticking with the default rules of what Debian or Ubuntu provide (pretty much everything I have is running one of those distributions). Docker is limiting slightly too strict for some applications depending on special kernel features, like Monit tracing whatever in this case (whereas the use case is rather ovbious). There are different ways of allowing this. The worst is disabling apparmor completely, only slightly better is disabling apparmor for Docker (which is probably running most services for Docker users). The lines I initially posted do two things: giving the container the capability of performing traces, and finally disabling apparmor for the Zabbix container, and nothing else. Changing apparmor rules for Docker will not work out: Docker overwrites them each time the service is started... I guess in the end, this issue has to be resolved by Docker: This will very likely also affect other images depending on Monit. |
Agree, we should at least document it as you suggested initially. Feel free to submit a PR to the README.md file, will merge right away. I can also change it but since I have not seen the issue it will have to wait until I replicate and apply your suggestion, hopefully this weekend. |
Documentation for Apparmor workaround (#13)
When running
docker-zabbix
on Ubuntu, Monit causes a massive amount of apparmor logs likeMultiple of these get logged all ten seconds. I don't know Monit and what it exactly requires ptrace for, but either it should be stopped from doing so, or at least following workaround documented, which requires running the container with ptrace capabilities and apparmor disabled (which probablyl is a bad thing):
The text was updated successfully, but these errors were encountered: