apparmor parser fails with ptrace rules and CRLF line endings
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
AppArmor |
Triaged
|
Medium
|
Unassigned |
Bug Description
The parser should not fail when ptrace rules and CRLF line endings are used together:
$ file ok_dos_
ok_dos_
$ cat -n ok_dos_
1 #
2 #=Description ptrace peer w/perms and misc modifiers rules w/DOS line endings
3 #=EXRESULT PASS
4 #
5
6 /usr/bin/foo {
7 ptrace peer=/usr/bin/top,
8 # a comment
9 deny ptrace read peer=/bin/sh,
10 allow ptrace write peer=/bin/true,
11 audit ptrace trace peer=/bin/false,
12 audit deny ptrace readby peer=/sbin/init,
13 audit allow ptrace tracedby peer=/usr/bin/gdb,
14 deny ptrace (readby, tracedby) peer=/usr/
15
16 }
$ ../../.
AppArmor parser error for ok_dos_
Note that the parser succeeds compiling the same profile with unix line endings .
Changed in apparmor: | |
importance: | Undecided → Medium |
Changed in apparmor: | |
status: | New → Triaged |
tags: | added: aa-parser |