deny owner - what does it do? #147
-
I'm learning AppArmor, and have started studying your profiles. One thing I noticed in several is the use of "deny owner" file access rules. What do these do? Specifically, what does "owner" add beyond "deny"? What is your policy about "deny" rules in general? My current understanding is that local profile includes can't override them, so probably you have some requirements for them. Do you use them only when there is a known or potential vulnerability that really should be prevented in all cases (something local profiles are unlikely to want to override)? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
For example:
The policy is to avoid to use 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
However, now nautilus can also read file like |
Beta Was this translation helpful? Give feedback.
-
@roddhjav |
Beta Was this translation helpful? Give feedback.
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 apparmorDENY
orALLOWED
rules. Vulnerabilities should normally be covered in profile without a special use ofdeny
.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 …