Commit Graph

29 Commits

Author SHA1 Message Date
Emerson Pinter
da87a7db23 userinit: kill userinit.d
We can't give exec permissions on /data, userinit.sh is sufficient for
most cases.

Change-Id: I924cecb2cd2ecf71bc15f77dccd2c28a19341b91
2015-04-07 02:23:20 +00:00
Georg Veichtlbauer
5e9d050e18 init: remove logwrapper
Change-Id: I1e2ecfcbca335afd1c8bf7c6fd76684a221b99ef
2015-02-09 21:03:26 +00:00
Ricardo Cerqueira
58154f365c Revert "Add SELinux filesystem relabeling to init"
This reverts commit d2d1a7ffb1.

Revert "selinuxrelabel: Remove attempts to relabel /system"

This reverts commit cae5f24530.

Revert "Recheck /data for selinux labeling"

This reverts commit c4dcb16ca9.

Revert "selinuxrelabel: Add a check for dalvik-cache"

This reverts commit c7e9230614.

Revert "selinuxrelabel: Need to check in priv-app now"

This reverts commit 3013c99acb.

Revert "selinux: When adding userdata labels, do cache too"

This reverts commit 8994907baf.

Revert "selinux: Use a more reliable sentinel to flag /data labelling"

This reverts commit b52874de53.

Change-Id: I7779aaca3b0751ed74d525292681817182a0aa7f
2014-03-20 21:21:17 +00:00
Ricardo Cerqueira
cae5f24530 selinuxrelabel: Remove attempts to relabel /system
These are a no-op due to the additional block-device protection from
e18c0d508a
so get rid of them entirely. Any installing recovery (or equivalent
installation process) should handle the labeling of system components
on its own.

Change-Id: I14c50f08efa6f05b03fad4fbc404219cc504e1ff
TBD: Do we still want to label unlabeled files?
2013-12-31 17:59:54 +00:00
mcampbellsmith
c4dcb16ca9 Recheck /data for selinux labeling
This simply adds checks for selinux labels for
files under /data/misc/wifi which were not labeled
correctly for some devices

Change-Id: Iaacf6db792aaea1485502b424d639a1212c5841b
2013-12-28 22:12:48 +11:00
Chirayu Desai
c7e9230614 selinuxrelabel: Add a check for dalvik-cache
Change-Id: Ic8087450756ae81458e155aa1ca22d5055547664
2013-12-07 20:55:29 +05:30
dhacker29
3013c99acb selinuxrelabel: Need to check in priv-app now
Change-Id: I67529c3b0f8baaac15fd475305eafd085feac112
2013-11-15 22:48:05 -06:00
Ricardo Cerqueira
8994907baf selinux: When adding userdata labels, do cache too
Change-Id: I0c1ff737629474135767be7cfe2bfbea0513fa9e
2013-07-18 15:46:28 +01:00
Ricardo Cerqueira
b52874de53 selinux: Use a more reliable sentinel to flag /data labelling
/data/anr isn't present on all devices, /data/system is

Change-Id: Ifba71d073dc7b577911386cff316e8a19662cd0d
2013-07-18 15:41:06 +01:00
Ricardo Cerqueira
d2d1a7ffb1 Add SELinux filesystem relabeling to init
Since not all recoveries out there will support the OTA packages'
own labeling, check at boot if the system needs labels (and
apply them)

Change-Id: I58767977b90a78a12efe7bd9d713654eadf47e7a
2013-07-17 16:48:28 +01:00
Ricardo Cerqueira
6698e5ebdb init.cm.rc: Fix startup banner, and move sysinit here
"getprop" depends on the presence of the property workspace
env var, which is created by the first starting service. Why
not make that sysinit itself? (\/) (°,,,°) (\/)
2012-11-23 17:15:16 +00:00
James Sullins
eb7799c1b6 add userinit script(s) support
Allow user to provide userinit.sh and/or userinit.d/*
scripts under /data/local to be run on each boot.

Change-Id: I96f3034bcdea8d4cc75929d21b69efa31c1cb108
2012-04-10 11:40:12 -07:00
Steve Kondik
25d7ca1628 cm: Rename modversion to cm.version
Change-Id: I73da7816fec34e892ee54e1782a18ec1c42863b4
2011-12-29 15:29:34 -08:00
Ricardo Cerqueira
e1f3738e7c CM9: initial CM vendor setup for Android 4 2011-11-27 20:15:37 +00:00
Giulio Cervera
91d5b38230 cm: updated 'download space check' init script
increase required space needed for market downloads from ~20MB
to ~60MB (~105MB if system dalvik is on /cache)

Change-Id: I52fcd648374db4bf73ff478e9991a6a3162521d5
2011-11-02 15:53:15 +01:00
Steve Kondik
4ff97d51cb Quiet down this init script
Change-Id: I007e4e2bb5c0dbad233ed2655cf941d51064d901
2011-06-18 12:42:06 -04:00
Giulio Cervera
052a7b2e02 cm: remove tmp file on boot
Change-Id: I5bf329663e675fa98e8e269a67b56fc28d37591e
2011-04-26 01:05:34 +02:00
Steve Kondik
8efdc7e86a Merge "userinit: run-parts from /data/local/userinit.d" into gingerbread 2011-01-30 19:43:54 +00:00
Steve Kondik
05ca4306b1 Merge "cm: bind mount DOWNLOAD_CACHE to /data if /cache is less then 20MB" into gingerbread 2011-01-30 19:11:06 +00:00
Giulio Cervera
c27aa964e6 cm: slight check on modules load
Change-Id: I4847c8193ebb44e2b25a02c8af05b544e7b10a47
2011-01-29 20:27:33 +01:00
Giulio Cervera
de7b80fdf1 cm: bind mount DOWNLOAD_CACHE to /data if /cache is less then 20MB
this is useful for all user which want to use cMTD or static
  partition size (like alpharev) to assign more space to /data
  reducing /cache size

Change-Id: Ib251c9bea1dea50b6c444df977aa605e58008c41
2011-01-29 19:04:18 +01:00
OlegKrikun
cab30bca69 userinit: run-parts from /data/local/userinit.d
Change-Id: I48ec924b1023500af27dad7a822be5ab9371be7c
2011-01-22 16:36:34 +03:00
Giulio Cervera
a843bbde3c mountsd: Relax partition checks
Removed label requirement, cause too many trouble on user
 The 2nd SD Card partition will be mounted as sd-ext with ext3fs
  (there are some problem with ext4, we stay on 3 until 4 problem
  will be sorted)

Change-Id: I87e53d1714d84fbdafeb80599ebb3e62b3a24b1e
2011-01-20 16:31:08 +01:00
Giulio Cervera
8ba581ead2 updated 05mountsd script:
check for mmc device type = SD
 mount sd-ext partition by label = sd-ext
 we are smart, so only ext4 support
 removed wait for device

Change-Id: Ie1ee2de3365d5515030d46801099418607e1265e
2011-01-01 18:57:09 -05:00
Firerat
5a83cc4a31 e2fsck returns exit 1 if filesystem is repaired
credits: Ohsaka and NLJ of xda
http://goo.gl/SJNk
2010-09-20 03:36:24 +01:00
Firerat
c74211374a install init.d/05mountsd script, with correct e2fsck exitcode 2010-09-19 15:30:05 -04:00
Steve Kondik
fcab753014 cm: Add support for /data/local/userinit.sh 2010-08-17 12:11:48 -04:00
Steve Kondik
9e0208ce64 Some apps are requiring IPv6 now for some reason. 2010-07-11 02:17:06 -04:00
Steve Kondik
8794d1afc9 Add init.d stuff. 2010-07-05 23:09:52 -04:00