Merge lp:~intrigeri/apparmor/nameservice-NetworkManager into lp:apparmor/2.12

Proposed by intrigeri
Status: Merged
Merged at revision: 3366
Proposed branch: lp:~intrigeri/apparmor/nameservice-NetworkManager
Merge into: lp:apparmor/2.12
Diff against target: 21 lines (+5/-5)
1 file modified
profiles/apparmor.d/abstractions/nameservice (+5/-5)
To merge this branch: bzr merge lp:~intrigeri/apparmor/nameservice-NetworkManager
Reviewer Review Type Date Requested Status
Jamie Strandboge Approve
Review via email: mp+285571@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Jamie Strandboge (jdstrand) wrote :

LGTM. Thanks!

review: Approve
Revision history for this message
Seth Arnold (seth-arnold) wrote :

Two alternations in one rule with mutli-path segments in both of them makes this quite difficult for me to read. It grants access to six files and it's not clear to me that all six are actually necessary somewhere.

There's more text in the comments explaining it than is actually needed to refer to the files individually. :)

If this is already merged, than it's probably not worth any more time, but if this isn't yet merged, I'd like to see it split apart.

Thanks

Revision history for this message
intrigeri (intrigeri) wrote :

Seth Arnold wrote (10 Feb 2016 18:14:11 GMT) :
> Two alternations in one rule with mutli-path segments in both of them makes this
> quite difficult for me to read. It grants access to six files and it's not clear to
> me that all six are actually necessary somewhere.

> There's more text in the comments explaining it than is actually needed to refer to the files individually. :)

I'll keep this in mind. Thanks for reviewing :)

> If this is already merged, than it's probably not worth any more time, but if this isn't yet merged, I'd like to see it split apart.

Apparently it's merged already.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'profiles/apparmor.d/abstractions/nameservice'
2--- profiles/apparmor.d/abstractions/nameservice 2016-01-05 23:03:06 +0000
3+++ profiles/apparmor.d/abstractions/nameservice 2016-02-10 10:11:47 +0000
4@@ -35,12 +35,12 @@
5 /etc/resolv.conf r,
6 # on systems using resolvconf, /etc/resolv.conf is a symlink to
7 # /{,var/}run/resolvconf/resolv.conf and a file sometimes referenced in
8- # /etc/resolvconf/run/resolv.conf
9- /{,var/}run/resolvconf/resolv.conf r,
10+ # /etc/resolvconf/run/resolv.conf. Similarly, if NetworkManager is used
11+ # without resolvconf, /etc/resolv.conf is a symlink to its own resolv.conf.
12+ # Finally, on systems using systemd's networkd, /etc/resolv.conf is
13+ # a symlink to /run/systemd/resolve/resolv.conf
14+ /{,var/}run/{resolvconf,NetworkManager,systemd/resolve}/resolv.conf r,
15 /etc/resolvconf/run/resolv.conf r,
16- # on systems using systemd's networkd, /etc/resolv.conf is a symlink to
17- # /run/systemd/resolve/resolv.conf
18- /{,var/}run/systemd/resolve/resolv.conf r,
19
20 /etc/samba/lmhosts r,
21 /etc/services r,

Subscribers

People subscribed via source and target branches