Skip to content

Commit 704d594

Browse files
committed
Set Android SELinux label on root cacerts dir too
1 parent f05c380 commit 704d594

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/interceptors/android/adb-commands.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,8 @@ export async function injectSystemCertificate(
337337
# Update the perms & selinux context labels, so everything is as readable as before
338338
chown root:root /system/etc/security/cacerts/*
339339
chmod 644 /system/etc/security/cacerts/*
340+
341+
chcon u:object_r:system_file:s0 /system/etc/security/cacerts/
340342
chcon u:object_r:system_file:s0 /system/etc/security/cacerts/*
341343
342344
echo 'System cacerts setup completed'

0 commit comments

Comments
 (0)