函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:smk_of_task_struct

函数原型:static inline struct smack_known *smk_of_task_struct(const struct task_struct *t)

返回类型:struct smack_known

参数:

类型参数名称
const struct task_struct *t
407  _read_lock() - mark the beginning of an RCU read-side critical section* When synchronize_rcu() is invoked on one CPU while other CPUs* are within RCU read-side critical sections, then the* synchronize_rcu() is guaranteed to block until after all the other
409  cred等于__task_cred - Access a task's objective credentials*@task: The task to query* Access the objective credentials of a task. The caller must hold the RCU* readlock.* The result of this function should not be passed directly to get_cred();(t)
410  skp等于Present a pointer to the smack label entry in an task blob.
412  _read_unlock() - marks the end of an RCU read-side critical section.* In most situations, rcu_read_unlock() is immune from deadlock.* However, in kernels built with CONFIG_RCU_BOOST, rcu_read_unlock()
414  返回:skp
调用者
名称描述
smack_ptrace_access_checksmack_ptrace_access_check - Smack approval on PTRACE_ATTACH*@ctp: child task pointer*@mode: ptrace attachment mode (PTRACE_MODE_*)* Returns 0 if access is OK, an error code otherwise* Do the capability checks.
smk_curacc_on_tasksmk_curacc_on_task - helper to log task related access*@p: the task object*@access: the access requested*@caller: name of the calling function for audit* Return 0 if access is permitted
smack_task_getsecidsmack_task_getsecid - get the secid of the task*@p: the object task*@secid: where to put the result* Sets the secid to contain a u32 version of the smack label.
smack_task_killsmack_task_kill - Smack check on signal delivery*@p: the task object*@info: unused*@sig: unused*@cred: identifies the cred to use in lieu of current's* Return 0 if write access is permitted
smack_task_to_inodesmack_task_to_inode - copy task smack into the inode blob*@p: task to copy from*@inode: inode to copy to* Sets the smack pointer in the inode security blob
smack_getprocattrsmack_getprocattr - Smack process attribute access*@p: the object task*@name: the name of the attribute in /proc/.../attr*@value: where to put the result* Places a copy of the task Smack into value* Returns the length of the smack label or an error code