]> git.baikalelectronics.ru Git - kernel.git/commit
ceph: set sec_context xattr on symlink creation
authorJeff Layton <jlayton@kernel.org>
Tue, 28 Jul 2020 14:34:20 +0000 (10:34 -0400)
committerIlya Dryomov <idryomov@gmail.com>
Tue, 4 Aug 2020 17:41:11 +0000 (19:41 +0200)
commitfe9f005685d89c6d6e51dd0c716e7cc4dc27a7a5
tree2923d5afdd94cb337e8daa9b16df4f09afb702d0
parent9ab39e7b03c9ce82857555e90df1c62b689f59af
ceph: set sec_context xattr on symlink creation

Symlink inodes should have the security context set in their xattrs on
creation. We already set the context on creation, but we don't attach
the pagelist. The effect is that symlink inodes don't get an SELinux
context set on them at creation, so they end up unlabeled instead of
inheriting the proper context. Make it do so.

Cc: stable@vger.kernel.org
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/dir.c