missing apparmor rules
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| mysql-5.7 (Ubuntu) |
Low
|
Unassigned |
Bug Description
Missing from apparmor rules:
/sys/
/sys/
Simon Déziel (sdeziel) wrote : | #2 |
I'm also noticing those on Xenial systems:
audit: type=1400 audit(148538277
audit: type=1400 audit(148538277
On the affected system, there was no noticeable impact (yet?) other than the denials, so I'd say it's low impact.
On top of the rules mentioned by Kees, adding this one would silence the other denial:
owner @{PROC}
Once all 3 rules were added to a test system, no more denials were logged.
Kees Cook (kees) wrote : | #3 |
I added this to the base profile, since other processes tripped over that one. (It's in a separate bug report)
Christian Ehrhardt (paelzer) wrote : | #4 |
Thank you Simon and Kees,
I personally would not want it allowed in my base profile - but I'll leave that for the other bug to decide.
We certainly can consider adding it to mysql together with the others.
I feel relieved that the impact seems low, but OTOH that means it likely boils down to a community effort.
So if one wants to provide a debdiff to be reviewed and integrated, please go for it.
Changed in mysql-5.7 (Ubuntu): | |
status: | Incomplete → Confirmed |
importance: | Undecided → Low |
status: | Confirmed → Triaged |
Simon Déziel (sdeziel) wrote : | #5 |
The addition of "@{PROC}
tags: | added: bionic xenial |
Jared Fernandez (jared-fernandez) wrote : | #6 |
Seeing these log entries in Bionic:
audit: type=1400 audit(152512878
audit: type=1400 audit(152512878
audit: type=1400 audit(152512878
audit: type=1400 audit(152512878
audit: type=1400 audit(152512878
audit: type=1400 audit(152512878
audit: type=1400 audit(152512879
audit: type=1400 audit(152512879
audit: type=1400 audit(152512879
Pavel Malyshev (afunix) wrote : | #7 |
# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.5 LTS
Release: 16.04
Codename: xenial
# grep denied /var/log/
type=AVC msg=audit(
type=AVC msg=audit(
Andreas Hasenack (ahasenack) wrote : | #8 |
@afunix, was this a fresh xenial 16.04.5 install, or an upgrade from a previous release?
Can you list the mysql and apparmor packages you have installed?
Andreas Hasenack (ahasenack) wrote : | #9 |
Confirmed I also see this on bionic.
Andreas Hasenack (ahasenack) wrote : | #10 |
And also still present in disco:
[ter nov 20 15:38:42 2018] audit: type=1400 audit(154274162
[ter nov 20 15:38:42 2018] audit: type=1400 audit(154274162
[ter nov 20 15:38:42 2018] audit: type=1400 audit(154274162
Hi,
thank you for your report and your help to make Ubuntu better!
We build with libnuma-dev which should auto-enable https:/ /bugs.mysql. com/bug. php?id= 72811.
Might I ask you to describe what effect you see by this missing (other than the Denie in the log) - just to help rating the importance and urgency.
If you happen to brute force it disabled (not recommended in the long run) via d/usr.sbin. mysqld /etc/apparmor. d/disable/ d/usr.sbin. mysqld
ln -s /etc/apparmor.
apparmor_parser -R /etc/apparmor.
Does it give you any extra capability/feature that was missing before?
The reason I ask is that there are quite often non-fatal denies like that which e.g. do not need an SRU. While at other times they almost disables a feature like it could do to numa in this case.