Fix SELinux context for Xposed API 100
Files in `/data/adb/lspd/modules/` should be accessible via xposed API `openRemoteFile`. Close #381 and #466 as fixed.
This commit is contained in:
parent
31e19069e4
commit
ed1f61d26e
|
|
@ -457,7 +457,7 @@ public class ConfigFileManager {
|
||||||
if (uid != -1) {
|
if (uid != -1) {
|
||||||
if (path.toFile().mkdirs()) {
|
if (path.toFile().mkdirs()) {
|
||||||
try {
|
try {
|
||||||
SELinux.setFileContext(path.toString(), "u:object_r:xposed_file:s0");
|
SELinux.setFileContext(path.toString(), "u:object_r:xposed_data:s0");
|
||||||
Os.chown(path.toString(), uid, uid);
|
Os.chown(path.toString(), uid, uid);
|
||||||
Os.chmod(path.toString(), 0755);
|
Os.chmod(path.toString(), 0755);
|
||||||
} catch (ErrnoException e) {
|
} catch (ErrnoException e) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue