diff options
author | Jeff Layton <jlayton@kernel.org> | 2020-07-28 09:58:43 -0400 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2023-08-22 09:01:48 +0200 |
commit | f061feda6c54ccb02b0f2c09926fb8edd4882fbb (patch) | |
tree | 7181a6ca595cce754247b63d93af8ff3adde8ed3 /security/commoncap.c | |
parent | 6b5717bd30ab7f35792d20b71211055bdb43e6de (diff) |
ceph: add fscrypt ioctls and ceph.fscrypt.auth vxattr
We gate most of the ioctls on MDS feature support. The exception is the
key removal and status functions that we still want to work if the MDS's
were to (inexplicably) lose the feature.
For the set_policy ioctl, we take Fs caps to ensure that nothing can
create files in the directory while the ioctl is running. That should
be enough to ensure that the "empty_dir" check is reliable.
The vxattr is read-only, added mostly for future debugging purposes.
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: Xiubo Li <xiubli@redhat.com>
Reviewed-and-tested-by: Luís Henriques <lhenriques@suse.de>
Reviewed-by: Milind Changire <mchangir@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'security/commoncap.c')
0 files changed, 0 insertions, 0 deletions