Can't create cache location '/var/cache/apparmor': No such file or directory

Bug #1939884 reported by Shaheena Kazi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
AppArmor
New
Undecided
Unassigned

Bug Description

Hello Team,

I was on stretch and recently upgraded to buster.
The system works fine. But I see a message related to libapparmor in the Syslog.

syslog message - libapparmor: Can't create cache location '/var/cache/apparmor': No such file or directory

Upon checking I see that the file location is present in my system.

Can you guys help me as in why this message is created.

Regards,
Shaheena K

Changed in apparmor:
assignee: nobody → Christian Boltz (cboltz)
Revision history for this message
Christian Boltz (cboltz) wrote :

I know apparmor_parser mostly from the outside ("wrong" programming language for me) and I also don't know too much about Debian, therefore I'll un-assign myself.

Let me try with a wild guess nevertheless:

Do you see this error on boot or (also) on "systemctl reload apparmor"?
Do you have a separate partition for /var/ or /var/cache/?

If you see the error only on boot and have a separate partition, my guess is that this partition is mounted _after_ AppArmor gets started - and therefore /var/cache/apparmor/ is not available (yet).

Changed in apparmor:
assignee: Christian Boltz (cboltz) → nobody
Revision history for this message
Shaheena Kazi (shaheenakazi) wrote :

Do you see this error on boot or (also) on "systemctl reload apparmor"?
>> I see this error only on boot.

Do you have a separate partition for /var/ or /var/cache/?
>> No.

I see this message after I upgraded to Debian 10. This message never came on my stretch builds.
Nor have I added any new profiles.

This is quite strange for us.

Changed in apparmor:
assignee: nobody → Seth Arnold (seth-arnold)
Changed in apparmor:
assignee: Seth Arnold (seth-arnold) → nobody
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.