Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
M
Magisk
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Magisk
Commits
bb2c744e
Commit
bb2c744e
authored
Apr 21, 2018
by
topjohnwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change the default file secontext
parent
873f14bb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
su_socket.c
su_socket.c
+2
-1
No files found.
su_socket.c
View file @
bb2c744e
...
@@ -16,6 +16,7 @@
...
@@ -16,6 +16,7 @@
#include "magisk.h"
#include "magisk.h"
#include "utils.h"
#include "utils.h"
#include "su.h"
#include "su.h"
#include "magiskpolicy.h"
int
socket_create_temp
(
char
*
path
,
size_t
len
)
{
int
socket_create_temp
(
char
*
path
,
size_t
len
)
{
int
fd
;
int
fd
;
...
@@ -42,7 +43,7 @@ int socket_create_temp(char *path, size_t len) {
...
@@ -42,7 +43,7 @@ int socket_create_temp(char *path, size_t len) {
xlisten
(
fd
,
1
);
xlisten
(
fd
,
1
);
// Set attributes so requester can access it
// Set attributes so requester can access it
setfilecon
(
path
,
"u:object_r:
su_file
:s0"
);
setfilecon
(
path
,
"u:object_r:
"
SEPOL_FILE_DOMAIN
"
:s0"
);
chown
(
path
,
su_ctx
->
info
->
st
.
st_uid
,
su_ctx
->
info
->
st
.
st_gid
);
chown
(
path
,
su_ctx
->
info
->
st
.
st_uid
,
su_ctx
->
info
->
st
.
st_gid
);
return
fd
;
return
fd
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment