Skip to content

Commit 209a541

Browse files
authored
Allow dex2oat to access files received from sockets (#165)
On some devices `dex2oat` cannot access files (fd) received from sockets due to SELinux restrictions. Hence, we add a new rule according to the avc logs, which showed that permissions `open` and `getattr` were needed.
1 parent c9e11c6 commit 209a541

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

magisk-loader/magisk_module/sepolicy.rule

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ type xposed_file file_type
66
typeattribute xposed_file mlstrustedobject
77
allow {dex2oat installd isolated_app shell} xposed_file {file dir} *
88

9+
allow dex2oat unlabeled file *
10+
911
type xposed_data file_type
1012
typeattribute xposed_data mlstrustedobject
1113
allow * xposed_data {file dir} *

0 commit comments

Comments
 (0)