Home
last modified time | relevance | path

Searched refs:devnull (Results 1 – 2 of 2) sorted by relevance

/Linux-v5.4/security/apparmor/
Dfile.c682 struct file *devnull = NULL; in aa_inherit_files() local
692 devnull = dentry_open(&aa_null, O_RDWR, cred); in aa_inherit_files()
693 if (IS_ERR(devnull)) in aa_inherit_files()
694 devnull = NULL; in aa_inherit_files()
697 replace_fd(n - 1, devnull, 0); in aa_inherit_files()
699 if (devnull) in aa_inherit_files()
700 fput(devnull); in aa_inherit_files()
/Linux-v5.4/security/selinux/
Dhooks.c2454 struct file *file, *devnull = NULL; in flush_unauthorized_files() local
2488 devnull = dentry_open(&selinux_null, O_RDWR, cred); in flush_unauthorized_files()
2489 if (IS_ERR(devnull)) in flush_unauthorized_files()
2490 devnull = NULL; in flush_unauthorized_files()
2493 replace_fd(n - 1, devnull, 0); in flush_unauthorized_files()
2495 if (devnull) in flush_unauthorized_files()
2496 fput(devnull); in flush_unauthorized_files()