Searched refs:O_NOFOLLOW (Results 1 - 25 of 41) sorted by relevance

12

/external/kernel-headers/original/uapi/asm-arm/asm/
H A Dfcntl.h5 #define O_NOFOLLOW 0100000 /* don't follow links */ macro
/external/kernel-headers/original/uapi/asm-arm64/asm/
H A Dfcntl.h23 #define O_NOFOLLOW 0100000 /* don't follow links */ macro
/external/libcups/cups/
H A Dtempfile.c121 #elif defined(O_NOFOLLOW)
122 fd = open(filename, O_RDWR | O_CREAT | O_EXCL | O_NOFOLLOW, 0600);
/external/ltp/testcases/kernel/syscalls/open/
H A Dopen07.c31 * 1. Create a symbolic link to a file, and call open(O_NOFOLLOW). Check
34 * 2. Create a symbolic link to a directory, and call open(O_NOFOLLOW).
37 * 3. Create a symbolic link to a symbolic link, and call open(O_NOFOLLOW).
41 * open(O_NOFOLLOW). Check that it returns ELOOP.
44 * open("link/", O_NOFOLLOW). Check that it succeeds.
61 #define _GNU_SOURCE /* for O_NOFOLLOW */
91 O_NOFOLLOW, 00700, setupfunc_test1, ELOOP},
93 O_NOFOLLOW, 00700, setupfunc_test2, ELOOP},
95 O_NOFOLLOW, 00700, setupfunc_test3, ELOOP},
97 O_NOFOLLOW, 0070
[all...]
/external/kernel-headers/original/uapi/asm-generic/
H A Dfcntl.h55 #ifndef O_NOFOLLOW
56 #define O_NOFOLLOW 00400000 /* don't follow links */ macro
/external/libbrillo/brillo/
H A Dfile_utils.cc60 // Check for symlinks by setting O_NOFOLLOW and checking for ELOOP. This lets
63 AT_FDCWD, path.value().c_str(), O_RDONLY | O_CLOEXEC | O_NOFOLLOW)));
118 O_RDONLY | O_NOFOLLOW | O_CREAT | O_EXCL | O_CLOEXEC,
H A Dprocess.cc262 output_file_.c_str(), O_CREAT | O_WRONLY | O_TRUNC | O_NOFOLLOW,
/external/strace/xlat/
H A Dopen_mode_flags.h57 #if defined(O_NOFOLLOW) || (defined(HAVE_DECL_O_NOFOLLOW) && HAVE_DECL_O_NOFOLLOW)
58 XLAT(O_NOFOLLOW),
/external/bison/lib/
H A Dfcntl.in.h252 #ifndef O_NOFOLLOW
253 # define O_NOFOLLOW 0
H A Dlocalcharset.c79 /* Define O_NOFOLLOW to 0 on platforms where it does not exist. */
80 #ifndef O_NOFOLLOW
81 # define O_NOFOLLOW 0 macro
159 O_NOFOLLOW. This is a security feature. Without it, an attacker
166 O_RDONLY | (HAVE_WORKING_O_NOFOLLOW ? O_NOFOLLOW : 0));
/external/ltp/lib/
H A Drmobj.c107 fd = open(obj, O_DIRECTORY | O_NOFOLLOW);
/external/libchrome/sandbox/linux/syscall_broker/
H A Dbroker_file_permission.cc184 O_NOCTTY | O_NOFOLLOW | O_NONBLOCK | O_NDELAY |
H A Dbroker_file_permission_unittest.cc145 case O_NOFOLLOW:
/external/selinux/restorecond/
H A Drestorecond.c100 pidfd = open(pidfile, O_CREAT | O_TRUNC | O_NOFOLLOW | O_WRONLY, 0644);
H A Duser.c205 local_lock_fd = open(ptr, O_CREAT | O_WRONLY | O_NOFOLLOW | O_CLOEXEC, S_IRUSR | S_IWUSR);
/external/toybox/lib/
H A Dportability.h235 // Some systems don't define O_NOFOLLOW, and it varies by architecture, so...
237 #ifndef O_NOFOLLOW
238 #define O_NOFOLLOW 0 macro
/external/toybox/toys/posix/
H A Dcpio.c154 int fd = test ? 0 : open(name, O_CREAT|O_WRONLY|O_TRUNC|O_NOFOLLOW, mode);
195 int fd = open(name, O_RDONLY|O_NOFOLLOW);
H A Dcp.c209 if (-1 != (try->extra = openat(cfd, catch, O_NOFOLLOW)))
/external/libcap-ng/libcap-ng-0.7/utils/
H A Dfilecap.c172 int fd = open(path, O_WRONLY|O_NOFOLLOW|O_CLOEXEC);
/external/ltp/testcases/kernel/syscalls/openat/
H A Dopenat02.c31 * symbolic link, when 'flags' is set to O_NOFOLLOW.
267 TEST(openat(AT_FDCWD, SFILE, O_NOFOLLOW | O_RDONLY, 0777));
270 tst_resm(TPASS, "test O_NOFOLLOW for openat success");
272 tst_resm(TFAIL, "test O_NOFOLLOW for openat failed");
/external/bison/darwin-lib/
H A Dfcntl.h564 #ifndef O_NOFOLLOW
565 # define O_NOFOLLOW 0 macro
/external/bison/linux-lib/
H A Dfcntl.h564 #ifndef O_NOFOLLOW
565 # define O_NOFOLLOW 0 macro
/external/libchrome/base/memory/
H A Dshared_memory_posix.cc241 // is opened, so O_NOFOLLOW is passed to open().
243 open(path.value().c_str(), O_RDWR | O_APPEND | O_NOFOLLOW));
/external/ImageMagick/MagickCore/
H A Dresource.c481 #if !defined(O_NOFOLLOW)
482 #define O_NOFOLLOW 0
555 file=open_utf8(path,O_RDWR | O_CREAT | O_EXCL | O_BINARY | O_NOFOLLOW,
476 #define O_NOFOLLOW macro
/external/iproute2/misc/
H A Drtacct.c547 fd = open(hist_name, O_RDWR|O_CREAT|O_NOFOLLOW, 0600);

Completed in 508 milliseconds

12