userns: Allow the userns root to mount of devpts
authorEric W. Biederman <ebiederm@xmission.com>
Tue, 21 Aug 2012 00:28:58 +0000 (17:28 -0700)
committerEric W. Biederman <ebiederm@xmission.com>
Sun, 27 Jan 2013 06:22:21 +0000 (22:22 -0800)
- The context in which devpts is mounted has no effect on the creation
  of ptys as the /dev/ptmx interface has been used by unprivileged
  users for many years.

- Only support unprivileged mounts in combination with the newinstance
  option to ensure that mounting of /dev/pts in a user namespace will
  not allow the options of an existing mount of devpts to be modified.

- Create /dev/pts/ptmx as the root user in the user namespace that
  mounts devpts so that it's permissions to be changed.

Acked-by: Serge Hallyn <serge.hallyn@canonical.com>
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>

No differences found