aboutsummaryrefslogtreecommitdiffstats
path: root/net/core/net_namespace.c
diff options
context:
space:
mode:
authorEric W. Biederman <[email protected]>2015-12-08 06:36:51 +0000
committerEric W. Biederman <[email protected]>2016-09-22 18:32:26 +0000
commit93f0a88bd4ad99a515f500a09f4a489ff03073eb (patch)
tree4c43e23b8188f560c5e5573d054e29b837095b54 /net/core/net_namespace.c
parentdevpts: Remove sync_filesystems (diff)
downloadkernel-93f0a88bd4ad99a515f500a09f4a489ff03073eb.tar.gz
kernel-93f0a88bd4ad99a515f500a09f4a489ff03073eb.zip
devpts: Change the owner of /dev/pts/ptmx to the mounter of /dev/pts
In 99.99% of the cases only root in a user namespace can mount /dev/pts and in those cases the owner of /dev/pts/ptmx will remain root.root In the oddball case where someone else has CAP_SYS_ADMIN this code modifies the /dev/pts mount code to use current_fsuid and current_fsgid as the values to use when creating the /dev/ptmx inode. As is done when any other file is created. This is a code simplification, and it allows running without a root user entirely. Signed-off-by: "Eric W. Biederman" <[email protected]>
Diffstat (limited to 'net/core/net_namespace.c')
0 files changed, 0 insertions, 0 deletions