Home
last modified time | relevance | path

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

/system/core/init/
Ddevices.cpp167 std::string attribute_file = path + "/" + attribute_; in SetPermissions() local
168 LOG(VERBOSE) << "fixup " << attribute_file << " " << uid() << " " << gid() << " " << std::oct in SetPermissions()
171 if (access(attribute_file.c_str(), F_OK) == 0) { in SetPermissions()
172 if (chown(attribute_file.c_str(), uid(), gid()) != 0) { in SetPermissions()
173 PLOG(ERROR) << "chown(" << attribute_file << ", " << uid() << ", " << gid() in SetPermissions()
176 if (chmod(attribute_file.c_str(), perm()) != 0) { in SetPermissions()
177 PLOG(ERROR) << "chmod(" << attribute_file << ", " << perm() << ") failed"; in SetPermissions()