Comment 0 for bug 1584456

Revision history for this message
Pedro Coca (pcoca) wrote :

- Finding issues running snaps (hello-world).
- Same issue even installing with --devmode. Even running the snap binary as root
- Using a custom kernel, this is on an Nvidia Tegra X1 custom board.

=====================================

ubuntu@localhost:~$ hello-world.echo plop
unable to mount '/dev/pts/ptmx'->'/dev/ptmx'. errmsg: Permission denied
ubuntu@localhost:~$ sudo hello-world.echo plop
unable to mount '/dev/pts/ptmx'->'/dev/ptmx'. errmsg: Permission denied

dmesg shows:
=====================================

[ 302.838046] type=1400 audit(1455208371.989:16): apparmor="DENIED"
operation="mount" info="failed mntpnt match" error=-13 parent=911
profile="/usr/bin/ubuntu-core-launcher" name="/dev/ptmx/" pid=912
comm="ubuntu-core-lau" srcname="/dev/pts/ptmx/" flags="rw, bind"
[ 308.080449] type=1400 audit(1455208377.229:17): apparmor="DENIED"
operation="mount" info="failed mntpnt match" error=-13 parent=914
profile="/usr/bin/ubuntu-core-launcher" name="/dev/ptmx/" pid=915
comm="ubuntu-core-lau" srcname="/dev/pts/ptmx/" flags="rw, bind"

This is with the "hello-world" snap installed with "snap install"

Output of an ls over the device file:
=====================================

ubuntu@localhost:~$ ls -lR /dev/ptmx /dev/pts
crw-rw-rw- 1 root tty 5, 2 Feb 11 16:28 /dev/ptmx

/dev/pts:
total 0
c--------- 1 root root 5, 2 Jan 1 1970 ptmx