Skip to content

Commit 8d93e95

Browse files
Denis EfremovJames Morris
authored andcommitted
LSM: lsm_hooks.h: fix documentation format
Fix for name mismatch and omitted colons in the security_list_options documentation. Signed-off-by: Denis Efremov <efremov@ispras.ru> Acked-by: Kees Cook <keescook@chromium.org> Acked-by: Casey Schaufler <casey@schaufler-ca.com> Signed-off-by: James Morris <james.morris@microsoft.com>
1 parent 9c53cb9 commit 8d93e95

1 file changed

Lines changed: 9 additions & 14 deletions

File tree

‎include/linux/lsm_hooks.h‎

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@
502502
* Return 0 if permission is granted.
503503
* @file_lock:
504504
* Check permission before performing file locking operations.
505-
* Note: this hook mediates both flock and fcntl style locks.
505+
* Note the hook mediates both flock and fcntl style locks.
506506
* @file contains the file structure.
507507
* @cmd contains the posix-translated lock operation to perform
508508
* (e.g. F_RDLCK, F_WRLCK).
@@ -645,12 +645,12 @@
645645
* @p contains the task_struct of process.
646646
* @nice contains the new nice value.
647647
* Return 0 if permission is granted.
648-
* @task_setioprio
648+
* @task_setioprio:
649649
* Check permission before setting the ioprio value of @p to @ioprio.
650650
* @p contains the task_struct of process.
651651
* @ioprio contains the new ioprio value
652652
* Return 0 if permission is granted.
653-
* @task_getioprio
653+
* @task_getioprio:
654654
* Check permission before getting the ioprio value of @p.
655655
* @p contains the task_struct of process.
656656
* Return 0 if permission is granted.
@@ -680,7 +680,7 @@
680680
* @p.
681681
* @p contains the task_struct for process.
682682
* Return 0 if permission is granted.
683-
* @task_movememory
683+
* @task_movememory:
684684
* Check permission before moving memory owned by process @p.
685685
* @p contains the task_struct for process.
686686
* Return 0 if permission is granted.
@@ -904,9 +904,9 @@
904904
* @secmark_relabel_packet:
905905
* check if the process should be allowed to relabel packets to
906906
* the given secid
907-
* @security_secmark_refcount_inc
907+
* @secmark_refcount_inc:
908908
* tells the LSM to increment the number of secmark labeling rules loaded
909-
* @security_secmark_refcount_dec
909+
* @secmark_refcount_dec:
910910
* tells the LSM to decrement the number of secmark labeling rules loaded
911911
* @req_classify_flow:
912912
* Sets the flow's sid to the openreq sid.
@@ -1294,8 +1294,8 @@
12941294
* Return 0 if permission is granted.
12951295
* @settime:
12961296
* Check permission to change the system time.
1297-
* struct timespec64 is defined in include/linux/time64.h and timezone
1298-
* is defined in include/linux/time.h
1297+
* struct timespec64 is defined in <include/linux/time64.h> and timezone
1298+
* is defined in <include/linux/time.h>
12991299
* @ts contains new time
13001300
* @tz contains new timezone
13011301
* Return 0 if permission is granted.
@@ -1337,7 +1337,7 @@
13371337
* @audit_rule_init:
13381338
* Allocate and initialize an LSM audit rule structure.
13391339
* @field contains the required Audit action.
1340-
* Fields flags are defined in include/linux/audit.h
1340+
* Fields flags are defined in <include/linux/audit.h>
13411341
* @op contains the operator the rule uses.
13421342
* @rulestr contains the context where the rule will be applied to.
13431343
* @lsmrule contains a pointer to receive the result.
@@ -1375,9 +1375,7 @@
13751375
* this hook to initialize the security context in its incore inode to the
13761376
* value provided by the server for the file when the server returned the
13771377
* file's attributes to the client.
1378-
*
13791378
* Must be called with inode->i_mutex locked.
1380-
*
13811379
* @inode we wish to set the security context of.
13821380
* @ctx contains the string which we wish to set in the inode.
13831381
* @ctxlen contains the length of @ctx.
@@ -1390,17 +1388,14 @@
13901388
* this hook to change the security context in its incore inode and on the
13911389
* backing filesystem to a value provided by the client on a SETATTR
13921390
* operation.
1393-
*
13941391
* Must be called with inode->i_mutex locked.
1395-
*
13961392
* @dentry contains the inode we wish to set the security context of.
13971393
* @ctx contains the string which we wish to set in the inode.
13981394
* @ctxlen contains the length of @ctx.
13991395
*
14001396
* @inode_getsecctx:
14011397
* On success, returns 0 and fills out @ctx and @ctxlen with the security
14021398
* context for the given @inode.
1403-
*
14041399
* @inode we wish to get the security context of.
14051400
* @ctx is a pointer in which to place the allocated security context.
14061401
* @ctxlen points to the place to put the length of @ctx.

0 commit comments

Comments
 (0)