apparmor's raw_data file in securityfs is sometimes truncated
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Fix Released
|
Undecided
|
John Johansen | ||
Xenial |
Fix Released
|
Undecided
|
Unassigned | ||
Yakkety |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Hi,
It looks like sometimes apparmor's securityfs output is sometimes truncated,
root@zesty:
total 0
drwxr-xr-x 3 root root 0 Nov 3 16:45 .
drwxr-xr-x 13 root root 0 Nov 3 16:44 ..
-r--r--r-- 1 root root 0 Nov 3 16:45 attach
-r--r--r-- 1 root root 0 Nov 3 16:45 mode
-r--r--r-- 1 root root 0 Nov 3 16:45 name
drwxr-xr-x 3 root root 0 Nov 3 16:45 profiles
-r--r--r-- 1 root root 0 Nov 3 16:45 raw_abi
-r--r--r-- 1 root root 46234 Nov 3 16:45 raw_data
-r--r--r-- 1 root root 0 Nov 3 16:45 raw_hash
-r--r--r-- 1 root root 0 Nov 3 16:45 sha1
root@zesty:
root@zesty:
-rw-r--r-- 1 root root 4009 Nov 3 16:55 /tmp/out
and
2016-11-03 10:58:01 tych0 jjohansen: hi, http://
2016-11-03 10:58:18 tych0 it looks like fstat is lying to me about the size of the policy
2016-11-03 10:59:20 @jjohansen tych0: hrmm interesting, can you zip up the /tmp/out file so I can see it looks like a complete policy file?
2016-11-03 11:00:03 @jjohansen something is definitely not right there. hrmmm
2016-11-03 11:00:26 @jjohansen the size is set by the input buffer size
2016-11-03 11:00:28 tych0 jjohansen: http://
2016-11-03 11:00:36 tych0 yeah, i assume
2016-11-03 11:01:15 @jjohansen my guess is something is messing up in the seq_file walk of the policy
2016-11-03 11:02:38 @jjohansen tych0: yep the file is truncated, can you open a bug and I will start looking for it
2016-11-03 11:03:14 tych0 jjohansen: sure, just on linux?
2016-11-03 11:03:35 @jjohansen tych0: yeah for now, just linux
2016-11-03 11:03:43 @jjohansen we can add others if needed later
2016-11-03 11:03:44 tych0 jjohansen: FWIW, somehow it seems racy, becasue sometimes it works and sometimes it doesn't
Changed in linux (Ubuntu): | |
status: | Incomplete → Confirmed |
status: | Confirmed → In Progress |
assignee: | nobody → John Johansen (jjohansen) |
Changed in linux (Ubuntu Yakkety): | |
status: | New → Fix Committed |
Changed in linux (Ubuntu Xenial): | |
status: | New → Fix Committed |
tags: |
added: verification-done-xenial verification-done-yakkety removed: verification-needed-xenial verification-needed-yakkety |
Changed in linux (Ubuntu Yakkety): | |
status: | Fix Released → Triaged |
Changed in linux (Ubuntu Xenial): | |
status: | Triaged → Fix Committed |
This bug is missing log files that will aid in diagnosing the problem. From a terminal window please run:
apport-collect 1638996
and then change the status of the bug to 'Confirmed'.
If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.
This change has been made by an automated script, maintained by the Ubuntu Kernel Team.