Change database location and implementation

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