Skip to content

Instantly share code, notes, and snippets.

@major
Last active June 13, 2017 20:53
Show Gist options
  • Select an option

  • Save major/0e68414afbd69ad9c8372aa875611ecb to your computer and use it in GitHub Desktop.

Select an option

Save major/0e68414afbd69ad9c8372aa875611ecb to your computer and use it in GitHub Desktop.
Reviewing /dev/ptmx in LXC 2.0.6 vs 2.0.8
### LXC 2.0.8
[root@container1 ~]# ls -al /dev
total 4
drwxr-xr-x. 8 root root 540 Jun 13 20:52 .
dr-xr-xr-x. 18 root root 4096 Jun 13 20:52 ..
lrwxrwxrwx. 1 root root 11 Jun 13 20:52 console -> lxc/console
lrwxrwxrwx. 1 root root 11 Jun 13 20:52 core -> /proc/kcore
lrwxrwxrwx. 1 root root 13 Jun 13 20:52 fd -> /proc/self/fd
crw-rw-rw-. 1 root root 1, 7 Jun 13 20:52 full
drwxr-xr-x. 2 root root 0 Jun 13 20:52 hugepages
lrwxrwxrwx. 1 root root 25 Jun 13 20:52 initctl -> /run/systemd/initctl/fifo
srw-rw-rw-. 1 root root 0 Jun 13 20:52 log
drwxr-xr-x. 2 root root 140 Jun 13 20:52 lxc
drwxrwxrwt. 2 root root 40 Jun 13 20:52 mqueue
drwxr-xr-x. 2 root root 60 Jun 13 20:52 net
crw-rw-rw-. 1 root root 1, 3 Jun 13 20:52 null
crw-rw-rw-. 1 root root 5, 2 Jun 13 20:52 ptmx
drwxr-xr-x. 2 root root 0 Jun 13 20:52 pts
crw-rw-rw-. 1 root root 1, 8 Jun 13 20:52 random
drwxrwxrwt. 2 root root 40 Jun 13 20:52 shm
lrwxrwxrwx. 1 root root 15 Jun 13 20:52 stderr -> /proc/self/fd/2
lrwxrwxrwx. 1 root root 15 Jun 13 20:52 stdin -> /proc/self/fd/0
lrwxrwxrwx. 1 root root 15 Jun 13 20:52 stdout -> /proc/self/fd/1
crw-rw-rw-. 1 root root 5, 0 Jun 13 20:52 tty
lrwxrwxrwx. 1 root root 8 Jun 13 20:52 tty1 -> lxc/tty1
lrwxrwxrwx. 1 root root 8 Jun 13 20:52 tty2 -> lxc/tty2
lrwxrwxrwx. 1 root root 8 Jun 13 20:52 tty3 -> lxc/tty3
lrwxrwxrwx. 1 root root 8 Jun 13 20:52 tty4 -> lxc/tty4
crw-rw-rw-. 1 root root 1, 9 Jun 13 20:52 urandom
crw-rw-rw-. 1 root root 1, 5 Jun 13 20:52 zero
### LXC 2.0.6
[root@container1 ~]# ls -al /dev
total 4
drwxr-xr-x. 8 root root 540 Jun 13 20:42 .
dr-xr-xr-x. 18 root root 4096 Jun 13 20:42 ..
lrwxrwxrwx. 1 root root 11 Jun 13 20:42 console -> lxc/console
lrwxrwxrwx. 1 root root 11 Jun 13 20:42 core -> /proc/kcore
lrwxrwxrwx. 1 root root 13 Jun 13 20:42 fd -> /proc/self/fd
crw-rw-rw-. 1 root root 1, 7 Jun 13 20:42 full
drwxr-xr-x. 2 root root 0 Jun 13 20:42 hugepages
lrwxrwxrwx. 1 root root 25 Jun 13 20:42 initctl -> /run/systemd/initctl/fifo
srw-rw-rw-. 1 root root 0 Jun 13 20:42 log
drwxr-xr-x. 2 root root 140 Jun 13 20:42 lxc
drwxrwxrwt. 2 root root 40 Jun 13 20:42 mqueue
drwxr-xr-x. 2 root root 60 Jun 13 20:42 net
crw-rw-rw-. 1 root root 1, 3 Jun 13 20:42 null
lrwxrwxrwx. 1 root root 13 Jun 13 20:42 ptmx -> /dev/pts/ptmx
drwxr-xr-x. 2 root root 0 Jun 13 20:42 pts
crw-rw-rw-. 1 root root 1, 8 Jun 13 20:42 random
drwxrwxrwt. 2 root root 40 Jun 13 20:42 shm
lrwxrwxrwx. 1 root root 15 Jun 13 20:42 stderr -> /proc/self/fd/2
lrwxrwxrwx. 1 root root 15 Jun 13 20:42 stdin -> /proc/self/fd/0
lrwxrwxrwx. 1 root root 15 Jun 13 20:42 stdout -> /proc/self/fd/1
crw-rw-rw-. 1 root root 5, 0 Jun 13 20:42 tty
lrwxrwxrwx. 1 root root 8 Jun 13 20:42 tty1 -> lxc/tty1
lrwxrwxrwx. 1 root root 8 Jun 13 20:42 tty2 -> lxc/tty2
lrwxrwxrwx. 1 root root 8 Jun 13 20:42 tty3 -> lxc/tty3
lrwxrwxrwx. 1 root root 8 Jun 13 20:42 tty4 -> lxc/tty4
crw-rw-rw-. 1 root root 1, 9 Jun 13 20:42 urandom
crw-rw-rw-. 1 root root 1, 5 Jun 13 20:42 zero
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment