https://github.com/torvalds/linux
Revision 41c21e351e79004dbb4efa4bc14a53a7e0af38c5 authored by Andy Lutomirski on 14 April 2013, 18:44:04 UTC, committed by Andy Lutomirski on 15 April 2013, 01:11:32 UTC
Changing uid/gid/projid mappings doesn't change your id within the
namespace; it reconfigures the namespace.  Unprivileged programs should
*not* be able to write these files.  (We're also checking the privileges
on the wrong task.)

Given the write-once nature of these files and the other security
checks, this is likely impossible to usefully exploit.

Signed-off-by: Andy Lutomirski <luto@amacapital.net>
1 parent e3211c1
History
Tip revision: 41c21e351e79004dbb4efa4bc14a53a7e0af38c5 authored by Andy Lutomirski on 14 April 2013, 18:44:04 UTC
userns: Changing any namespace id mappings should require privileges
Tip revision: 41c21e3
File Mode Size
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.gitignore -rw-r--r-- 1.1 KB
.mailmap -rw-r--r-- 4.4 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 93.0 KB
Kbuild -rw-r--r-- 2.5 KB
Kconfig -rw-r--r-- 252 bytes
MAINTAINERS -rw-r--r-- 244.0 KB
Makefile -rw-r--r-- 47.0 KB
README -rw-r--r-- 18.3 KB
REPORTING-BUGS -rw-r--r-- 3.3 KB

README

back to top