函数逻辑报告 |
Source Code:security\selinux\hooks.c |
Create Date:2022-07-27 20:28:50 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:Derived from fs/exec.c:flush_old_files.
函数原型:static inline void flush_unauthorized_files(const struct cred *cred, struct files_struct *files)
返回类型:void
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| const struct cred * | cred | |
| struct files_struct * | files |
| 2456 | drop_tty等于0 |
| 2459 | tty等于get_current_tty() |
| 2460 | 如果tty则 |
| 2461 | 加自旋锁 |
| 2462 | 如果非链表为空则 |
| 2476 | 自旋锁解锁 |
| 2477 | tty_kref_put(tty) |
| 2484 | n等于iterate_fd(files, 0, match_file, cred) |
| 2485 | 如果非n则返回 |
| 2488 | devnull等于dentry_open( & selinux_null, O_RDWR, cred) |
| 2492 | 循环 |
| 2493 | replace_fd(n - 1, devnull, 0) |
| 2494 | 当n等于iterate_fd(files, n, match_file, cred)不等于0循环 |
| 名称 | 描述 |
|---|---|
| selinux_bprm_committing_creds | Prepare a process for imminent new credential changes due to exec |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |