2006-03-28 13:09:32

by Serge E. Hallyn

[permalink] [raw]
Subject: [PATCH] document security_inode_xattr_getsuffix()

Add documentation for the security_inode_xattr_getsuffix() hook in
include/linux/security.h. This is (currently) called only from
kernel/auditsc.c, and slipped in without a comment.

:100644 100644 3d8602e... 092740e... M include/linux/security.h

Signed-off-by: Serge Hallyn <[email protected]>

--- a/include/linux/security.h
+++ b/include/linux/security.h
@@ -386,6 +386,10 @@ struct swap_info_struct;
* Check permission before removing the extended attribute
* identified by @name for @dentry.
* Return 0 if permission is granted.
+ * @inode_xattr_getsuffix:
+ * Return the extended attribute name suffix for the loaded LSM.
+ * Takes no arguments.
+ * Returns a const char*.
* @inode_getsecurity:
* Copy the extended attribute representation of the security label
* associated with @name for @inode into @buffer. @buffer may be