[Completed] Need help with CM13 and init.d scripts

Status
Not open for further replies.

oldschool63

Senior Member
Jan 17, 2015
58
21
0
Chattanooga, TN
I am running CM13 (nightly build, Sep 2016) on my tablet. The init.d system works (adb logcat shows the output of /etc/init.d/00banner during boot). So I wrote my own init.d script which I want to use to mount an additional partition. The problem is SELinux. Obviously it won't let me do that.
I am not too familiar with the SELinux policies in CM13. It looks like I cannot simply do a "mount... " command in an init.d script. I also cannot do a "su -c mount...". Everything gets denied.
So what can I do in order to mount a partition during boot - besides turning off the darn SELinux?

Markus.
 
Last edited by a moderator:

Art Vanderlay

Retired Forum Moderator
Jan 2, 2014
3,464
2,650
0
Melbourne
I am running CM13 (nightly build, Sep 2016) on my tablet. The init.d system works (adb logcat shows the output of /etc/init.d/00banner during boot). So I wrote my own init.d script which I want to use to mount an additional partition. The problem is SELinux. Obviously it won't let me do that.
I am not too familiar with the SELinux policies in CM13. It looks like I cannot simply do a "mount... " command in an init.d script. I also cannot do a "su -c mount...". Everything gets denied.
So what can I do in order to mount a partition during boot - besides turning off the darn SELinux?

Markus.
Hi,

If you tell me what device you have I can try to point you in the right direction.
 

oldschool63

Senior Member
Jan 17, 2015
58
21
0
Chattanooga, TN
If you tell me what device you have I can try to point you in the right direction.
I am currently trying to figure this out on a LG GPAD 7 (CM v400 build). I am running the 20160917 Nightly. As far as I know this problem with SELinux is not device specific, but just the way how it works in CM13, right?

Thanks for any suggestions,
Markus.
 

Art Vanderlay

Retired Forum Moderator
Jan 2, 2014
3,464
2,650
0
Melbourne
I am currently trying to figure this out on a LG GPAD 7 (CM v400 build). I am running the 20160917 Nightly. As far as I know this problem with SELinux is not device specific, but just the way how it works in CM13, right?

Thanks for any suggestions,
Markus.
This is probably the best thread to ask in:

[DEV] thread on LG G Pad 7.0/8.0/10.1

XDA assist is here to help find the right place, not for technical support. There isn't a dedicated forum for your device here so that seems like the right place for rom related queries on the gpad 7.
 
  • Like
Reactions: oldschool63
Status
Not open for further replies.