函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\smack\smack_access.c Create Date:2022-07-27 20:54:51
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:smack_log - Audit the granting or denial of permissions

函数原型:void smack_log(char *subject_label, char *object_label, int request, int result, struct smk_audit_info *ad)

返回类型:void

参数:

类型参数名称
char *subject_label
char *object_label
intrequest
intresult
struct smk_audit_info *ad
349  a等于a
352  如果result小于0且what events do we log* can be overwritten at run-time by /smack/logging按位与logging functions的值恒等于0则返回
354  如果result恒等于0且what events do we log* can be overwritten at run-time by /smack/logging按位与SMACK_AUDIT_ACCEPT的值恒等于0则返回
357  sad等于smack_audit_data
359  如果(function == NULL)则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)
调用者
名称描述
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