Function report |
Source Code:security\selinux\hooks.c |
Create Date:2022-07-28 18:56:17 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Derived from fs/exec.c:flush_old_files.
Proto:static inline void flush_unauthorized_files(const struct cred *cred, struct files_struct *files)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
const struct cred * | cred | |
struct files_struct * | files |
2456 | drop_tty = 0 |
2459 | tty = get_current_tty() |
2460 | If tty Then |
2461 | spin_lock( & protects tty_files list ) |
2462 | If Not list_empty - tests whether a list is empty*@head: the list to test. Then |
2473 | If Same as path_has_perm, but uses the inode from the file struct. Then drop_tty = 1 |
2476 | spin_unlock( & protects tty_files list ) |
2477 | tty_kref_put(tty) |
2484 | n = iterate_fd(files, 0, match_file, cred) |
2485 | If Not n Then Return |
2488 | devnull = dentry_open( & selinux_null, O_RDWR, cred) |
2492 | Do |
2493 | replace_fd(n - 1, devnull, 0) |
2494 | When (n = iterate_fd(files, n, match_file, cred)) != 0 cycle |
Name | Describe |
---|---|
selinux_bprm_committing_creds | Prepare a process for imminent new credential changes due to exec |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |