Skip to content

Commit e1c329c

Browse files
committed
fix(service): 🐛 Fix permission errors
1 parent 2d4b078 commit e1c329c

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

service.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ done
2929
# Otherwise, when we add the mount we can't read the current certs anymore.
3030
# mkdir -p -m 700 $MODPATH/certificates
3131
# chmod 700 $MODPATH/certificates
32+
chown -R root:root $MODDIR/certificates/
33+
chmod -R 644 $MODDIR/certificates
34+
chmod 755 $MODDIR/certificates
3235

3336
# Copy out the existing certificates
3437
cp -u /system/etc/security/cacerts/* $MODDIR/certificates/
@@ -44,9 +47,9 @@ mv -f $MODDIR/certificates/* /system/etc/security/cacerts/
4447

4548
# Update the perms & selinux context labels
4649
chown root:root /system/etc/security/cacerts
47-
chown root:root /system/etc/security/cacerts/*
50+
chown -R root:root /system/etc/security/cacerts
51+
chmod -R 644 /system/etc/security/cacerts
4852
chmod 755 /system/etc/security/cacerts
49-
chmod 644 /system/etc/security/cacerts/*
5053
chcon u:object_r:system_file:s0 /system/etc/security/cacerts/*
5154

5255
# Deal with the APEX overrides, which need injecting into each namespace:

0 commit comments

Comments
 (0)