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
910a36fd
Commit
910a36fd
authored
Jul 21, 2022
by
topjohnwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make sepolicy.rules relative if possible
parent
8331206a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
mount.cpp
native/jni/init/mount.cpp
+9
-1
No files found.
native/jni/init/mount.cpp
View file @
910a36fd
...
@@ -202,7 +202,15 @@ persist:
...
@@ -202,7 +202,15 @@ persist:
success
:
success
:
// Create symlinks so we don't need to go through this logic again
// Create symlinks so we don't need to go through this logic again
strcpy
(
p
,
"/sepolicy.rules"
);
strcpy
(
p
,
"/sepolicy.rules"
);
xsymlink
(
custom_rules_dir
.
data
(),
path
);
if
(
char
*
rel
=
strstr
(
custom_rules_dir
.
data
(),
MIRRDIR
))
{
// Create symlink with relative path
char
s
[
128
];
s
[
0
]
=
'.'
;
strlcpy
(
s
+
1
,
rel
+
sizeof
(
MIRRDIR
)
-
1
,
sizeof
(
s
)
-
1
);
xsymlink
(
s
,
path
);
}
else
{
xsymlink
(
custom_rules_dir
.
data
(),
path
);
}
}
}
bool
LegacySARInit
::
mount_system_root
()
{
bool
LegacySARInit
::
mount_system_root
()
{
...
...
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