函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\auditsc.c Create Date:2022-07-27 12:31:44
Last Modify:2020-03-17 16:31:21 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:audit_signal_info_syscall - record signal info for syscalls*@t: task being signaled* If the audit subsystem is being terminated, record the task (pid)* and uid that is doing that.

函数原型:int audit_signal_info_syscall(struct task_struct *t)

返回类型:int

参数:

类型参数名称
struct task_struct *t
2389  ctx等于audit_context()
2390  t_uid等于task_uid(t)
2392  如果非determines whether we collect data for signals sent audit_dummy_context()则返回:0
2397  如果非target_pid
2398  target_pid等于task_tgid_nr(t)
2399  target_auid等于audit_get_loginuid(t)
2400  target_uid等于t_uid
2401  target_sessionid等于audit_get_sessionid(t)
2402  security_task_getsecid(t, & target_sid)
2403  内存复制(target_comm, 是否使用FPU, Task command name length: )
2404  返回:0
2407  axp等于aux_pids
2408  如果非axppid_count恒等于Number of target pids per aux struct.
2409  axp等于分配内存并置零
2410  如果非axp则返回:负ENOMEM
2413  type等于ptrace target
2414  next等于aux_pids
2415  aux_pids等于axp
2417  BUG_ON(pid_count >= Number of target pids per aux struct. )
2419  target_pid[pid_count]等于task_tgid_nr(t)
2420  target_auid[pid_count]等于audit_get_loginuid(t)
2421  target_uid[pid_count]等于t_uid
2422  target_sessionid[pid_count]等于audit_get_sessionid(t)
2423  security_task_getsecid(t, & target_sid[pid_count])
2424  内存复制(target_comm[pid_count], 是否使用FPU, Task command name length: )
2425  pid_count自加
2427  返回:0