Skip to content

deny owner - what does it do? #147

Answered by roddhjav
jonleivent asked this question in Q&A
Discussion options

You must be logged in to vote

For example:

  • deny @{HOME}/.secrets rw Denies all users to read/write the ~/.secrets file.
  • deny owner @{HOME}/.secrets rw Only denies the user that own the file to read/write it.

The policy is to avoid to use deny as much as we can. Because by default everything is forbidden, the worst it can happen is to have our audit log file filled with apparmor DENY or ALLOWED rules. Vulnerabilities should normally be covered in profile without a special use of deny.

There are a few exceptions when we know we do not want to generate a lot of logs. Let's say we have a program called nautilus. It runs as our user and it needs to read/write all the files in our home directory. So we put something like …

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by jonleivent
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants