Apparmor denies /dev/ptmx/ on all snaps

Bug #1605438 reported by Luke Williams
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snappy
New
Undecided
Unassigned

Bug Description

Installing snaps on Ubuntu-Core, when I install the snaps, it fails to start them. Looking at dmesg this is the output:

Jul 22 01:22:12 localhost kernel: audit: type=1400 audit(1469150532.523:18): apparmor="DENIED" operation="mount" info="failed srcname match" error=-13 profile="/usr/lib/snapd/snap-confine" name="/dev/ptmx/" pid=2678 comm="ubuntu-core-lau" srcname="/dev/pts/ptmx/" flags="rw, bind"

I get this same error no matter the snap, be it ubuntu-core, fboss, or webdm.

[ 780.169708] audit: type=1400 audit(1469151041.181:20): apparmor="STATUS" operation="profile_load" name="snap.webdm.snappyd" pid=2888 comm="apparmor_parser" [ 780.521232] audit: type=1400 audit(1469151041.533:21): apparmor="DENIED" operation="mount" info="failed srcname match" error=-13 profile="/usr/lib/snapd/snap-confine" name="/dev/ptmx/" pid=2926 comm="ubuntu-core-lau" srcname="/dev/pts/ptmx/" flags="rw, bind"
[ 780.768571] audit: type=1400 audit(1469151041.781:22): apparmor="DENIED" operation="mount" info="failed srcname match" error=-13 profile="/usr/lib/snapd/snap-confine" name="/dev/ptmx/" pid=2929 comm="ubuntu-core-lau" srcname="/dev/pts/ptmx/" flags="rw, bind" [ 781.018769] audit: type=1400 audit(1469151042.029:23): apparmor="DENIED" operation="mount" info="failed srcname match" error=-13 profile="/usr/lib/snapd/snap-confine" name="/dev/ptmx/" pid=2931 comm="ubuntu-core-lau" srcname="/dev/pts/ptmx/" flags="rw, bind"
[ 781.269123] audit: type=1400 audit(1469151042.281:24): apparmor="DENIED" operation="mount" info="failed srcname match" error=-13 profile="/usr/lib/snapd/snap-confine" name="/dev/ptmx/" pid=2933 comm="ubuntu-core-lau" srcname="/dev/pts/ptmx/" flags="rw, bind"
[ 781.519623] audit: type=1400 audit(1469151042.529:25): apparmor="DENIED" operation="mount" info="failed srcname match" error=-13 profile="/usr/lib/snapd/snap-confine" name="/dev/ptmx/" pid=2935 comm="ubuntu-core-lau" srcname="/dev/pts/ptmx/" flags="rw, bind"

Below is a list of installed snaps:

ubuntu@localhost:~$ snap list
Name Version Rev Developer Notes
classic 16.04-1 4 canonical devmode
fboss 0.1.0 x1 devmode
ubuntu-core 16.04+20160714.10-11 138 canonical -
webdm 0.17 21 canonical -

If you need any more information, let me know.

Thanks,
Luke Williams
<email address hidden>

Luke Williams (wililupy)
description: updated
Revision history for this message
Seth Arnold (seth-arnold) wrote :

What kernel is on this machine?

Thanks

Revision history for this message
Jamie Strandboge (jdstrand) wrote :

This is almost certainly a duplicate of bug #1584456 and I'm going to mark it as such. If this is in error, please unduplicate this bug. Please also answer Seth's question in the other bug. Thanks!

summary: - Apparmor denies /dev/ptmx on all snaps
+ Apparmor denies /dev/ptmx/ on all snaps
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.