]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
cred: Reject inodes with invalid ids in set_create_file_as()
authorSeth Forshee <seth.forshee@canonical.com>
Tue, 26 Apr 2016 19:36:24 +0000 (14:36 -0500)
committerEric W. Biederman <ebiederm@xmission.com>
Thu, 30 Jun 2016 23:05:09 +0000 (18:05 -0500)
commit5f65e5ca286126a60f62c8421b77c2018a482b8a
tree6587f9ff0d9454050803e76d7347ca26bd75d73a
parent2d7f9e2ad35e4e7a3086231f19bfab33c6a8a64a
cred: Reject inodes with invalid ids in set_create_file_as()

Using INVALID_[UG]ID for the LSM file creation context doesn't
make sense, so return an error if the inode passed to
set_create_file_as() has an invalid id.

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>
kernel/cred.c