|
@@ -237,6 +237,7 @@ static int inode_alloc_security(struct inode *inode)
|
|
|
isec->sid = SECINITSID_UNLABELED;
|
|
|
isec->sclass = SECCLASS_FILE;
|
|
|
isec->task_sid = sid;
|
|
|
+ isec->initialized = LABEL_INVALID;
|
|
|
inode->i_security = isec;
|
|
|
|
|
|
return 0;
|
|
@@ -247,7 +248,7 @@ static int inode_doinit_with_dentry(struct inode *inode, struct dentry *opt_dent
|
|
|
/*
|
|
|
* Try reloading inode security labels that have been marked as invalid. The
|
|
|
* @may_sleep parameter indicates when sleeping and thus reloading labels is
|
|
|
- * allowed; when set to false, returns ERR_PTR(-ECHILD) when the label is
|
|
|
+ * allowed; when set to false, returns -ECHILD when the label is
|
|
|
* invalid. The @opt_dentry parameter should be set to a dentry of the inode;
|
|
|
* when no dentry is available, set it to NULL instead.
|
|
|
*/
|