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-5560 llite: basic support of SELinux in CLIO
[fs/lustre-release.git]
/
lustre
/
llite
/
namei.c
diff --git
a/lustre/llite/namei.c
b/lustre/llite/namei.c
index
aa6ce22
..
483ca43
100644
(file)
--- a/
lustre/llite/namei.c
+++ b/
lustre/llite/namei.c
@@
-883,6
+883,11
@@
static int ll_create_it(struct inode *dir, struct dentry *dentry,
RETURN(PTR_ERR(inode));
d_instantiate(dentry, inode);
RETURN(PTR_ERR(inode));
d_instantiate(dentry, inode);
+
+ rc = ll_init_security(dentry, inode, dir);
+ if (rc)
+ RETURN(rc);
+
RETURN(0);
}
RETURN(0);
}
@@
-975,6
+980,10
@@
again:
d_instantiate(dchild, inode);
d_instantiate(dchild, inode);
+ err = ll_init_security(dchild, inode, dir);
+ if (err)
+ GOTO(err_exit, err);
+
EXIT;
err_exit:
if (request != NULL)
EXIT;
err_exit:
if (request != NULL)