I enabled the apparmor kernel debugging, and this is what shows up in dmesg:
[ 3526.954133] AppArmor: unconfined exec no attachment [ 3533.965480] AppArmor: unconfined attached to new label [ 3533.965485] apparmor: clearing unsafe personality bits. /home/ubuntu/tmp/apparmor-2.10.95/tests/regression/apparmor/environ label= [ 3533.965547] /home/ubuntu/tmp/apparmor-2.10.95/tests/regression/apparmor/environ
[ 3533.966847] audit: type=1400 audit(1485993479.943:350): apparmor="ALLOWED" operation="exec" profile="/home/ubuntu/tmp/apparmor-2.10.95/tests/regression/apparmor/environ" name="/home/ubuntu/tmp/apparmor-2.10.95/tests/regression/apparmor/env_check" pid=5722 comm="environ" requested_mask="x" denied_mask="x" fsuid=1000 ouid=1000 target="/home/ubuntu/tmp/apparmor-2.10.95/tests/regression/apparmor/environ//null-/home/ubuntu/tmp/apparmor-2.10.95/tests/regression/apparmor/env_check"
I enabled the apparmor kernel debugging, and this is what shows up in dmesg:
[ 3526.954133] AppArmor: unconfined exec no attachment tmp/apparmor- 2.10.95/ tests/regressio n/apparmor/ environ label= tmp/apparmor- 2.10.95/ tests/regressio n/apparmor/ environ
[ 3533.965480] AppArmor: unconfined attached to new label
[ 3533.965485] apparmor: clearing unsafe personality bits. /home/ubuntu/
[ 3533.965547] /home/ubuntu/
[ 3533.966847] audit: type=1400 audit(148599347 9.943:350) : apparmor="ALLOWED" operation="exec" profile= "/home/ ubuntu/ tmp/apparmor- 2.10.95/ tests/regressio n/apparmor/ environ" name="/ home/ubuntu/ tmp/apparmor- 2.10.95/ tests/regressio n/apparmor/ env_check" pid=5722 comm="environ" requested_mask="x" denied_mask="x" fsuid=1000 ouid=1000 target= "/home/ ubuntu/ tmp/apparmor- 2.10.95/ tests/regressio n/apparmor/ environ/ /null-/ home/ubuntu/ tmp/apparmor- 2.10.95/ tests/regressio n/apparmor/ env_check"