diff options
author | J. Bruce Fields <bfields@redhat.com> | 2013-05-09 11:41:04 -0400 |
---|---|---|
committer | James Morris <james.l.morris@oracle.com> | 2013-05-12 07:32:38 -0400 |
commit | 4726e8fa1dcad533362475ebf91f70d5b6b6292f (patch) | |
tree | 82c03b9cc4c3c71c711c128aac647d9e91b822b2 /include | |
parent | b5b3ee6c9cca8b6e1aa8c757e570f08f802c5573 (diff) |
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: Serge E. Hallyn <serge.hallyn@ubuntu.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Signed-off-by: James Morris <james.l.morris@oracle.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/security.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/security.h b/include/linux/security.h index 4686491852a7..40560f41e3d5 100644 --- a/include/linux/security.h +++ b/include/linux/security.h | |||
@@ -1392,7 +1392,8 @@ static inline void security_free_mnt_opts(struct security_mnt_opts *opts) | |||
1392 | * @ctxlen contains the length of @ctx. | 1392 | * @ctxlen contains the length of @ctx. |
1393 | * | 1393 | * |
1394 | * @inode_getsecctx: | 1394 | * @inode_getsecctx: |
1395 | * Returns a string containing all relevant security context information | 1395 | * On success, returns 0 and fills out @ctx and @ctxlen with the security |
1396 | * context for the given @inode. | ||
1396 | * | 1397 | * |
1397 | * @inode we wish to get the security context of. | 1398 | * @inode we wish to get the security context of. |
1398 | * @ctx is a pointer in which to place the allocated security context. | 1399 | * @ctx is a pointer in which to place the allocated security context. |