ceph: only set CEPH_I_SEC_INITED if we got a MAC label
authorJeff Layton <jlayton@kernel.org>
Tue, 6 Aug 2019 14:41:40 +0000 (10:41 -0400)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 16 Sep 2019 10:06:25 +0000 (12:06 +0200)
commit026105ebb0364fb2155ef3eba65f250efc7aeb45
treea8d94b014838106656557a719d5d3f078510dbf8
parent668959a53578076d836905c0bb51f5cfadf1c343
ceph: only set CEPH_I_SEC_INITED if we got a MAC label

__ceph_getxattr will set the CEPH_I_SEC_INITED flag whenever it gets
any xattr that starts with "security.". We only want to set that flag
when fetching the MAC label for the currently-active LSM, however.

Signed-off-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/xattr.c