Profile does not accept variables in its name
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
AppArmor |
New
|
Undecided
|
Unassigned |
Bug Description
I have a tunables/sdb file that is defined as such:
@{SDB} = "/media/msata"
Then I include this file in one of my profiles:
#include <tunables/global>
#include <tunables/sdb>
@{SDB}
#include <abstractions/base>
#include <abstractions/
#include <abstractions/
#include <abstractions/
#include <abstractions/
#include <abstractions/
capability setgid,
capability setuid,
@{SDB}/plex/** rwlkPix,
"@{SDB}
(...)
When parsing the profile above, apparmor will fail with:
apparmor[30579]: AppArmor parser error for /etc/apparmor.
Variables should be accepted as part of a profile name - this will make scalability / maintenance much easier.
Just to clarify, if I change the profile name to msata/plex/ usr/sbin/ start_pms
/media/
The profile will load fine and apparmor won't complain any more.