/kernel/linux/linux-5.10/tools/testing/selftests/openat2/ |
H A D | openat2_test.c | 163 /* O_TMPFILE is incompatible with O_PATH and O_CREAT. */ in test_openat2_flags() 164 { .name = "incompatible flags (O_TMPFILE | O_PATH)", in test_openat2_flags() 165 .how.flags = O_TMPFILE | O_PATH | O_RDWR, .err = -EINVAL }, in test_openat2_flags() 169 /* O_PATH only permits certain other flags to be set ... */ in test_openat2_flags() 170 { .name = "compatible flags (O_PATH | O_CLOEXEC)", in test_openat2_flags() 171 .how.flags = O_PATH | O_CLOEXEC }, in test_openat2_flags() 172 { .name = "compatible flags (O_PATH | O_DIRECTORY)", in test_openat2_flags() 173 .how.flags = O_PATH | O_DIRECTORY }, in test_openat2_flags() 174 { .name = "compatible flags (O_PATH | O_NOFOLLOW)", in test_openat2_flags() 175 .how.flags = O_PATH | O_NOFOLLO in test_openat2_flags() [all...] |
H A D | rename_attack_test.c | 43 dfd = open(dirname, O_PATH | O_DIRECTORY); in setup_testdir() 92 .flags = O_PATH, in test_rename_attack() 102 afd = openat(dfd, "a", O_PATH); in test_rename_attack()
|
/kernel/linux/linux-6.6/tools/testing/selftests/openat2/ |
H A D | openat2_test.c | 167 /* O_TMPFILE is incompatible with O_PATH and O_CREAT. */ in test_openat2_flags() 168 { .name = "incompatible flags (O_TMPFILE | O_PATH)", in test_openat2_flags() 169 .how.flags = O_TMPFILE | O_PATH | O_RDWR, .err = -EINVAL }, in test_openat2_flags() 173 /* O_PATH only permits certain other flags to be set ... */ in test_openat2_flags() 174 { .name = "compatible flags (O_PATH | O_CLOEXEC)", in test_openat2_flags() 175 .how.flags = O_PATH | O_CLOEXEC }, in test_openat2_flags() 176 { .name = "compatible flags (O_PATH | O_DIRECTORY)", in test_openat2_flags() 177 .how.flags = O_PATH | O_DIRECTORY }, in test_openat2_flags() 178 { .name = "compatible flags (O_PATH | O_NOFOLLOW)", in test_openat2_flags() 179 .how.flags = O_PATH | O_NOFOLLO in test_openat2_flags() [all...] |
H A D | rename_attack_test.c | 43 dfd = open(dirname, O_PATH | O_DIRECTORY); in setup_testdir() 92 .flags = O_PATH, in test_rename_attack() 102 afd = openat(dfd, "a", O_PATH); in test_rename_attack()
|
/kernel/linux/linux-6.6/tools/testing/selftests/landlock/ |
H A D | base_test.c | 20 #ifndef O_PATH 21 #define O_PATH 010000000 macro 182 open("/tmp", O_PATH | O_NOFOLLOW | O_DIRECTORY | O_CLOEXEC); in TEST() 205 open("/tmp", O_PATH | O_NOFOLLOW | O_DIRECTORY | O_CLOEXEC); in TEST() 277 open("/tmp", O_PATH | O_NOFOLLOW | O_DIRECTORY | O_CLOEXEC); in TEST()
|
/kernel/linux/linux-5.10/tools/include/uapi/asm-generic/ |
H A D | fcntl.h | 83 #ifndef O_PATH 84 #define O_PATH 010000000 macro
|
/kernel/linux/linux-5.10/include/uapi/asm-generic/ |
H A D | fcntl.h | 84 #ifndef O_PATH 85 #define O_PATH 010000000 macro
|
/kernel/linux/linux-6.6/include/uapi/asm-generic/ |
H A D | fcntl.h | 84 #ifndef O_PATH 85 #define O_PATH 010000000 macro
|
/kernel/linux/linux-6.6/tools/include/uapi/asm-generic/ |
H A D | fcntl.h | 84 #ifndef O_PATH 85 #define O_PATH 010000000 macro
|
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/asm-generic/ |
H A D | fcntl.h | 59 #ifndef O_PATH 60 #define O_PATH 010000000 macro
|
/kernel/linux/patches/linux-6.6/prebuilts/usr/include/asm-generic/ |
H A D | fcntl.h | 73 #ifndef O_PATH 74 #define O_PATH 010000000 macro
|
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/asm-generic/ |
H A D | fcntl.h | 73 #ifndef O_PATH 74 #define O_PATH 010000000 macro
|
/kernel/linux/linux-5.10/tools/testing/selftests/proc/ |
H A D | fd-001-lookup.c | 146 fd = open("/", O_PATH|O_DIRECTORY); in main() 153 fd = open("/", O_PATH|O_DIRECTORY); in main()
|
/kernel/linux/linux-6.6/tools/testing/selftests/proc/ |
H A D | fd-001-lookup.c | 146 fd = open("/", O_PATH|O_DIRECTORY); in main() 153 fd = open("/", O_PATH|O_DIRECTORY); in main()
|
/kernel/linux/linux-5.10/arch/alpha/include/uapi/asm/ |
H A D | fcntl.h | 35 #define O_PATH 040000000 macro
|
/kernel/linux/linux-5.10/arch/parisc/include/uapi/asm/ |
H A D | fcntl.h | 20 #define O_PATH 020000000 macro
|
/kernel/linux/linux-6.6/arch/alpha/include/uapi/asm/ |
H A D | fcntl.h | 35 #define O_PATH 040000000 macro
|
/kernel/linux/linux-6.6/arch/parisc/include/uapi/asm/ |
H A D | fcntl.h | 20 #define O_PATH 020000000 macro
|
/kernel/linux/linux-5.10/tools/testing/selftests/exec/ |
H A D | execveat.c | 9 #define _GNU_SOURCE /* to get O_PATH, AT_EMPTY_PATH */ 235 int dot_dfd_path = open_or_die(".", O_DIRECTORY|O_RDONLY|O_PATH); in run_tests() 238 int fd_path = open_or_die("execveat", O_RDONLY|O_PATH); in run_tests() 242 O_RDONLY|O_PATH); in run_tests() 246 O_RDONLY|O_PATH); in run_tests() 275 /* O_PATH fd */ in run_tests() 286 /* Mess with executable file that's already open with O_PATH */ in run_tests()
|
/kernel/linux/linux-6.6/tools/testing/selftests/exec/ |
H A D | execveat.c | 9 #define _GNU_SOURCE /* to get O_PATH, AT_EMPTY_PATH */ 235 int dot_dfd_path = open_or_die(".", O_DIRECTORY|O_RDONLY|O_PATH); in run_tests() 238 int fd_path = open_or_die("execveat", O_RDONLY|O_PATH); in run_tests() 242 O_RDONLY|O_PATH); in run_tests() 246 O_RDONLY|O_PATH); in run_tests() 275 /* O_PATH fd */ in run_tests() 286 /* Mess with executable file that's already open with O_PATH */ in run_tests()
|
/kernel/linux/linux-5.10/arch/sparc/include/uapi/asm/ |
H A D | fcntl.h | 38 #define O_PATH 0x1000000 macro
|
/kernel/linux/linux-6.6/arch/sparc/include/uapi/asm/ |
H A D | fcntl.h | 38 #define O_PATH 0x1000000 macro
|
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/ |
H A D | bpf_obj_pinning.c | 59 /* create O_PATH fd for detached mount */ in bpf_obj_pinning_detached() 148 pin_opts.path_fd = open("/sys/fs/bpf", O_PATH); in validate_pin() 213 get_opts.path_fd = open("/sys/fs/bpf", O_PATH); in validate_get()
|
/kernel/linux/linux-5.10/include/linux/ |
H A D | fcntl.h | 13 O_NOATIME | O_CLOEXEC | O_PATH | __O_TMPFILE)
|
/kernel/linux/linux-6.6/include/linux/ |
H A D | fcntl.h | 13 O_NOATIME | O_CLOEXEC | O_PATH | __O_TMPFILE)
|