cannot override a generic deny rule with a more specific allow rule

Bug #451422 reported by Jamie Strandboge
20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
AppArmor
New
Wishlist
Unassigned
apparmor (Ubuntu)
Won't Fix
Wishlist
John Johansen

Bug Description

If I include abstractions/private-files-strict, it has the following line:
  audit deny @{HOME}/.mozilla/** mrwkl,

I would expect to be able to add the following and have the cache files allowed, but it doesn't work:
  owner @{HOME}/.mozilla/**/Cache/** r,

Tags: aa-feature

Related branches

Changed in linux (Ubuntu):
assignee: nobody → John Johansen (jjohansen)
Revision history for this message
John Johansen (jjohansen) wrote :

At this time, this is not possible, priority ordering by hierarchy (ie local rules taking precedence over include rules) is not currently implemented and deny rules take precedence over allow rules.

affects: linux (Ubuntu) → apparmor (Ubuntu)
Changed in apparmor (Ubuntu):
assignee: John Johansen (jjohansen) → nobody
status: New → Triaged
assignee: nobody → John Johansen (jjohansen)
summary: - most specific AppArmor rule doesn't always match
+ cannot override a generic deny rule with a more specific allow rule
Changed in apparmor (Ubuntu):
importance: Undecided → Wishlist
Revision history for this message
Jamie Strandboge (jdstrand) wrote :

I'm going to mark this as "Won't Fix" for Ubuntu since it requires significant upstream changes that Ubuntu will not independently carry. While it is something that might be considered upstream, there is nothing todo for this bug at this time.

Changed in apparmor (Ubuntu):
status: Triaged → Won't Fix
Revision history for this message
Christian Boltz (cboltz) wrote :

Reopening / adding upstream AppArmor

Changed in apparmor:
importance: Undecided → Wishlist
Steve Beattie (sbeattie)
tags: added: aa-feature
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.