Lines Matching defs:pkgdir
1818 const char* pkgdir = _pkgdir.c_str();
1821 if (stat(pkgdir, &s) < 0) return -1;
1823 if (chown(pkgdir, AID_INSTALL, AID_INSTALL) < 0) {
1824 ALOGE("failed to chown '%s': %s\n", pkgdir, strerror(errno));
1828 if (chmod(pkgdir, 0700) < 0) {
1829 ALOGE("linklib() 1: failed to chmod '%s': %s\n", pkgdir, strerror(errno));
1863 if (chmod(pkgdir, s.st_mode) < 0) {
1864 ALOGE("linklib() 2: failed to chmod '%s': %s\n", pkgdir, strerror(errno));
1868 if (chown(pkgdir, s.st_uid, s.st_gid) < 0) {
1869 ALOGE("failed to chown '%s' : %s\n", pkgdir, strerror(errno));