Skip to content
Commit faf302f5 authored by Roberto Sassu's avatar Roberto Sassu Committed by Paul Moore
Browse files

security: Fix ret values doc for security_inode_init_security()



Commit 6bcdfd2c ("security: Allow all LSMs to provide xattrs for
inode_init_security hook") unified the !initxattrs and initxattrs cases. By
doing that, security_inode_init_security() cannot return -EOPNOTSUPP
anymore, as it is always replaced with zero at the end of the function.

Also, mentioning -ENOMEM as the only possible error is not correct. For
example, evm_inode_init_security() could return -ENOKEY.

Fix these issues in the documentation of security_inode_init_security().

Fixes: 6bcdfd2c ("security: Allow all LSMs to provide xattrs for inode_init_security hook")
Signed-off-by: default avatarRoberto Sassu <roberto.sassu@huawei.com>
Signed-off-by: default avatarPaul Moore <paul@paul-moore.com>
parent ca22eca6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment