temporary cache file not cleaned up when using --add on a loaded profile
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
AppArmor |
New
|
Undecided
|
Unassigned |
Bug Description
# setup with 2.13.2
$ mkdir -p /tmp/aa/profiles /tmp/aa/cache
$ cp /etc/apparmor.
$ sudo apparmor_parser --remove /tmp/aa/
$ sudo ls /tmp/aa/cache/*
ls: cannot access '/tmp/aa/cache/*': No such file or directory
# load the profile
$ sudo apparmor_parser --cache-
$ sudo ls /tmp/aa/cache/*
sbin.dhclient
# try to --add again
$ sudo apparmor_parser --cache-
apparmor_parser: Unable to add "/sbin/dhclient". Profile already exists
$ sudo ls /tmp/aa/cache/*
sbin.dhclient sbin.dhclient-
I saw this behavior with 2.12 as well.