Function report |
Source Code:security\smack\smack_access.c |
Create Date:2022-07-28 19:25:33 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:smack_log - Audit the granting or denial of permissions
Proto:void smack_log(char *subject_label, char *object_label, int request, int result, struct smk_audit_info *ad)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| char * | subject_label | |
| char * | object_label | |
| int | request | |
| int | result | |
| struct smk_audit_info * | ad |
| 352 | If result < 0 && (what events do we log* can be overwritten at run-time by /smack/logging & logging functions) == 0 Then Return |
| 354 | If result == 0 && (what events do we log* can be overwritten at run-time by /smack/logging & SMACK_AUDIT_ACCEPT) == 0 Then Return |
| 357 | sad = smack_audit_data |
| 364 | subject = subject_label |
| 365 | object = object_label |
| 381 | request = request_buffer |
| 384 | common_lsm_audit(a, smack_log_callback - SMACK specific information* will be called by generic audit code*@ab : the audit_buffer*@a : audit_data, NULL) |
| Name | Describe |
|---|---|
| smack_file_send_sigiotask | smack_file_send_sigiotask - Smack on sigio*@tsk: The target task*@fown: the object the signal come from*@signum: unused* Allow a privileged task to get signals even if it shouldn't* Returns 0 if a subject with the object's smack could |
| smk_access | smk_access - determine if a subject has a specific access to an object*@subject: a pointer to the subject's Smack label entry*@object: a pointer to the object's Smack label entry*@request: the access requested, in "MAY" format*@a : a pointer to the audit |
| smk_tskacc | smk_tskacc - determine if a task has a specific access to an object*@tsp: a pointer to the subject's task*@obj_known: a pointer to the object's label entry*@mode: the access requested, in "MAY" format*@a : common audit data* This function checks the |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |