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-13717 sec: filename encryption - digest support
[fs/lustre-release.git]
/
lustre
/
mdt
/
mdt_hsm_cdt_client.c
diff --git
a/lustre/mdt/mdt_hsm_cdt_client.c
b/lustre/mdt/mdt_hsm_cdt_client.c
index
ac5ff93
..
9f78796
100644
(file)
--- a/
lustre/mdt/mdt_hsm_cdt_client.c
+++ b/
lustre/mdt/mdt_hsm_cdt_client.c
@@
-239,7
+239,7
@@
hsm_action_permission(struct mdt_thread_info *mti,
if (hsma != HSMA_RESTORE && mdt_rdonly(mti->mti_exp))
RETURN(-EROFS);
if (hsma != HSMA_RESTORE && mdt_rdonly(mti->mti_exp))
RETURN(-EROFS);
- if (
md_capable(uc
, CAP_SYS_ADMIN))
+ if (
cap_raised(uc->uc_cap
, CAP_SYS_ADMIN))
RETURN(0);
ma->ma_need = MA_INODE;
RETURN(0);
ma->ma_need = MA_INODE;
@@
-313,7
+313,7
@@
static int mdt_hsm_register_hal(struct mdt_thread_info *mti,
/* In case of REMOVE and CANCEL a Lustre file
* is not mandatory, but restrict this
* exception to admins. */
/* In case of REMOVE and CANCEL a Lustre file
* is not mandatory, but restrict this
* exception to admins. */
- if (
md_capable(mdt_ucred(mti)
, CAP_SYS_ADMIN) &&
+ if (
cap_raised(mdt_ucred(mti)->uc_cap
, CAP_SYS_ADMIN) &&
(hai->hai_action == HSMA_REMOVE ||
hai->hai_action == HSMA_CANCEL))
goto record;
(hai->hai_action == HSMA_REMOVE ||
hai->hai_action == HSMA_CANCEL))
goto record;