aa-unconfined crashes on Debian
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
AppArmor |
New
|
Undecided
|
Unassigned |
Bug Description
Operating System: Debian GNU/Linux 9 (stretch)
Kernel: Linux 4.6.0-0.
Architecture: x86
Package apparmor:
i A 2.11.0-3+deb9u2
Package libapparmor-perl:
i A 2.12-4+b1
Package libapparmor1:
i A 2.11.0-3+deb9u2
Package python3-apparmor:
i A 2.11.0-3+deb9u2 1
Package python3-
i A 2.12-4+b1
Executing "sudo aa-unconfined" crashes (apparmor-
<pre>Traceback (most recent call last):
File "/usr/sbin/
for line in current:
File "/usr/lib/
return next(self.reader)
File "/usr/lib/
line = self.readline()
File "/usr/lib/
data = self.read(readsize, firstline=True)
File "/usr/lib/
newdata = self.stream.
OSError: [Errno 22] Invalid argument
</pre>
/tmp/apparmor- bugreport- yr8c3w3p. txt should contain more details. Can you please attach that file?
Wild guess: this could be a race condition, and one of your processes exited while its /proc/$ PID/attr/ current was read by aa-unconfined. However, I wonder why this results in an error - "normal" files are only deleted _after_ they are closed by whoever has them open - no idea if /proc/ also has this feature.
Also, can you please check the version of your packages? You have a mix of 2.12 (libapparmor-perl and python3- libapparmor) and 2.11 (everything else) packages. I doubt this version mix is related to this bug, but please check for updates nevertheless ;-)