Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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 activityDownload SCCTChinese

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:

TypeParameterName
char *subject_label
char *object_label
intrequest
intresult
struct smk_audit_info *ad
349  a = a
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
359  If (function == NULL) Then function = "unknown"
363  smack_str_from_perm : helper to transalate an int to a* readable string*@string : the string to fill*@access : the int
364  subject = subject_label
365  object = object_label
381  request = request_buffer
382  result = result
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)
Caller
NameDescribe
smack_file_send_sigiotasksmack_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_accesssmk_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_tskaccsmk_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