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-4476 kernel: support process namespace containers
[fs/lustre-release.git]
/
lustre
/
mdt
/
mdt_idmap.c
diff --git
a/lustre/mdt/mdt_idmap.c
b/lustre/mdt/mdt_idmap.c
index
e6b8c46
..
17295ee
100644
(file)
--- a/
lustre/mdt/mdt_idmap.c
+++ b/
lustre/mdt/mdt_idmap.c
@@
-161,7
+161,7
@@
int mdt_handle_idmap(struct tgt_session_info *tsi)
RETURN(-EACCES);
}
-
if (req->rq_auth_mapped_uid == INVALID_UID
) {
+
if (!uid_valid(make_kuid(&init_user_ns, req->rq_auth_mapped_uid))
) {
CDEBUG(D_SEC, "invalid authorized mapped uid, please check "
"/etc/lustre/idmap.conf!\n");
RETURN(-EACCES);