Home
last modified time | relevance | path

Searched refs:O_NOFOLLOW (Results 1 – 25 of 29) sorted by relevance

12

/system/core/init/
Dsecurity.cpp53 TEMP_FAILURE_RETRY(open("/dev/hw_random", O_RDONLY | O_NOFOLLOW | O_CLOEXEC))); in MixHwrngIntoLinuxRngAction()
64 TEMP_FAILURE_RETRY(open("/dev/urandom", O_WRONLY | O_NOFOLLOW | O_CLOEXEC))); in MixHwrngIntoLinuxRngAction()
Dpersistent_properties.cpp73 unique_fd fd(openat(dirfd(dir.get()), entry->d_name, O_RDONLY | O_NOFOLLOW | O_CLOEXEC)); in LoadLegacyPersistentProperties()
176 open(temp_filename.c_str(), O_WRONLY | O_CREAT | O_NOFOLLOW | O_TRUNC | O_CLOEXEC, 0600))); in WritePersistentPropertyFile()
Dutil_test.cpp107 int fd = open(path.c_str(), O_RDONLY | O_NOFOLLOW | O_CLOEXEC); in TEST()
Dutil.cpp159 TEMP_FAILURE_RETRY(open(path.c_str(), O_RDONLY | O_NOFOLLOW | O_CLOEXEC))); in ReadFile()
200 OpenFile(path, O_WRONLY | O_CREAT | O_NOFOLLOW | O_TRUNC | O_CLOEXEC, 0600))); in WriteFile()
/system/core/libutils/include/utils/
DCompat.h56 #define O_NOFOLLOW 0 macro
/system/libbase/
Dfile.cpp41 #define O_NOFOLLOW 0 macro
239 int flags = O_RDONLY | O_CLOEXEC | O_BINARY | (follow_symlinks ? 0 : O_NOFOLLOW); in ReadFileToString()
274 (follow_symlinks ? 0 : O_NOFOLLOW); in WriteStringToFile()
302 (follow_symlinks ? 0 : O_NOFOLLOW); in WriteStringToFile()
/system/core/libcutils/
Dfs.cpp89 : TEMP_FAILURE_RETRY(open(path, O_CREAT | O_CLOEXEC | O_NOFOLLOW | O_RDONLY, 0644)); in fs_prepare_path_impl()
255 if ((next_fd = openat(fd, segment, O_NOFOLLOW | O_CLOEXEC)) == -1) { in fs_mkdirs()
/system/core/libmodprobe/
Dlibmodprobe_ext.cpp36 TEMP_FAILURE_RETRY(open(path_name.c_str(), O_RDONLY | O_NOFOLLOW | O_CLOEXEC))); in Insmod()
/system/gsid/
Dlibgsi.cpp53 unique_fd fd(open(file.c_str(), O_WRONLY | O_NOFOLLOW | O_CLOEXEC)); in WriteAndSyncFile()
/system/netd/server/
DProcess.cpp53 const int PID_FILE_FLAGS = O_CREAT | O_TRUNC | O_WRONLY | O_NOFOLLOW | O_CLOEXEC;
/system/hwservicemanager/
DTokenManager.cpp35 int fd = TEMP_FAILURE_RETRY(open("/dev/urandom", O_RDONLY | O_CLOEXEC | O_NOFOLLOW)); in ReadRandomBytes()
/system/core/fs_mgr/libfiemap/
Dimage_test.cpp105 unique_fd fd(open(path.c_str(), O_RDWR | O_NOFOLLOW | O_CLOEXEC)); in TEST_F()
Dimage_manager.cpp321 static constexpr int kOpenFlags = O_RDWR | O_NOFOLLOW | O_CLOEXEC; in CreateLoopDevice()
387 static constexpr int kOpenFlags = O_RDWR | O_NOFOLLOW | O_CLOEXEC; in MapWithLoopDeviceList()
431 unique_fd fd(open(device.c_str(), O_RDWR | O_CLOEXEC | O_NOFOLLOW)); in OptimizeLoopDevices()
Dfiemap_writer.cpp487 android::base::unique_fd fd(open(file_path.c_str(), O_NOFOLLOW | O_CLOEXEC | O_RDONLY)); in HasPinnedExtents()
/system/core/fs_mgr/liblp/
Dimages.cpp35 static const int O_NOFOLLOW = 0; variable
211 … static const int kOpenFlags = O_CREAT | O_RDWR | O_TRUNC | O_CLOEXEC | O_NOFOLLOW | O_BINARY; in ExportFiles()
/system/update_engine/
Dlogging_android.cc125 O_WRONLY | O_CREAT | O_TRUNC | O_CLOEXEC | O_NOFOLLOW | O_SYNC, in FileLogger()
/system/core/property_service/libpropertyinfoparser/
Dproperty_info_parser.cpp200 int fd = open(filename, O_CLOEXEC | O_NOFOLLOW | O_RDONLY); in LoadPath()
/system/core/logd/
DLogTags.cpp99 filename, O_WRONLY | O_TRUNC | O_CLOEXEC | O_NOFOLLOW | O_BINARY)); in RebuildFileEventLogTags()
595 O_WRONLY | O_APPEND | O_CLOEXEC | O_NOFOLLOW | O_BINARY; in WriteDynamicEventLogTags()
617 O_WRONLY | O_APPEND | O_CLOEXEC | O_NOFOLLOW | O_BINARY; in WriteDebugEventLogTags()
/system/vold/
DUtils.cpp423 int fd = TEMP_FAILURE_RETRY(open("/dev/urandom", O_RDONLY | O_CLOEXEC | O_NOFOLLOW)); in ReadRandomBytes()
906 openat(dfd, name, O_RDONLY | O_DIRECTORY | O_NOFOLLOW | O_CLOEXEC)); in delete_dir_contents()
995 open(filename.c_str(), O_WRONLY | O_CREAT | O_NOFOLLOW | O_TRUNC | O_CLOEXEC, 0666))); in writeStringToFile()
DIdleMaint.cpp161 int fd = open(path.c_str(), O_RDONLY | O_DIRECTORY | O_CLOEXEC | O_NOFOLLOW); in Trim()
/system/extras/libfscrypt/
Dfscrypt.cpp323 android::base::unique_fd fd(open(directory.c_str(), O_DIRECTORY | O_NOFOLLOW | O_CLOEXEC)); in EnsurePolicy()
/system/extras/ioshark/
Dcompile_ioshark.c58 { "O_NOFOLLOW", O_NOFOLLOW },
/system/core/fs_mgr/libsnapshot/
Dsnapshot_fuzz_utils.cpp394 static constexpr int kOpenFlags = O_RDWR | O_NOFOLLOW | O_CLOEXEC; in CheckCreateLoopDevice()
Dsnapshot.cpp1843 unique_fd fd(open(file.c_str(), O_RDONLY | O_CLOEXEC | O_NOFOLLOW)); in OpenFile()
2036 unique_fd fd(open(path.c_str(), O_RDONLY | O_CLOEXEC | O_NOFOLLOW)); in ReadSnapshotStatus()
/system/iorap/src/perfetto/
Drx_producer.cc530 O_WRONLY | O_CREAT | O_TRUNC | O_CLOEXEC | O_BINARY | (follow_symlinks ? 0 : O_NOFOLLOW); in WriteFullyToFile()

12