ceph: allow arbitrary security.* xattrs
authorJeff Layton <jlayton@kernel.org>
Tue, 6 Aug 2019 14:55:41 +0000 (10:55 -0400)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 16 Sep 2019 10:06:25 +0000 (12:06 +0200)
commitb8fe918b090442447d821b32b7dd6e17d5b5dfc1
treeb20eeb3a3f53e3b1b5e62de2041c38e5f61fbea8
parent026105ebb0364fb2155ef3eba65f250efc7aeb45
ceph: allow arbitrary security.* xattrs

Most filesystems don't limit what security.* xattrs can be set or
fetched. I see no reason that we need to limit that on cephfs either.

Drop the special xattr handler for "security." xattrs, and allow the
"other" xattr handler to handle security xattrs as well.

In addition to fixing xfstest generic/093, this allows us to support
per-file capabilities (a'la setcap(8)).

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