Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/bpf/prog_tests/
H A Duprobe_autoattach.c21 FILE *devnull; in test_uprobe_autoattach() local
38 devnull = fopen(devnull_str, "r"); in test_uprobe_autoattach()
48 ASSERT_EQ(skel->bss->uretprobe_byname2_rc, (__u64)(long)devnull, in test_uprobe_autoattach()
71 fclose(devnull); in test_uprobe_autoattach()
H A Dattach_probe.c241 FILE *devnull; in test_uprobe_lib() local
267 devnull = fopen("/dev/null", "r"); in test_uprobe_lib()
268 fclose(devnull); in test_uprobe_lib()
/linux/scripts/
H A Ddiffconfig137 # to devnull to avoid another BrokenPipeError at shutdown
138 devnull = os.open(os.devnull, os.O_WRONLY)
139 os.dup2(devnull, sys.stdout.fileno())
H A Dcheckkconfigsymbols.py475 # to devnull to avoid another BrokenPipeError at shutdown
476 devnull = os.open(os.devnull, os.O_WRONLY)
477 os.dup2(devnull, sys.stdout.fileno())
/linux/security/apparmor/
H 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()
/linux/tools/perf/scripts/python/
H A Dintel-pt-events.py442 sys.stdout = open(os.devnull, 'w')
463 sys.stdout = open(os.devnull, 'w')
/linux/security/selinux/
H 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()