summaryrefslogtreecommitdiffstats
path: root/fs/namei.c
diff options
context:
space:
mode:
authorSeth Forshee2014-12-11 17:15:45 +0100
committerEric W. Biederman2016-07-05 22:13:21 +0200
commit81754357770ebd900801231e7bc8d151ddc00498 (patch)
treefe0e30f8ef4847787e8be19b21087fdb0d369580 /fs/namei.c
parentevm: Translate user/group ids relative to s_user_ns when computing HMAC (diff)
downloadkernel-qcow2-linux-81754357770ebd900801231e7bc8d151ddc00498.tar.gz
kernel-qcow2-linux-81754357770ebd900801231e7bc8d151ddc00498.tar.xz
kernel-qcow2-linux-81754357770ebd900801231e7bc8d151ddc00498.zip
fs: Update i_[ug]id_(read|write) to translate relative to s_user_ns
For filesystems mounted from a user namespace on-disk ids should be translated relative to s_users_ns rather than init_user_ns. When an id in the filesystem doesn't exist in s_user_ns the associated id in the inode will be set to INVALID_[UG]ID, which turns these into de facto "nobody" ids. This actually maps pretty well into the way most code already works, and those places where it didn't were fixed in previous patches. Moving forward vfs code needs to be careful to handle instances where ids in inodes may be invalid. Signed-off-by: Seth Forshee <seth.forshee@canonical.com> Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Diffstat (limited to 'fs/namei.c')
0 files changed, 0 insertions, 0 deletions