Lines Matching full:sun_path
126 snprintf(addr.sun_path, sizeof(addr.sun_path), ANDROID_SOCKET_DIR"/%s",
129 ret = unlink(addr.sun_path);
137 ret = selabel_lookup(sehandle, &filecon, addr.sun_path, S_IFSOCK);
153 ret = lchown(addr.sun_path, uid, gid);
155 ERROR("Failed to lchown socket '%s': %s\n", addr.sun_path, strerror(errno));
158 ret = fchmodat(AT_FDCWD, addr.sun_path, perm, AT_SYMLINK_NOFOLLOW);
160 ERROR("Failed to fchmodat socket '%s': %s\n", addr.sun_path, strerror(errno));
165 addr.sun_path, perm, uid, gid);
170 unlink(addr.sun_path);