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

Enumerate root directories in apparmor profile #1587

Merged
merged 1 commit into from
Oct 4, 2017

Conversation

aerusso
Copy link
Contributor

@aerusso aerusso commented Oct 3, 2017

Replace opaque character class with an explicit list of root-level directories to be granted access.

The replaced line in the apparmor profile deceptively granted access to all root-level directories that did not start with the letters any of the characters coprsy,^, which is probably not what was intended.

Once apparmor supports the proposed addition, this line can be replaced with {**^sys,proc}, which is what (I am guessing) was intended.

I'm currently running with this rule loaded. Other tools may need more liberal permissions. Notice that this adds access to opt and srv, which previously would not have been whitelisted.

Replace opaque character class with an explicit list of
root-level directories to be granted access.
@startx2017 startx2017 merged commit 4ba3450 into netblue30:master Oct 4, 2017
@startx2017
Copy link
Collaborator

Works for me, thanks.

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

Successfully merging this pull request may close these issues.

None yet

2 participants