"profile transition not found" with unattached profiles
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
AppArmor |
New
|
Undecided
|
Unassigned |
Bug Description
I'm not sure of the cause of this bug, but on Ubuntu 17.04 with the following:
$ cat /tmp/bug/profile
#include <tunables/global>
profile child {
#include <abstractions/base>
/tmp/bug/* r,
/tmp/bug/child ixr,
}
profile "parent.
#include <abstractions/base>
#include <abstractions/bash>
/tmp/bug/* r,
/tmp/bug/child px -> @{profile_
}
profile "parent-no-dots" {
#include <abstractions/base>
#include <abstractions/bash>
/tmp/bug/* r,
/tmp/bug/child px -> @{profile_
}
and the following scripts:
$ cat /tmp/bug/parent
#!/bin/sh
set -e
echo "Executing ./child"
./child
$ cat /tmp/bug/child
#!/bin/sh
set -e
echo "I'm a child!"
I am unable to use discrete px rules to transition to parent-
$ sudo apparmor_parser -r ./profile && aa-exec -p parent-no-dots -- ./parent
Executing ./child
./parent: 5: ./parent: ./child: Permission denied
kernel: audit: type=1400 audit(149686511
$ sudo apparmor_parser -r ./profile && aa-exec -p parent.dot.profile -- ./parent
Executing ./child
./parent: 5: ./parent: ./child: Permission denied
kernel: audit: type=1400 audit(149686514
$ cat /proc/version_
Ubuntu 4.10.0-
I have similar problem with skypeforlinux profile I am developing.
I have added:
#include <abstractions/ ubuntu- browsers>
But in result, I get DENIEND with "profile transition not found":
type=AVC msg=audit( 1498909949. 154:568) : apparmor="DENIED" operation="exec" info="profile transition not found" error=-13 profile= "/usr/bin/ skypeforlinux" name="/ usr/lib/ firefox/ firefox. sh" pid=4874 comm="gvfs-open" requested_mask="x" denied_mask="x" fsuid=1000 ouid=0 1498909949. 154:568) : arch=c000003e syscall=59 success=no exit=-13 a0=560a2302a9ba a1=560a2302b080 a2=560a230742e0 a3=7f0a4a5beb58 items=0 ppid=1428 pid=4874 auid=1000 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 tty=(none) ses=2 comm="gvfs-open" exe="/usr/ bin/gvfs- open" key=(null) 1498909949. 154:568) : proctitle= 677666732D6F706 56E006874747073 3A2F2F676F2E736 B7970652E636F6D 2F7072697661637 93F696E74737263 3D636C69656E742 D5F2D6C696E7578 2D5F2D313432372 53246352E332E30 2E312532462D5F2 D6D656E752E7072 697661637926736 5746C616E673D65 6E
type=SYSCALL msg=audit(
type=PROCTITLE msg=audit(