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
502 * Return 0 if permission is granted.502 * Return 0 if permission is granted.
503 * @file_lock:503 * @file_lock:
504 * Check permission before performing file locking operations.504 * 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.
506 * @file contains the file structure.506 * @file contains the file structure.
507 * @cmd contains the posix-translated lock operation to perform507 * @cmd contains the posix-translated lock operation to perform
508 * (e.g. F_RDLCK, F_WRLCK).508 * (e.g. F_RDLCK, F_WRLCK).
@@ -645,12 +645,12 @@ · 136 unmodified lines
645 * @p contains the task_struct of process.645 * @p contains the task_struct of process.
646 * @nice contains the new nice value.646 * @nice contains the new nice value.
647 * Return 0 if permission is granted.647 * Return 0 if permission is granted.
648 * @task_setioprio648 * @task_setioprio:
649 * Check permission before setting the ioprio value of @p to @ioprio.649 * Check permission before setting the ioprio value of @p to @ioprio.
650 * @p contains the task_struct of process.650 * @p contains the task_struct of process.
651 * @ioprio contains the new ioprio value651 * @ioprio contains the new ioprio value
652 * Return 0 if permission is granted.652 * Return 0 if permission is granted.
653 * @task_getioprio653 * @task_getioprio:
654 * Check permission before getting the ioprio value of @p.654 * Check permission before getting the ioprio value of @p.
655 * @p contains the task_struct of process.655 * @p contains the task_struct of process.
656 * Return 0 if permission is granted.656 * Return 0 if permission is granted.
@@ -680,7 +680,7 @@ · 23 unmodified lines
680 * @p.680 * @p.
681 * @p contains the task_struct for process.681 * @p contains the task_struct for process.
682 * Return 0 if permission is granted.682 * Return 0 if permission is granted.
683 * @task_movememory683 * @task_movememory:
684 * Check permission before moving memory owned by process @p.684 * Check permission before moving memory owned by process @p.
685 * @p contains the task_struct for process.685 * @p contains the task_struct for process.
686 * Return 0 if permission is granted.686 * Return 0 if permission is granted.
@@ -904,9 +904,9 @@ · 217 unmodified lines
904 * @secmark_relabel_packet:904 * @secmark_relabel_packet:
905 * check if the process should be allowed to relabel packets to905 * check if the process should be allowed to relabel packets to
906 * the given secid906 * the given secid
907 * @security_secmark_refcount_inc907 * @secmark_refcount_inc:
908 * tells the LSM to increment the number of secmark labeling rules loaded908 * tells the LSM to increment the number of secmark labeling rules loaded
909 * @security_secmark_refcount_dec909 * @secmark_refcount_dec:
910 * tells the LSM to decrement the number of secmark labeling rules loaded910 * tells the LSM to decrement the number of secmark labeling rules loaded
911 * @req_classify_flow:911 * @req_classify_flow:
912 * Sets the flow's sid to the openreq sid.912 * Sets the flow's sid to the openreq sid.
@@ -1294,8 +1294,8 @@ · 381 unmodified lines
1294 * Return 0 if permission is granted.1294 * Return 0 if permission is granted.
1295 * @settime:1295 * @settime:
1296 * Check permission to change the system time.1296 * Check permission to change the system time.
1297 * struct timespec64 is defined in include/linux/time64.h and timezone1297 * struct timespec64 is defined in <include/linux/time64.h> and timezone
1298 * is defined in include/linux/time.h1298 * is defined in <include/linux/time.h>
1299 * @ts contains new time1299 * @ts contains new time
1300 * @tz contains new timezone1300 * @tz contains new timezone
1301 * Return 0 if permission is granted.1301 * Return 0 if permission is granted.
@@ -1337,7 +1337,7 @@ · 35 unmodified lines
1337 * @audit_rule_init:1337 * @audit_rule_init:
1338 * Allocate and initialize an LSM audit rule structure.1338 * Allocate and initialize an LSM audit rule structure.
1339 * @field contains the required Audit action.1339 * @field contains the required Audit action.
1340 * Fields flags are defined in include/linux/audit.h1340 * Fields flags are defined in <include/linux/audit.h>
1341 * @op contains the operator the rule uses.1341 * @op contains the operator the rule uses.
1342 * @rulestr contains the context where the rule will be applied to.1342 * @rulestr contains the context where the rule will be applied to.
1343 * @lsmrule contains a pointer to receive the result.1343 * @lsmrule contains a pointer to receive the result.
@@ -1375,9 +1375,7 @@ · 31 unmodified lines
1375 * this hook to initialize the security context in its incore inode to the1375 * this hook to initialize the security context in its incore inode to the
1376 * value provided by the server for the file when the server returned the1376 * value provided by the server for the file when the server returned the
1377 * file's attributes to the client.1377 * file's attributes to the client.
1378 *
1379 * Must be called with inode->i_mutex locked.1378 * Must be called with inode->i_mutex locked.
1380 *
1381 * @inode we wish to set the security context of.1379 * @inode we wish to set the security context of.
1382 * @ctx contains the string which we wish to set in the inode.1380 * @ctx contains the string which we wish to set in the inode.
1383 * @ctxlen contains the length of @ctx.1381 * @ctxlen contains the length of @ctx.
@@ -1390,9 +1388,7 @@ · 6 unmodified lines
1390 * this hook to change the security context in its incore inode and on the1388 * this hook to change the security context in its incore inode and on the
1391 * backing filesystem to a value provided by the client on a SETATTR1389 * backing filesystem to a value provided by the client on a SETATTR
1392 * operation.1390 * operation.
1393 *
1394 * Must be called with inode->i_mutex locked.1391 * Must be called with inode->i_mutex locked.
1395 *
1396 * @dentry contains the inode we wish to set the security context of.1392 * @dentry contains the inode we wish to set the security context of.
1397 * @ctx contains the string which we wish to set in the inode.1393 * @ctx contains the string which we wish to set in the inode.
1398 * @ctxlen contains the length of @ctx.1394 * @ctxlen contains the length of @ctx.
@@ -1400,7 +1396,6 @@ · 1 unmodified line
1400 * @inode_getsecctx:1396 * @inode_getsecctx:
1401 * On success, returns 0 and fills out @ctx and @ctxlen with the security1397 * On success, returns 0 and fills out @ctx and @ctxlen with the security
1402 * context for the given @inode.1398 * context for the given @inode.
1403 *
1404 * @inode we wish to get the security context of.1399 * @inode we wish to get the security context of.
1405 * @ctx is a pointer in which to place the allocated security context.1400 * @ctx is a pointer in which to place the allocated security context.
1406 * @ctxlen points to the place to put the length of @ctx.1401 * @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