Home
last modified time | relevance | path

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

/aosp14/system/core/init/
H A Ddevices.cpp174 std::string attribute_file = path + "/" + attribute_; in SetPermissions() local
175 LOG(VERBOSE) << "fixup " << attribute_file << " " << uid() << " " << gid() << " " << std::oct in SetPermissions()
178 if (access(attribute_file.c_str(), F_OK) == 0) { in SetPermissions()
179 if (chown(attribute_file.c_str(), uid(), gid()) != 0) { in SetPermissions()
180 PLOG(ERROR) << "chown(" << attribute_file << ", " << uid() << ", " << gid() in SetPermissions()
183 if (chmod(attribute_file.c_str(), perm()) != 0) { in SetPermissions()
184 PLOG(ERROR) << "chmod(" << attribute_file << ", " << perm() << ") failed"; in SetPermissions()