diff options
author | Seth Forshee <seth.forshee@canonical.com> | 2016-04-26 19:36:25 (GMT) |
---|---|---|
committer | Eric W. Biederman <ebiederm@xmission.com> | 2016-06-28 02:58:25 (GMT) |
commit | a475acf01f79e89a1a5845733e10108d80f77188 (patch) | |
tree | 69c43e9a9ae185e8c7f0469c1c3695acd0712104 /ipc | |
parent | aad82892af261b9903cc11c55be3ecf5f0b0b4f8 (diff) | |
download | linux-a475acf01f79e89a1a5845733e10108d80f77188.tar.xz |
fs: Refuse uid/gid changes which don't map into s_user_ns
Add checks to notify_change to verify that uid and gid changes
will map into the superblock's user namespace. If they do not
fail with -EOVERFLOW.
This is mandatory so that fileystems don't have to even think
of dealing with ia_uid and ia_gid that
--EWB Moved the test from inode_change_ok to notify_change
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
Acked-by: Serge Hallyn <serge.hallyn@canonical.com>
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Diffstat (limited to 'ipc')
0 files changed, 0 insertions, 0 deletions