提交 4726e8fa 编写于 作者: J J. Bruce Fields 提交者: James Morris

security: clarify cap_inode_getsecctx description

Make it clear that cap_inode_getsecctx shouldn't return success without
filling in the context data.
Acked-by: NSerge E. Hallyn <serge.hallyn@ubuntu.com>
Signed-off-by: NJ. Bruce Fields <bfields@redhat.com>
Signed-off-by: NJames Morris <james.l.morris@oracle.com>
上级 b5b3ee6c
......@@ -1392,7 +1392,8 @@ static inline void security_free_mnt_opts(struct security_mnt_opts *opts)
* @ctxlen contains the length of @ctx.
*
* @inode_getsecctx:
* Returns a string containing all relevant security context information
* On success, returns 0 and fills out @ctx and @ctxlen with the security
* context for the given @inode.
*
* @inode we wish to get the security context of.
* @ctx is a pointer in which to place the allocated security context.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册