Home
last modified time | relevance | path

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

/linux-6.15/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.c162 FILE *devnull; in test_uprobe_lib() local
188 devnull = fopen("/dev/null", "r"); in test_uprobe_lib()
189 fclose(devnull); in test_uprobe_lib()
/linux-6.15/scripts/clang-tools/
H A Drun-clang-tools.py94 devnull = os.open(os.devnull, os.O_WRONLY)
95 os.dup2(devnull, sys.stdout.fileno())
/linux-6.15/scripts/
H A Ddiffconfig138 devnull = os.open(os.devnull, os.O_WRONLY)
139 os.dup2(devnull, sys.stdout.fileno())
H A Dcheckkconfigsymbols.py476 devnull = os.open(os.devnull, os.O_WRONLY)
477 os.dup2(devnull, sys.stdout.fileno())
/linux-6.15/security/apparmor/
H A Dfile.c673 struct file *devnull = NULL; in aa_inherit_files() local
683 devnull = dentry_open(&aa_null, O_RDWR, cred); in aa_inherit_files()
684 if (IS_ERR(devnull)) in aa_inherit_files()
685 devnull = NULL; in aa_inherit_files()
688 replace_fd(n - 1, devnull, 0); in aa_inherit_files()
690 if (devnull) in aa_inherit_files()
691 fput(devnull); in aa_inherit_files()
/linux-6.15/tools/perf/scripts/python/
H A Dintel-pt-events.py442 sys.stdout = open(os.devnull, 'w')
463 sys.stdout = open(os.devnull, 'w')
/linux-6.15/security/selinux/
H A Dhooks.c2421 struct file *file, *devnull = NULL; in flush_unauthorized_files() local
2455 devnull = dentry_open(&selinux_null, O_RDWR, cred); in flush_unauthorized_files()
2456 if (IS_ERR(devnull)) in flush_unauthorized_files()
2457 devnull = NULL; in flush_unauthorized_files()
2460 replace_fd(n - 1, devnull, 0); in flush_unauthorized_files()
2462 if (devnull) in flush_unauthorized_files()
2463 fput(devnull); in flush_unauthorized_files()