History

LSM: lsm_hooks.h: fix documentation format

Fix for name mismatch and omitted colons in the security_list_options documentation.

Denis Efremov committed 7 years ago

Commit 8d93e951 parent 9c53cb91 file · +9 −14Browse files

Showing the changes to include/linux (1 of 1 file). Show all

Unified · Split

include/linux/lsm_hooks.h+9−14
@@ -502,7 +502,7 @@ · 501 unmodified lines
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 @@ · 136 unmodified lines
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 @@ · 23 unmodified lines
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 @@ · 217 unmodified lines
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 @@ · 381 unmodified lines
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 @@ · 35 unmodified lines
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 @@ · 31 unmodified lines
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,9 +1388,7 @@ · 6 unmodified lines
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.
@@ -1400,7 +1396,6 @@ · 1 unmodified line
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.

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t