Skip to content

Commit f00f85a

Browse files
keesJonathan Corbet
authored andcommitted
doc: security: minor cleanups to build kernel-doc
These fixes were needed to parse lsm_hooks.h kernel-doc. More work is needed, but this is the first step. Acked-by: James Morris <james.l.morris@oracle.com> Acked-by: Casey Schaufler <casey@schaufler-ca.com> Signed-off-by: Kees Cook <keescook@chromium.org> Signed-off-by: Jonathan Corbet <corbet@lwn.net>
1 parent c2ed674 commit f00f85a

1 file changed

Lines changed: 12 additions & 13 deletions

File tree

‎include/linux/lsm_hooks.h‎

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
2929
#include <linux/rculist.h>
3030

3131
/**
32+
* union security_list_options - Linux Security Module hook function list
33+
*
3234
* Security hooks for program execution operations.
3335
*
3436
* @bprm_set_creds:
@@ -193,8 +195,8 @@
193195
* @value will be set to the allocated attribute value.
194196
* @len will be set to the length of the value.
195197
* Returns 0 if @name and @value have been successfully set,
196-
* -EOPNOTSUPP if no security attribute is needed, or
197-
* -ENOMEM on memory allocation failure.
198+
* -EOPNOTSUPP if no security attribute is needed, or
199+
* -ENOMEM on memory allocation failure.
198200
* @inode_create:
199201
* Check permission to create a regular file.
200202
* @dir contains inode structure of the parent of the new file.
@@ -510,8 +512,7 @@
510512
* process @tsk. Note that this hook is sometimes called from interrupt.
511513
* Note that the fown_struct, @fown, is never outside the context of a
512514
* struct file, so the file structure (and associated security information)
513-
* can always be obtained:
514-
* container_of(fown, struct file, f_owner)
515+
* can always be obtained: container_of(fown, struct file, f_owner)
515516
* @tsk contains the structure of task receiving signal.
516517
* @fown contains the file owner information.
517518
* @sig is the signal that will be sent. When 0, kernel sends SIGIO.
@@ -521,7 +522,7 @@
521522
* to receive an open file descriptor via socket IPC.
522523
* @file contains the file structure being received.
523524
* Return 0 if permission is granted.
524-
* @file_open
525+
* @file_open:
525526
* Save open-time permission checking state for later use upon
526527
* file_permission, and recheck access if anything has changed
527528
* since inode_permission.
@@ -1143,7 +1144,7 @@
11431144
* @sma contains the semaphore structure. May be NULL.
11441145
* @cmd contains the operation to be performed.
11451146
* Return 0 if permission is granted.
1146-
* @sem_semop
1147+
* @sem_semop:
11471148
* Check permissions before performing operations on members of the
11481149
* semaphore set @sma. If the @alter flag is nonzero, the semaphore set
11491150
* may be modified.
@@ -1153,20 +1154,20 @@
11531154
* @alter contains the flag indicating whether changes are to be made.
11541155
* Return 0 if permission is granted.
11551156
*
1156-
* @binder_set_context_mgr
1157+
* @binder_set_context_mgr:
11571158
* Check whether @mgr is allowed to be the binder context manager.
11581159
* @mgr contains the task_struct for the task being registered.
11591160
* Return 0 if permission is granted.
1160-
* @binder_transaction
1161+
* @binder_transaction:
11611162
* Check whether @from is allowed to invoke a binder transaction call
11621163
* to @to.
11631164
* @from contains the task_struct for the sending task.
11641165
* @to contains the task_struct for the receiving task.
1165-
* @binder_transfer_binder
1166+
* @binder_transfer_binder:
11661167
* Check whether @from is allowed to transfer a binder reference to @to.
11671168
* @from contains the task_struct for the sending task.
11681169
* @to contains the task_struct for the receiving task.
1169-
* @binder_transfer_file
1170+
* @binder_transfer_file:
11701171
* Check whether @from is allowed to transfer @file to @to.
11711172
* @from contains the task_struct for the sending task.
11721173
* @file contains the struct file being transferred.
@@ -1214,7 +1215,7 @@
12141215
* @cred contains the credentials to use.
12151216
* @ns contains the user namespace we want the capability in
12161217
* @cap contains the capability <include/linux/capability.h>.
1217-
* @audit: Whether to write an audit message or not
1218+
* @audit contains whether to write an audit message or not
12181219
* Return 0 if the capability is granted for @tsk.
12191220
* @syslog:
12201221
* Check permission before accessing the kernel message ring or changing
@@ -1336,9 +1337,7 @@
13361337
* @inode we wish to get the security context of.
13371338
* @ctx is a pointer in which to place the allocated security context.
13381339
* @ctxlen points to the place to put the length of @ctx.
1339-
* This is the main security structure.
13401340
*/
1341-
13421341
union security_list_options {
13431342
int (*binder_set_context_mgr)(struct task_struct *mgr);
13441343
int (*binder_transaction)(struct task_struct *from,

0 commit comments

Comments
 (0)