Home
last modified time | relevance | path

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

/security/apparmor/
A Dfile.c707 struct file *devnull = NULL; in aa_inherit_files() local
717 devnull = dentry_open(&aa_null, O_RDWR, cred); in aa_inherit_files()
718 if (IS_ERR(devnull)) in aa_inherit_files()
719 devnull = NULL; in aa_inherit_files()
722 replace_fd(n - 1, devnull, 0); in aa_inherit_files()
724 if (devnull) in aa_inherit_files()
725 fput(devnull); in aa_inherit_files()
/security/selinux/
A Dhooks.c2432 struct file *file, *devnull = NULL; in flush_unauthorized_files() local
2466 devnull = dentry_open(&selinux_null, O_RDWR, cred); in flush_unauthorized_files()
2467 if (IS_ERR(devnull)) in flush_unauthorized_files()
2468 devnull = NULL; in flush_unauthorized_files()
2471 replace_fd(n - 1, devnull, 0); in flush_unauthorized_files()
2473 if (devnull) in flush_unauthorized_files()
2474 fput(devnull); in flush_unauthorized_files()

Completed in 75 milliseconds