Home
last modified time | relevance | path

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

/Linux-v5.10/security/apparmor/
Dfile.c688 struct file *devnull = NULL; in aa_inherit_files() local
698 devnull = dentry_open(&aa_null, O_RDWR, cred); in aa_inherit_files()
699 if (IS_ERR(devnull)) in aa_inherit_files()
700 devnull = NULL; in aa_inherit_files()
703 replace_fd(n - 1, devnull, 0); in aa_inherit_files()
705 if (devnull) in aa_inherit_files()
706 fput(devnull); in aa_inherit_files()
/Linux-v5.10/security/selinux/
Dhooks.c2413 struct file *file, *devnull = NULL; in flush_unauthorized_files() local
2447 devnull = dentry_open(&selinux_null, O_RDWR, cred); in flush_unauthorized_files()
2448 if (IS_ERR(devnull)) in flush_unauthorized_files()
2449 devnull = NULL; in flush_unauthorized_files()
2452 replace_fd(n - 1, devnull, 0); in flush_unauthorized_files()
2454 if (devnull) in flush_unauthorized_files()
2455 fput(devnull); in flush_unauthorized_files()