Skip to content
Commit 41c21e35 authored by Andy Lutomirski's avatar Andy Lutomirski
Browse files

userns: Changing any namespace id mappings should require privileges



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: default avatarAndy Lutomirski <luto@amacapital.net>
parent e3211c12
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment