Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
LU-9859 libcfs: discard cfs_cap_t, use kernel_cap_t
[fs/lustre-release.git]
/
lustre
/
mdt
/
mdt_handler.c
diff --git
a/lustre/mdt/mdt_handler.c
b/lustre/mdt/mdt_handler.c
index
77ced3e
..
a54cef4
100644
(file)
--- a/
lustre/mdt/mdt_handler.c
+++ b/
lustre/mdt/mdt_handler.c
@@
-2363,7
+2363,7
@@
static int mdt_rmfid_check_permission(struct mdt_thread_info *info,
if (la->la_flags & LUSTRE_IMMUTABLE_FL)
rc = -EACCES;
- if (
md_capable(uc
, CAP_DAC_OVERRIDE))
+ if (
cap_raised(uc->uc_cap
, CAP_DAC_OVERRIDE))
RETURN(0);
if (uc->uc_fsuid == la->la_uid) {
if ((la->la_mode & S_IWUSR) == 0)