aa-autodep fails if shebang line contains parameters

Bug #1505775 reported by Christian Boltz on 2015-10-13
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
AppArmor
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.d/tmp.hello
# 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

Christian Boltz (cboltz) wrote :

Patch sent to the ML - 95-fix-handling-interpreters-with-parameters.diff

Changed in apparmor:
assignee: nobody → Christian Boltz (cboltz)
status: New → In Progress
Christian Boltz (cboltz) wrote :

Fix commited to bzr r3262.

Changed in apparmor:
status: In Progress → Fix Committed
milestone: none → 2.10.1
Changed in apparmor:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers