segfault on aa_getcon with mode = NULL and unreadable /proc/<tid>/attr/current
Bug #1196880 reported by
Gernot Vormayr
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
AppArmor |
Fix Released
|
Medium
|
Unassigned | ||
apparmor (Ubuntu) |
Fix Released
|
Medium
|
Tyler Hicks |
Bug Description
Title says it all.
Basically aa_getprocattr misses a NULL check in the failurepath. Attached patch fixes this.
Related branches
Changed in apparmor: | |
status: | New → Fix Committed |
Changed in apparmor (Ubuntu): | |
status: | New → In Progress |
importance: | Undecided → Medium |
assignee: | nobody → Tyler Hicks (tyhicks) |
Changed in apparmor: | |
importance: | Undecided → Medium |
milestone: | none → 2.9.0 |
To post a comment you must log in.
Small Test program.
Compile and link with libapparmor. Create an empty profile and switch to enforce mode.