Searched refs:devnull (Results 1 – 2 of 2) sorted by relevance
686 struct file *devnull = NULL; in aa_inherit_files() local696 devnull = dentry_open(&aa_null, O_RDWR, cred); in aa_inherit_files()697 if (IS_ERR(devnull)) in aa_inherit_files()698 devnull = NULL; in aa_inherit_files()701 replace_fd(n - 1, devnull, 0); in aa_inherit_files()703 if (devnull) in aa_inherit_files()704 fput(devnull); in aa_inherit_files()
2592 struct file *file, *devnull = NULL; in flush_unauthorized_files() local2626 devnull = dentry_open(&selinux_null, O_RDWR, cred); in flush_unauthorized_files()2627 if (IS_ERR(devnull)) in flush_unauthorized_files()2628 devnull = NULL; in flush_unauthorized_files()2631 replace_fd(n - 1, devnull, 0); in flush_unauthorized_files()2633 if (devnull) in flush_unauthorized_files()2634 fput(devnull); in flush_unauthorized_files()