Home
last modified time | relevance | path

Searched refs:partial_path (Results 1 – 1 of 1) sorted by relevance

/system/core/adb/daemon/
Dfile_sync_service.cpp97 std::string partial_path; in secure_mkdirs() local
108 if (partial_path.empty() || partial_path.back() != OS_PATH_SEPARATOR) { in secure_mkdirs()
109 partial_path += OS_PATH_SEPARATOR; in secure_mkdirs()
111 partial_path += path_component; in secure_mkdirs()
113 if (should_use_fs_config(partial_path)) { in secure_mkdirs()
114 fs_config(partial_path.c_str(), 1, nullptr, &uid, &gid, &mode, &capabilities); in secure_mkdirs()
116 if (adb_mkdir(partial_path.c_str(), mode) == -1) { in secure_mkdirs()
121 if (chown(partial_path.c_str(), uid, gid) == -1) return false; in secure_mkdirs()
125 selinux_android_restorecon(partial_path.c_str(), 0); in secure_mkdirs()
128 if (!update_capabilities(partial_path.c_str(), capabilities)) return false; in secure_mkdirs()