Need some help with 3 issues.
-- In Permissive
mode I get denials why does this happen and how do I fix zyat
-- If I am enforced
- how do I give access to my Partitions to various processes( right now I am permissive
in case I want to switch over as enforced what do I do in enforced
mode to ensure that Apps and processes have full access to all my partitions
on micro SD card
) ?
-- how do I ensure that I have permission mode at the time of boot I am using seLinux
changer app which changes the mode to permission I am assuming after boot
:
- In
Permissive
mode I get denials, why does this happen and how do I fix that? - If I am
enforced
, how do I give access to my Partitions to various processes. Right now I ampermissive
but in case I want to switch over as enforced what do I do inenforced
mode to ensure that Apps and processes have full access to all mypartitions
on micro SD card? - How do I ensure that I have permissive mode at the time after boot? I am using
seLinux
changer app which changes the mode to permissive after boot, I am assuming.
Backdrop
-
I
I am on Android 9 Pie. Rooted
with a Custom ROM via Magisk
( v 20v20 which is the latest )
.
I have 3 partitions on my MicroSD card
All partitions
are, all ext4
partitions. firstFirst partition is made partition for external data to store the secondexternal data. Second partition is for app2sd
or application data linking and. And third partition is for WhatsApp
I am on Android 9 Pie
. Rooted with a Custom ROM
via Magisk ( v 20 which is the latest )
veryBut I have a problem which mysteriously this problems keeps popping up and thenup; for a very brief time it disappears and then it is again back up again so the.
The issue is when I link the WhatsApp folder in my internal storage to the third partition, it stoppedstops working and I am not able to download any image and whenimages. When I try and access through ADB and non rooted prompt internal folders that are linked to my external partition on micro SD card through ADB and non-rooted prompt, it says Access denied.If If after linking I have to to access any file on my internal storage or external storage through a non rootedroot user basically, I have to copy it in data local temp/data/local/tmp
and Ch Modchmod
it.
soSo after running a dmesg
e via su
prompt I, I keep getting this kind of information and I am totally confused as to how I keep getting rejects even when I am permissivein permissive mode:
[64108.645494] type=1400 audit(1571547099.201:11658): avc: denied { call } for pid=1301 comm="pool-1-thread-1" scontext=u:r:untrusted_app:s0:c2,c257,c512,c768 tcontext=u:r:hal_memtrack_default:s0 tclass=binder permissive=1
[64108.645560] type=1400 audit(1571547144.071:11659): avc: denied { open } for pid=23335 comm="om.mobikwik_new" path="/proc/vmstat" dev="proc" ino=4026532137 scontext=u:r:untrusted_app_27:s0:c512,c768 tcontext=u:object_r:proc_vmstat:s0 tclass=file permissive=1
Line 205: [62276.620621] type=1400 audit(1571545312.043:11584): avc: denied { read } for pid=8534 comm="webview_zygote" name="fonts.xml" dev="mmcblk0p66" ino=1968042 scontext=u:r:webview_zygote:s0 tcontext=u:object_r:theme_data_file:s0 tclass=file permissive=1
Line 202: [61774.878054] type=1400 audit(1571544810.294:11570): avc: denied { call } for pid=1301 comm="pool-1-thread-1" scontext=u:r:untrusted_app:s0:c2,c257,c512,c768 tcontext=u:r:hal_memtrack_default:s0 tclass=binder permissive=1
Line 200: [61770.686186] type=1400 audit(1571544806.104:11569): avc: denied { getattr } for pid=12417 comm=4173796E635461736B202334 path="/data/sdext2/data/com.google.android.googlequicksearchbox/cache" dev="mmcblk1p2" ino=413617 scontext=u:r:untrusted_app_25:s0:c512,c768 tcontext=u:object_r:unlabeled:s0 tclass=dir permissive=1
Line 189: [59854.882802] type=1400 audit(1571542825.956:11523): avc: denied { call } for pid=13288 comm="GoogleLocationS" scontext=u:r:priv_app:s0:c512,c768 tcontext=u:r:hal_memtrack_default:s0 tclass=binder permissive=1
Line 173: [58684.872549] type=1400 audit(1571541715.916:11505): avc: denied { getattr } for pid=4379 comm="Binder:4379_3" path="/storage/6226b27a-ebc1-4fdd-b54c-096abc40c2b9" dev="tmpfs" ino=52150 scontext=u:r:untrusted_app:s0:c241,c256,c512,c768 tcontext=u:object_r:storage_stub_file:s0 tclass=dir permissive=1
Line 102: [58416.978554] type=1400 audit(1571541430.215:11458): avc: denied { open } for pid=31520 comm="CallMonitors-1" path="/proc/stat" dev="proc" ino=4026532088 scontext=u:r:untrusted_app:s0:c18,c257,c512,c768 tcontext=u:object_r:proc_stat:s0 tclass=file permissive=1
What I did:
tried to use the 8 script approach with setenforce 0
under init.d
dir. Hopelessly works only in <5.0
Tried to remount partitions as RW.
- Tried to use the script approach with
setenforce 0
underinit.d
dir. Hopelessly works only in <5.0. - Tried to remount partitions as R/W.