[Miscellaneous Android Development] rlrevell:
Hey,

So this was working great until recently but at some point apps couldn't get root anymore; the prompt from magisk manager never even appears. su works from adb but from termux /sbin/su gives "permission denied". Setting selinux to permissive mode makes it work again. These are the messages I get trying to su from termux:

[ 522.689324] 522.689324 / 02-13 12:35:41.774][4] (4)[12170:webview_zygote]audit: type=1400 audit(1581615341.774:1568): avc: denied { read } for pid=12170 comm="webview_zygote" name="u:object_r:atm_ipaddr_prop:s0" dev="tmpfs" ino=7425 scontext=u:r:isolated_app:s0:c5,c256,c512,c768 tcontext=u:object_r:atm_ipaddr_prop:s0 tclass=file permissive=0
[ 522.689508] 522.689508 / 02-13 12:35:41.774][4] (4)[12170:webview_zygote]audit: type=1400 audit(1581615341.774:1569): avc: denied { read } for pid=12170 comm="webview_zygote" name="u:object_r:atm_mdmode_prop:s0" dev="tmpfs" ino=7426 scontext=u:r:isolated_app:s0:c5,c256,c512,c768 tcontext=u:object_r:atm_mdmode_prop:s0 tclass=file permissive=0
[ 522.689741] 522.689741 / 02-13 12:35:41.774][4] (4)[12170:webview_zygote]audit: type=1400 audit(1581615341.774:1570): avc: denied { read } for pid=12170 comm="webview_zygote" name="u:object_r:bluetooth_a2dp_offload_prop:s0" dev="tmpfs" ino=7429 scontext=u:r:isolated_app:s0:c5,c256,c512,c768 tcontext=u:object_r:bluetooth_a2dp_offload_prop:s0 tclass=file permissive=0
[ 522.689871] 522.689871 / 02-13 12:35:41.774][4] (4)[12170:webview_zygote]audit: type=1400 audit(1581615341.774:1571): avc: denied { read } for pid=12170 comm="webview_zygote" name="u:object_r:bluetooth_prop:s0" dev="tmpfs" ino=7430 scontext=u:r:isolated_app:s0:c5,c256,c512,c768 tcontext=u:object_r:bluetooth_prop:s0 tclass=file permissive=0
[ 522.690002] 522.690002 / 02-13 12:35:41.774][4] (4)[12170:webview_zygote]audit: type=1400 audit(1581615341.774:1572): avc: denied { read } for pid=12170 comm="webview_zygote" name="u:object_r:bootani_prop:s0" dev="tmpfs" ino=7431 scontext=u:r:isolated_app:s0:c5,c256,c512,c768 tcontext=u:object_r:bootani_prop:s0 tclass=file permissive=0
[ 522.690132] 522.690132 / 02-13 12:35:41.774][4] (4)[12170:webview_zygote]audit: type=1400 audit(1581615341.774:1573): avc: denied { read } for pid=12170 comm="webview_zygote" name="u:object_r:bootloader_boot_reason_prop:s0" dev="tmpfs" ino=7432 scontext=u:r:isolated_app:s0:c5,c256,c512,c768 tcontext=u:object_r:bootloader_boot_reason_prop:s0 tclass=file permissive=0
[ 522.690269] 522.690269 / 02-13 12:35:41.774][4] (4)[12170:webview_zygote]audit: type=1400 audit(1581615341.774:1574): avc: denied { read } for pid=12170 comm="webview_zygote" name="u:object_r:boottime_prop:s0" dev="tmpfs" ino=7433 scontext=u:r:isolated_app:s0:c5,c256,c512,c768 tcontext=u:object_r:boottime_prop:s0 tclass=file permissive=0
[ 522.690404] 522.690404 / 02-13 12:35:41.774][4] (4)[12170:webview_zygote]audit: type=1400 audit(1581615341.774:1575): avc: denied { read } for pid=12170 comm="webview_zygote" name="u:object_r:bt_profiles_avrcp_multiPlayer_enable_prop:s0" dev="tmpfs" ino=7434 scontext=u:r:isolated_app:s0:c5,c256,c512,c768 tcontext=u:object_r:bt_profiles_avrcp_multiPlayer_enable_prop:s0 tclass=file permissive=0
[ 522.690537] 522.690537 / 02-13 12:35:41.774][4] (4)[12170:webview_zygote]audit: type=1400 audit(1581615341.774:1576): avc: denied { read } for pid=12170 comm="webview_zygote" name="u:object_r:capturepackets_prop:s0" dev="tmpfs" ino=7435 scontext=u:r:isolated_app:s0:c5,c256,c512,c768 tcontext=u:object_r:capturepackets_prop:s0 tclass=file permissive=0
[ 522.690760] 522.690760 / 02-13 12:35:41.774][4] (4)[12170:webview_zygote]audit: type=1400 audit(1581615341.774:1577): avc: denied { read } for pid=12170 comm="webview_zygote" name="u:object_r:coredump_prop:s0" dev="tmpfs" ino=7438 scontext=u:r:isolated_app:s0:c5,c256,c512,c768 tcontext=u:object_r:coredump_prop:s0 tclass=file permissive=0
[ 527.983467] 527.983467 / 02-13 12:35:47.067][6] (6)[12199:su]audit: type=1400 audit(1581615347.067:1757): avc: denied { read } for pid=12199 comm="su" name="su" dev="tmpfs" ino=94987 scontext=u:r:untrusted_app:s0:c250,c256,c512,c768 tcontext=u:object_r:rootfs:s0:c243,c256,c512,c768 tclass=lnk_file permissive=0
[ 530.463923] 530.463923 / 02-13 12:35:49.547][3] (3)[3070:putmethod.latin]audit: type=1400 audit(1581615349.547:1758): avc: denied { read } for pid=3070 comm="putmethod.latin" name="u:object_r:vendor_scroll_prop:s0" dev="tmpfs" ino=7782 scontext=u:r:untrusted_app:s0:c208,c256,c512,c768 tcontext=u:object_r:vendor_scroll_prop:s0 tclass=file permissive=0
[ 530.789667] 530.789667 / 02-13 12:35:49.874][7] (7)[12228:dmesg]audit: type=1400 audit(1581615349.874:1759): avc: denied { syslog_read } for pid=12228 comm="dmesg" scontext=u:r:magisk:s0 tcontext=u:r:kernel:s0 tclass=system permissive=1

Here's my /sbin:

[root@localhost: ~]# ls -alZ /sbin/
total 504
drwxr-xr-x 3 root root u:object_r:rootfs:s0 380 2020-02-13 17:31 .
drwxr-xr-x 19 root root u:object_r:rootfs:s0 4096 2020-02-13 17:31 ..
lrwxrwxrwx 1 root root u:object_r:rootfs:s0 13 2020-02-13 17:31 .core -> /sbin/.magisk
-rw------- 1 root root u:object_r:rootfs:s0:c243,c256,c512,c768 0 2020-02-13 17:31 .init-stamp
drwxr-xr-x 6 root root u:object_r:rootfs:s0:c243,c256,c512,c768 120 2020-02-13 17:31 .magisk
lrwxrwxrwx 1 root root u:object_r:rootfs:s0:c243,c256,c512,c768 10 2020-02-13 17:31 bnrd -> /root/bnrd
lrwxrwxrwx 1 root root u:object_r:rootfs:s0:c243,c256,c512,c768 13 2020-02-13 17:31 charger -> /root/charger
lrwxrwxrwx 1 root root u:object_r:rootfs:s0:c243,c256,c512,c768 12 2020-02-13 17:31 imgtool -> /sbin/magisk
-rwxr-xr-x 1 root root u:object_r:magisk_file:s0 94 2020-02-13 17:31 magisk
-rwxr-xr-x 1 root root u:object_r:magisk_file:s0 108260 2020-02-13 17:31 magisk.bin
lrwxrwxrwx 1 root root u:object_r:rootfs:s0:c243,c256,c512,c768 12 2020-02-13 17:31 magiskhide -> /sbin/magisk
-rwxr-xr-x 1 root root u:object_r:magisk_file:s0 394588 2020-02-13 17:31 magiskinit
lrwxrwxrwx 1 root root u:object_r:rootfs:s0:c243,c256,c512,c768 16 2020-02-13 17:31 magiskpolicy -> /sbin/magiskinit
lrwxrwxrwx 1 root root u:object_r:rootfs:s0:c243,c256,c512,c768 10 2020-02-13 17:31 rctd -> /root/rctd
lrwxrwxrwx 1 root root u:object_r:rootfs:s0:c243,c256,c512,c768 12 2020-02-13 17:31 resetprop -> /sbin/magisk
lrwxrwxrwx 1 root root u:object_r:rootfs:s0:c243,c256,c512,c768 12 2020-02-13 17:31 su -> /sbin/magisk
lrwxrwxrwx 1 root root u:object_r:rootfs:s0:c243,c256,c512,c768 16 2020-02-13 17:31 supolicy -> /sbin/magiskinit
lrwxrwxrwx 1 root root u:object_r:rootfs:s0:c243,c256,c512,c768 13 2020-02-13 17:31 ueventd -> /root/ueventd
lrwxrwxrwx 1 root root u:object_r:rootfs:s0:c243,c256,c512,c768 15 2020-02-13 17:31 watchdogd -> /root/watchdogd

Any ideas?