Closed Bug 1233756 Opened 8 years ago Closed 6 years ago

[mozdevice] devicemanagerADB.py should set SELinux to Permissive

Categories

(Testing :: Mozbase, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1440714

People

(Reporter: bc, Assigned: gbrown)

Details

Bug 1214812 added support for always enabling SELinux Permissive. We will definitely need SELinux Permissive to run the normal reftest/mochitest unit tests on Android 5.x+.

:alex_johnson ran into a case with a GS5 running CM12 where setenforce Permissive would not work and had to resort to echo 0 > /sys/fs/selinux/enforce. We may need to support that in devicemanagerADB and adb*.py if setenforce does not work.
setenforce seems to be working on the CM12 nightly.  But, I can't run robocop tests even with SELinux set to permissive and I have no idea why.
(In reply to Alex Johnson (:alex_johnson) from comment #1)
> setenforce seems to be working on the CM12 nightly.  But, I can't run
> robocop tests even with SELinux set to permissive and I have no idea why.

We might be able to diagnose with mach output + logcat. You could post those here or in a separate bug.
I'm gonna post those in a separate bug since it's not related to SELinux permissions afaik.  And I'm gonna set this to resolved worksforme since this was most likely a bug with CM.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WORKSFORME
Actually, this should remain open since devicemanagerADB has no code to set SELinux to Permissive.
Status: RESOLVED → REOPENED
Resolution: WORKSFORME → ---
devicemanager has been replaced.
Assignee: nobody → gbrown
Status: REOPENED → RESOLVED
Closed: 8 years ago6 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.