|
29 | 29 | #include <linux/rculist.h> |
30 | 30 |
|
31 | 31 | /** |
| 32 | + * union security_list_options - Linux Security Module hook function list |
| 33 | + * |
32 | 34 | * Security hooks for program execution operations. |
33 | 35 | * |
34 | 36 | * @bprm_set_creds: |
|
193 | 195 | * @value will be set to the allocated attribute value. |
194 | 196 | * @len will be set to the length of the value. |
195 | 197 | * 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. |
198 | 200 | * @inode_create: |
199 | 201 | * Check permission to create a regular file. |
200 | 202 | * @dir contains inode structure of the parent of the new file. |
|
510 | 512 | * process @tsk. Note that this hook is sometimes called from interrupt. |
511 | 513 | * Note that the fown_struct, @fown, is never outside the context of a |
512 | 514 | * 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) |
515 | 516 | * @tsk contains the structure of task receiving signal. |
516 | 517 | * @fown contains the file owner information. |
517 | 518 | * @sig is the signal that will be sent. When 0, kernel sends SIGIO. |
|
521 | 522 | * to receive an open file descriptor via socket IPC. |
522 | 523 | * @file contains the file structure being received. |
523 | 524 | * Return 0 if permission is granted. |
524 | | - * @file_open |
| 525 | + * @file_open: |
525 | 526 | * Save open-time permission checking state for later use upon |
526 | 527 | * file_permission, and recheck access if anything has changed |
527 | 528 | * since inode_permission. |
|
1143 | 1144 | * @sma contains the semaphore structure. May be NULL. |
1144 | 1145 | * @cmd contains the operation to be performed. |
1145 | 1146 | * Return 0 if permission is granted. |
1146 | | - * @sem_semop |
| 1147 | + * @sem_semop: |
1147 | 1148 | * Check permissions before performing operations on members of the |
1148 | 1149 | * semaphore set @sma. If the @alter flag is nonzero, the semaphore set |
1149 | 1150 | * may be modified. |
|
1153 | 1154 | * @alter contains the flag indicating whether changes are to be made. |
1154 | 1155 | * Return 0 if permission is granted. |
1155 | 1156 | * |
1156 | | - * @binder_set_context_mgr |
| 1157 | + * @binder_set_context_mgr: |
1157 | 1158 | * Check whether @mgr is allowed to be the binder context manager. |
1158 | 1159 | * @mgr contains the task_struct for the task being registered. |
1159 | 1160 | * Return 0 if permission is granted. |
1160 | | - * @binder_transaction |
| 1161 | + * @binder_transaction: |
1161 | 1162 | * Check whether @from is allowed to invoke a binder transaction call |
1162 | 1163 | * to @to. |
1163 | 1164 | * @from contains the task_struct for the sending task. |
1164 | 1165 | * @to contains the task_struct for the receiving task. |
1165 | | - * @binder_transfer_binder |
| 1166 | + * @binder_transfer_binder: |
1166 | 1167 | * Check whether @from is allowed to transfer a binder reference to @to. |
1167 | 1168 | * @from contains the task_struct for the sending task. |
1168 | 1169 | * @to contains the task_struct for the receiving task. |
1169 | | - * @binder_transfer_file |
| 1170 | + * @binder_transfer_file: |
1170 | 1171 | * Check whether @from is allowed to transfer @file to @to. |
1171 | 1172 | * @from contains the task_struct for the sending task. |
1172 | 1173 | * @file contains the struct file being transferred. |
|
1214 | 1215 | * @cred contains the credentials to use. |
1215 | 1216 | * @ns contains the user namespace we want the capability in |
1216 | 1217 | * @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 |
1218 | 1219 | * Return 0 if the capability is granted for @tsk. |
1219 | 1220 | * @syslog: |
1220 | 1221 | * Check permission before accessing the kernel message ring or changing |
|
1336 | 1337 | * @inode we wish to get the security context of. |
1337 | 1338 | * @ctx is a pointer in which to place the allocated security context. |
1338 | 1339 | * @ctxlen points to the place to put the length of @ctx. |
1339 | | - * This is the main security structure. |
1340 | 1340 | */ |
1341 | | - |
1342 | 1341 | union security_list_options { |
1343 | 1342 | int (*binder_set_context_mgr)(struct task_struct *mgr); |
1344 | 1343 | int (*binder_transaction)(struct task_struct *from, |
|
0 commit comments