Unexpected Errorr running aa-genprof
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
AppArmor |
New
|
Undecided
|
Unassigned |
Bug Description
I created a test script and ran it. I then ran the aa-genprof utility and received the following error:
aa7cl@atlas:~/Data$ aa-genprof example.sh
Writing updated profile for /home/aa7cl/
Traceback (most recent call last):
File "/usr/sbin/
apparmor.
File "/usr/lib/
write_
File "/usr/lib/
write_
File "/usr/lib/
newprof = tempfile.
File "/usr/lib/
(fd, name) = _mkstemp_inner(dir, prefix, suffix, flags, output_type)
File "/usr/lib/
fd = _os.open(file, flags, 0o600)
PermissionError: [Errno 13] Permission denied: '/etc/apparmor.
An unexpected error occoured!
For details, see /tmp/apparmor-
Please consider reporting a bug at https:/
and attach this file.
This is a server running Ubuntu 18.04 LTS. I new to linux so I'm not sure this is really a bug. This is also my first time reporting. Please let me know if you need additional info.
It looks like you started aa-genprof as user, which isn't supported. I admit the error message should be more helpful ;-)
Can you please try again as root?