Skip to content

Commit 162ef35

Browse files
authored
scripts/post-fs-data: fix ext4 image context (#25)
su is a label for domain, not object.
1 parent 4d4afe9 commit 162ef35

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

module/post-fs-data.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -255,9 +255,7 @@ mountify_copy() {
255255

256256
# this way only sparse mode on ksu gets the rule
257257
handle_ksu_sepolicy() {
258-
echo "allow kernel su file *;" > "$LOG_FOLDER/ksu_sparse_sepolicy"
259-
/data/adb/ksud sepolicy apply "$LOG_FOLDER/ksu_sparse_sepolicy"
260-
busybox chcon "u:r:su:s0" "$MNT_FOLDER/mountify-ext4"
258+
busybox chcon "u:object_r:ksu_file:s0" "$MNT_FOLDER/mountify-ext4"
261259
}
262260

263261
# prevent this fuckup since on expert mode this isnt checked

0 commit comments

Comments
 (0)