aa-autodep fails if shebang line contains parameters
Bug #1505775 reported by
Christian Boltz
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
AppArmor |
Fix Released
|
Undecided
|
Christian Boltz |
Bug Description
cat /tmp/hello
#!/usr/bin/perl -w
print('hello');
# aa-autodep /tmp/hello
ldd: /usr/bin/perl -w: No such file or directory <----
Writing updated profile for /tmp/hello.
cat /etc/apparmor.
# Last Modified: Tue Oct 13 20:32:45 2015
#include <tunables/global>
/tmp/hello flags=(complain) {
#include <abstractions/base>
/tmp/hello r,
"/usr/bin/perl -w" ix, # <----
}
Needless to say that the expected behaviour is to call ldd for /usr/bin/perl (without -w), and also to add that to the profile.
Related branches
Changed in apparmor: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Patch sent to the ML - 95-fix- handling- interpreters- with-parameters .diff