Update su to match Linux's implementation

This commit is contained in:
topjohnwu
2017-12-18 13:12:06 +08:00
parent 257308d5db
commit b0c1a6f73a
6 changed files with 61 additions and 104 deletions
+1 -1
View File
@@ -43,7 +43,7 @@ int socket_create_temp(char *path, size_t len) {
// Set attributes so requester can access it
setfilecon(path, "u:object_r:su_file:s0");
chown(path, su_ctx->st.st_uid, su_ctx->st.st_gid);
chown(path, su_ctx->info->st.st_uid, su_ctx->info->st.st_gid);
return fd;
}