diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2012-09-02 19:12:51 -0700 |
---|---|---|
committer | Eric W. Biederman <ebiederm@xmission.com> | 2012-11-20 04:17:24 -0800 |
commit | 7fa294c8991ce0ed4e713f08209eb2ce3e1044ac (patch) | |
tree | d5f8e946374c75f4b620382b7141c6fdbdc19651 /kernel/user_namespace.c | |
parent | 5eaf563e53294d6696e651466697eb9d491f3946 (diff) | |
download | blackbird-op-linux-7fa294c8991ce0ed4e713f08209eb2ce3e1044ac.tar.gz blackbird-op-linux-7fa294c8991ce0ed4e713f08209eb2ce3e1044ac.zip |
userns: Allow chown and setgid preservation
- Allow chown if CAP_CHOWN is present in the current user namespace
and the uid of the inode maps into the current user namespace, and
the destination uid or gid maps into the current user namespace.
- Allow perserving setgid when changing an inode if CAP_FSETID is
present in the current user namespace and the owner of the file has
a mapping into the current user namespace.
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Diffstat (limited to 'kernel/user_namespace.c')
0 files changed, 0 insertions, 0 deletions