From da35b73c5608359950ab49cbee5ac82b19c4364a Mon Sep 17 00:00:00 2001 From: Bruno Martins Date: Mon, 8 Oct 2018 00:25:18 +0100 Subject: shinano-common: Create root folders outside of vendor init script * The core SELinux policies for vendor_init are being restricted as to comply with Treble. Simply adding a local rule to allow creating folders under rootfs would be enough, but at the same time defining the extra root folders and making use of AID/fs configuration file to set perms is more neat and clean. * Furthermore, with System As Root / is a read-only filesystem so we can't create our mountpoints from init script anymore Change-Id: Idabd7ae72e4c4fd9daac5ba3be3e6236f79f251b --- rootdir/etc/init.camera.rc | 6 ------ 1 file changed, 6 deletions(-) (limited to 'rootdir') diff --git a/rootdir/etc/init.camera.rc b/rootdir/etc/init.camera.rc index ae8a21f..eec2b78 100644 --- a/rootdir/etc/init.camera.rc +++ b/rootdir/etc/init.camera.rc @@ -22,12 +22,6 @@ on early-fs exec u:r:qti_init_shell:s0 -- /sbin/wait4tad_static on fs - # SONY: create mount point for idd - mkdir /idd 0751 system system - - # SONY: setup idd partition - chown system system /idd - chmod 0751 /idd exec u:r:qti_init_shell:s0 -- /system/bin/rm -r /idd/lost+found symlink /idd /mnt/idd restorecon_recursive /idd -- cgit v1.2.3