Function report |
Source Code:security\apparmor\file.c |
Create Date:2022-07-28 19:54:01 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:ased on selinux's flush_unauthorized_files
Proto:void aa_inherit_files(const struct cred *cred, struct files_struct *files)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
const struct cred * | cred | |
struct files_struct * | files |
698 | label = aa_get_newest_cred_label - obtain the newest label on a cred*@cred: cred to obtain label from (NOT NULL)* Returns: newest version of confining label |
702 | revalidate_tty(label) |
705 | n = iterate_fd(files, 0, match_file, label) |
709 | devnull = dentry_open( & aa_null, O_RDWR, cred) |
713 | Do |
714 | replace_fd(n - 1, devnull, 0) |
715 | When (n = iterate_fd(files, n, match_file, label)) != 0 cycle |
718 | out : |
719 | aa_put_label(label) |
Name | Describe |
---|---|
apparmor_bprm_committing_creds | apparmor_bprm_committing_creds - do task cleanup on committing new creds*@bprm: binprm for the exec (NOT NULL) |
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 |