Searched refs:devnull (Results 1 – 3 of 3) sorted by relevance
/Linux-v5.15/security/apparmor/ |
D | file.c | 690 struct file *devnull = NULL; in aa_inherit_files() local 700 devnull = dentry_open(&aa_null, O_RDWR, cred); in aa_inherit_files() 701 if (IS_ERR(devnull)) in aa_inherit_files() 702 devnull = NULL; in aa_inherit_files() 705 replace_fd(n - 1, devnull, 0); in aa_inherit_files() 707 if (devnull) in aa_inherit_files() 708 fput(devnull); in aa_inherit_files()
|
/Linux-v5.15/tools/perf/scripts/python/ |
D | intel-pt-events.py | 326 sys.stdout = open(os.devnull, 'w') 335 sys.stdout = open(os.devnull, 'w')
|
/Linux-v5.15/security/selinux/ |
D | hooks.c | 2476 struct file *file, *devnull = NULL; in flush_unauthorized_files() local 2510 devnull = dentry_open(&selinux_null, O_RDWR, cred); in flush_unauthorized_files() 2511 if (IS_ERR(devnull)) in flush_unauthorized_files() 2512 devnull = NULL; in flush_unauthorized_files() 2515 replace_fd(n - 1, devnull, 0); in flush_unauthorized_files() 2517 if (devnull) in flush_unauthorized_files() 2518 fput(devnull); in flush_unauthorized_files()
|