Home
last modified time | relevance | path

Searched refs:openat (Results 1 – 25 of 30) sorted by relevance

12

/trueos/tools/regression/security/cap_test/
HDcap_test_relative.c76 CHECK_SYSCALL_SUCCEEDS(openat, etc, "/etc/passwd", O_RDONLY); in test_relative()
77 CHECK_SYSCALL_SUCCEEDS(openat, AT_FDCWD, "/etc/passwd", O_RDONLY); in test_relative()
78 CHECK_SYSCALL_SUCCEEDS(openat, etc, "passwd", O_RDONLY); in test_relative()
79 CHECK_SYSCALL_SUCCEEDS(openat, etc, "../etc/passwd", O_RDONLY); in test_relative()
86 CHECK_SYSCALL_SUCCEEDS(openat, etc_cap_ro, "passwd", O_RDONLY); in test_relative()
87 CHECK_SYSCALL_SUCCEEDS(openat, etc_cap_base, "passwd", O_RDONLY); in test_relative()
88 CHECK_SYSCALL_SUCCEEDS(openat, etc_cap_all, "passwd", O_RDONLY); in test_relative()
90 CHECK_NOTCAPABLE(openat, etc_cap_ro, "../etc/passwd", O_RDONLY); in test_relative()
91 CHECK_NOTCAPABLE(openat, etc_cap_base, "../etc/passwd", O_RDONLY); in test_relative()
98 CHECK_SYSCALL_SUCCEEDS(openat, etc_cap_all, "../etc/passwd", O_RDONLY); in test_relative()
[all …]
HDcap_test_capabilities.c187 ret = openat(dfd_cap, "cap_create", O_CREAT | O_RDONLY, 0600); in try_file_ops()
188 CHECK_RESULT(openat(O_CREATE | O_RDONLY), in try_file_ops()
192 ret = openat(dfd_cap, "cap_create", O_CREAT | O_WRONLY | O_APPEND, in try_file_ops()
194 CHECK_RESULT(openat(O_CREATE | O_WRONLY | O_APPEND), in try_file_ops()
198 ret = openat(dfd_cap, "cap_create", O_CREAT | O_RDWR | O_APPEND, 0600); in try_file_ops()
199 CHECK_RESULT(openat(O_CREATE | O_RDWR | O_APPEND), in try_file_ops()
207 ret = openat(dirfd, "cap_fsync", O_CREAT, 0600); in try_file_ops()
210 ret = openat(dfd_cap, "cap_fsync", O_FSYNC | O_RDONLY); in try_file_ops()
211 CHECK_RESULT(openat(O_FSYNC | O_RDONLY), in try_file_ops()
214 ret = openat(dfd_cap, "cap_fsync", O_FSYNC | O_WRONLY | O_APPEND); in try_file_ops()
[all …]
/trueos/lib/libc/sys/
HDopenat.c42 __sym_compat(openat, __impl_openat, FBSD_1.1);
43 __weak_reference(openat, __impl_openat);
44 __sym_default(openat, openat, FBSD_1.2);
46 #pragma weak openat macro
48 openat(int fd, const char *path, int flags, ...) in openat() function
HDinterposing_table.c52 SLOT(openat, __sys_openat),
HDMakefile.inc54 openat \
405 MLINKS+=open.2 openat.2
/trueos/contrib/netbsd-tests/lib/libc/c063/
HDt_o_search.c76 ATF_REQUIRE((fd = openat(dfd, BASEFILE, O_RDWR, 0)) != -1); in ATF_TC_BODY()
81 ATF_REQUIRE((fd = openat(dfd, BASEFILE, O_RDWR, 0)) == -1); in ATF_TC_BODY()
106 ATF_REQUIRE((fd = openat(dfd, BASEFILE, O_RDWR, 0)) != -1); in ATF_TC_BODY()
111 ATF_REQUIRE((fd = openat(dfd, BASEFILE, O_RDWR, 0)) != -1); in ATF_TC_BODY()
116 ATF_REQUIRE((fd = openat(dfd, BASEFILE, O_RDWR, 0)) != -1); in ATF_TC_BODY()
138 ATF_REQUIRE((fd = openat(dfd, BASEFILE, O_RDWR, 0)) != -1); in ATF_TC_BODY()
143 ATF_REQUIRE((fd = openat(dfd, BASEFILE, O_RDWR, 0)) != -1); in ATF_TC_BODY()
148 ATF_REQUIRE((fd = openat(dfd, BASEFILE, O_RDWR, 0)) != -1); in ATF_TC_BODY()
258 ATF_REQUIRE((fd = openat(dfd, BASEFILE, O_RDWR, 0)) == -1); in ATF_TC_BODY()
HDt_openat.c64 ATF_REQUIRE((fd = openat(dfd, BASEFILE, O_RDONLY, 0)) != -1); in ATF_TC_BODY()
84 ATF_REQUIRE((fd = openat(AT_FDCWD, BASEFILE, O_RDONLY, 0)) != -1); in ATF_TC_BODY()
99 ATF_REQUIRE((fd = openat(AT_FDCWD, FILEERR, O_RDONLY, 0)) == -1); in ATF_TC_BODY()
114 ATF_REQUIRE((fd = openat(dfd, FILEERR, O_RDONLY, 0)) == -1); in ATF_TC_BODY()
134 ATF_REQUIRE((fd = openat(dfd, BASEFILE, O_RDONLY, 0)) == -1); in ATF_TC_BODY()
151 ATF_REQUIRE((fd = openat(-1, FILE, O_RDONLY, 0)) == -1); in ATF_TC_BODY()
/trueos/contrib/openbsm/etc/
HDaudit_event265 270:AUE_OPENAT_R:openat(2) - read:fr
266 271:AUE_OPENAT_RC:openat(2) - read,creat:fc,fr,fa,fm
267 272:AUE_OPENAT_RT:openat(2) - read,trunc:fd,fr,fa,fm
268 273:AUE_OPENAT_RTC:openat(2) - read,creat,trunc:fc,fd,fr,fa,fm
269 274:AUE_OPENAT_W:openat(2) - write:fw
270 275:AUE_OPENAT_WC:openat(2) - write,creat:fc,fw,fa,fm
271 276:AUE_OPENAT_WT:openat(2) - write,trunc:fd,fw,fa,fm
272 277:AUE_OPENAT_WTC:openat(2) - write,creat,trunc:fc,fd,fw,fa,fm
273 278:AUE_OPENAT_RW:openat(2) - read,write:fr,fw
274 279:AUE_OPENAT_RWC:openat(2) - read,write,create:fc,fw,fr,fa,fm
[all …]
/trueos/cddl/compat/opensolaris/include/
HDfcntl.h36 #define openat64(...) openat(__VA_ARGS__)
/trueos/lib/libc/tests/c063/
HDMakefile16 NETBSD_ATF_TESTS_C+= openat
/trueos/contrib/openbsm/bin/auditdistd/
HDopenat.h40 openat(int fd, const char *path, int flags, ...) in openat() function
HDtrail.c226 fd = openat(dfd, trail->tr_filename, O_RDONLY); in trail_start()
370 trail->tr_filefd = openat(dfd, trail->tr_filename, O_RDONLY); in trail_next()
HDreceiver.c321 fd = openat(adhost->adh_trail_dirfd, filename, in receiver_open()
335 fd = openat(adhost->adh_trail_dirfd, filename, in receiver_open()
/trueos/sys/sys/
HDfcntl.h315 int openat(int, const char *, int, ...);
HDsyscall.mk377 openat.o \
/trueos/sys/kern/
HDcapabilities.conf451 openat
/trueos/usr.bin/rwho/
HDrwho.c144 f = openat(dfd, dp->d_name, O_RDONLY); in main()
/trueos/lib/libc/include/
HDnamespace.h83 #define openat _openat macro
HDun-namespace.h64 #undef openat
/trueos/contrib/pjdfstest/
HDpjdfstest.c655 rval = openat(NUM(0), STR(1), (int)flags, in call_syscall()
662 rval = openat(NUM(0), STR(1), (int)flags); in call_syscall()
/trueos/tools/regression/pjdfstest/
HDpjdfstest.c651 rval = openat(NUM(0), STR(1), (int)flags, in call_syscall()
658 rval = openat(NUM(0), STR(1), (int)flags); in call_syscall()
/trueos/lib/libthr/thread/
HDthr_syscalls.c639 SLOT(openat); in __thr_interpose_libc()
/trueos/contrib/openbsm/
HDconfigure.ac103 … ftruncate getresgid getresuid gettimeofday inet_ntoa jail kqueue memset openat pthread_cond_timed…
/trueos/contrib/libarchive/libarchive/
HDarchive_read_disk_posix.c1493 int fd = openat(tree_current_dir_fd(t), in setup_current_filesystem()
1672 int fd = openat(tree_current_dir_fd(t), in setup_current_filesystem()
1781 int fd = openat(tree_current_dir_fd(t), in setup_current_filesystem()
1960 return (openat(tree_current_dir_fd(t), path, flags)); in open_on_current_dir()
/trueos/contrib/tcpdump/
HDtcpdump.c1925 fd = openat(dump_info->dirfd, in dump_packet_and_trunc()
1991 fd = openat(dump_info->dirfd, dump_info->CurrentFileName, in dump_packet_and_trunc()

12