Lines Matching full:etc

54 	int fd, etc, etc_cap, etc_cap_ro, etc_cap_base, etc_cap_all;  in test_relative()  local
58 REQUIRE(etc = open("/etc/", O_RDONLY)); in test_relative()
59 CHECK_SYSCALL_SUCCEEDS(cap_getrights, etc, &rights); in test_relative()
62 MAKE_CAPABILITY(etc_cap, etc, CAP_READ); in test_relative()
63 MAKE_CAPABILITY(etc_cap_ro, etc, CAP_READ | CAP_LOOKUP); in test_relative()
64 MAKE_CAPABILITY(etc_cap_base, etc, baserights); in test_relative()
65 MAKE_CAPABILITY(etc_cap_all, etc, CAP_MASK_VALID); in test_relative()
71 CHECK_SYSCALL_SUCCEEDS(openat, etc, "/etc/passwd", O_RDONLY); in test_relative()
72 CHECK_SYSCALL_SUCCEEDS(openat, AT_FDCWD, "/etc/passwd", O_RDONLY); in test_relative()
73 CHECK_SYSCALL_SUCCEEDS(openat, etc, "passwd", O_RDONLY); in test_relative()
74 CHECK_SYSCALL_SUCCEEDS(openat, etc, "../etc/passwd", O_RDONLY); in test_relative()
85 CHECK_NOTCAPABLE(openat, etc_cap_ro, "../etc/passwd", O_RDONLY); in test_relative()
86 CHECK_NOTCAPABLE(openat, etc_cap_base, "../etc/passwd", O_RDONLY); in test_relative()
93 CHECK_SYSCALL_SUCCEEDS(openat, etc_cap_all, "../etc/passwd", O_RDONLY); in test_relative()
113 CHECK_SYSCALL_SUCCEEDS(openat, etc, "passwd", O_RDONLY); in test_relative()
126 CHECK_CAPMODE(openat, AT_FDCWD, "/etc/passwd", O_RDONLY); in test_relative()
127 CHECK_NOTCAPABLE(openat, etc, "/etc/passwd", O_RDONLY); in test_relative()
132 CHECK_NOTCAPABLE(openat, etc, "../etc/passwd", O_RDONLY); in test_relative()
133 CHECK_NOTCAPABLE(openat, etc_cap_ro, "../etc/passwd", O_RDONLY); in test_relative()
134 CHECK_NOTCAPABLE(openat, etc_cap_base, "../etc/passwd", O_RDONLY); in test_relative()
136 REQUIRE(fd = openat(etc, "passwd", O_RDONLY)); in test_relative()