作者归档:zhiwei

android selinux

https://source.android.google.cn/security/selinux/?hl=zh-cn

Android 安全模型部分基于应用沙盒的概念。每个应用都在自己的沙盒内运行。在 Android 4.3 之前的版本中,这些沙盒是通过为每个应用创建独一无二的 Linux UID(在应用安装时创建)来定义的。从 Android 4.3 版起,安全增强型 Linux (SELinux) 开始用于进一步定义 Android 应用沙盒的边界。

SELinux是一个标签系统。每个进程都有一个标签。操作系统中的每个文件对象/目录对象也都有一个标签。甚至连网络端口,设备和潜在的主机名也都有标签分配给它们。我们编写规则来控制进程标签到对象标签(如文件)的访问权限。我们称之为策略。内核强制执行这些规则。有时这种强制执行被称为强制访问控制(MAC)。

漫画讲解SeLinux概念

标签 规则 域

SELinux 依靠标签来匹配操作和政策。
标签用于决定允许的事项。
套接字、文件和进程在 SELinux 中都有标签。

SELinux 决定基本上是根据为这些对象分配的标签以及定义这些对象可以如何交互的政策做出的。

在 SELinux 中,标签采用以下形式:user:role:type:mls_level,其中 type 是访问决定的主要组成部分,可通过构成标签的其他组成部分进行修改。对象会映射到类,对每个类的不同访问类型由权限表示。

政策规则采用以下形式:allow domains types:classes permissions;

其中:

Domain – 一个进程或一组进程的标签。也称为域类型,因为它只是指进程的类型。
Type – 一个对象(例如,文件、套接字)或一组对象的标签。
Class – 要访问的对象(例如,文件、套接字)的类型。
Permission – 要执行的操作(例如,读取、写入)。

file_contexts 该文件用于为文件分配标签,并且可供多种用户空间组件使用。在创建新政策时,请创建或更新该文件,以便为文件分配新标签。
要应用新的 file_contexts,您必须重新构建文件系统映像,或对要重新添加标签的文件运行 restorecon

genfs_contexts 该文件用于为不支持扩展属性的文件系统(例如,proc 或 vfat)分配标签。
此配置会作为内核政策的一部分进行加载,但更改可能对核心内 inode 无效。要全面应用更改,需要重新启动设备,或卸载后重新装载文件系统。

property_contexts 该文件用于为 Android 系统属性分配标签,以便控制哪些进程可以设置这些属性。 在启动期间,init 进程会读取此配置。

service_contexts 该文件用于为 Android Binder 服务分配标签,以便控制哪些进行可以为相应服务添加(注册)和查找(查询)Binder 引用

seapp_contexts 该文件用于为应用进程和 /data/data 目录分配标签。 在每次应用启动时,zygote 进程都会读取此配置;在启动期间,installd 会读取此配置。

mac_permissions.xml 该文件用于根据应用签名和应用软件包名称(后者可选)为应用分配 seinfo 标记。然后,分配的 seinfo 标记可在 seapp_contexts 文件中用作密钥,以便为带有该 seinfo 标记的所有应用分配特定标签。
在启动期间,system_server 会读取此配置。

示例

首先请注意,SELinux 基于 M4 计算机语言,因此支持多种有助于节省时间的宏。

在以下示例中,所有域都被授予从 /dev/null 读取数据或向其写入数据的权限以及从 /dev/zero 读取数据的权限。

# Allow read / write access to /dev/null
allow domain null_device:chr_file { getattr open read ioctl lock append write};

# Allow read-only access to /dev/zero
allow domain zero_device:chr_file { getattr open read ioctl lock };

可以使用 SELinux *_file_perms 宏编写相同的声明(代码非常简短):

# Allow read / write access to /dev/null
allow domain null_device:chr_file rw_file_perms;

# Allow read-only access to /dev/zero
allow domain zero_device:chr_file r_file_perms;

ls -Z


u:object_r:cgroup:s0                        acct                     u:object_r:rootfs:s0                        magisk                     
u:object_r:bt_firmware_file:s0              bt_firmware              u:object_r:tmpfs:s0                         mnt                        
u:object_r:rootfs:s0                        bugreports               u:object_r:file_contexts_file:s0            nonplat_file_contexts      
u:object_r:cache_file:s0                    cache                    u:object_r:hwservice_contexts_file:s0       nonplat_hwservice_contexts 
u:object_r:rootfs:s0                        charger                  u:object_r:property_contexts_file:s0        nonplat_property_contexts  
u:object_r:rootfs:s0                        charger_log              u:object_r:seapp_contexts_file:s0           nonplat_seapp_contexts     
u:object_r:configfs:s0                      config                   u:object_r:nonplat_service_contexts_file:s0 nonplat_service_contexts   
u:object_r:rootfs:s0                        d                        u:object_r:rootfs:s0                        oem                        
u:object_r:system_data_file:s0              data                     u:object_r:persist_file:s0                  persist                    
u:object_r:rootfs:s0                        default.prop             u:object_r:file_contexts_file:s0            plat_file_contexts         
u:object_r:device:s0                        dev                      u:object_r:hwservice_contexts_file:s0       plat_hwservice_contexts    
u:object_r:adsprpcd_file:s0                 dsp                      u:object_r:property_contexts_file:s0        plat_property_contexts     
u:object_r:rootfs:s0                        etc                      u:object_r:seapp_contexts_file:s0           plat_seapp_contexts        
u:object_r:firmware_file:s0                 firmware                 u:object_r:service_contexts_file:s0         plat_service_contexts      
u:object_r:rootfs:s0                        ftm_power_config.sh      u:object_r:proc:s0                          proc                       
u:object_r:init_exec:s0                     init                     u:object_r:rootfs:s0                        res                        
u:object_r:rootfs:s0                        init.environ.rc          u:object_r:rootfs:s0                        root                       
u:object_r:rootfs:s0                        init.oem.debug.rc        u:object_r:rootfs:s0                        sbin                       
u:object_r:rootfs:s0                        init.oem.early_boot.sh   u:object_r:rootfs:s0                        sdcard                     
u:object_r:rootfs:s0                        init.oem.engineermode.sh u:object_r:sepolicy_file:s0                 sepolicy                   
u:object_r:rootfs:s0                        init.oem.rc              u:object_r:sepolicy_file:s0                 sepolicy_debug             
u:object_r:rootfs:s0                        init.oem_ftm.rc          u:object_r:storage_file:s0                  storage                    
u:object_r:rootfs:s0                        init.rc                  u:object_r:sysfs:s0                         sys                        
u:object_r:rootfs:s0                        init.recovery.qcom.rc    u:object_r:system_file:s0                   system                     
u:object_r:rootfs:s0                        init.usb.configfs.rc     u:object_r:rootfs:s0                        tombstones                 
u:object_r:rootfs:s0                        init.usb.rc              u:object_r:rootfs:s0                        ueventd.rc                 
u:object_r:rootfs:s0                        init.zygote32.rc         u:object_r:rootfs:s0                        vendor                     
u:object_r:rootfs:s0                        init.zygote64_32.rc      u:object_r:vndservice_contexts_file:s0      vndservice_contexts        
u:object_r:rootfs:s0                        kmemleak.sh              u:object_r:rootfs:s0                        xposed.prop  

ps -Z

adb shell su -c ps -Z


LABEL                          USER           PID  PPID     VSZ    RSS WCHAN            ADDR S NAME                       
u:r:init:s0                    root             1     0   19164   3456 SyS_epoll+     504c14 S init
u:r:kernel:s0                  root             2     0       0      0 kthreadd            0 S [kthreadd]
u:r:kernel:s0                  root             3     2       0      0 smpboot_t+          0 S [ksoftirqd/0]
u:r:kernel:s0                  root             5     2       0      0 worker_th+          0 S [kworker/0:0H]
u:r:kernel:s0                  root             6     2       0      0 diag_sock+          0 S [kworker/u16:0]
u:r:kernel:s0                  root             7     2       0      0 rcu_gp_kt+          0 S [rcu_preempt]
u:r:kernel:s0                  root             8     2       0      0 rcu_gp_kt+          0 S [rcu_sched]
u:r:kernel:s0                  root             9     2       0      0 rcu_gp_kt+          0 S [rcu_bh]
u:r:kernel:s0                  root            10     2       0      0 nocb_lead+          0 S [rcuop/0]
u:r:kernel:s0                  root            11     2       0      0 nocb_lead+          0 S [rcuos/0]
u:r:kernel:s0                  root            12     2       0      0 nocb_lead+          0 S [rcuob/0]
u:r:kernel:s0                  root            13     2       0      0 smpboot_t+          0 S [migration/0]
u:r:kernel:s0                  root            14     2       0      0 smpboot_t+          0 S [migration/1]
u:r:kernel:s0                  root            15     2       0      0 smpboot_t+          0 S [ksoftirqd/1]
u:r:kernel:s0                  root            17     2       0      0 worker_th+          0 S [kworker/1:0H]
u:r:kernel:s0                  root            18     2       0      0 rcu_nocb_+          0 S [rcuop/1]
u:r:kernel:s0                  root            19     2       0      0 rcu_nocb_+          0 S [rcuos/1]
u:r:kernel:s0                  root            20     2       0      0 rcu_nocb_+          0 S [rcuob/1]
u:r:kernel:s0                  root            21     2       0      0 smpboot_t+          0 S [migration/2]
u:r:kernel:s0                  root            22     2       0      0 smpboot_t+          0 S [ksoftirqd/2]
u:r:kernel:s0                  root            24     2       0      0 worker_th+          0 S [kworker/2:0H]
u:r:kernel:s0                  root            25     2       0      0 nocb_lead+          0 S [rcuop/2]
u:r:kernel:s0                  root            26     2       0      0 nocb_lead+          0 S [rcuos/2]
u:r:kernel:s0                  root            27     2       0      0 nocb_lead+          0 S [rcuob/2]
u:r:kernel:s0                  root            28     2       0      0 smpboot_t+          0 S [migration/3]
u:r:kernel:s0                  root            29     2       0      0 smpboot_t+          0 S [ksoftirqd/3]
u:r:kernel:s0                  root            31     2       0      0 worker_th+          0 S [kworker/3:0H]
u:r:kernel:s0                  root            32     2       0      0 rcu_nocb_+          0 S [rcuop/3]
u:r:kernel:s0                  root            33     2       0      0 rcu_nocb_+          0 S [rcuos/3]
u:r:kernel:s0                  root            34     2       0      0 rcu_nocb_+          0 S [rcuob/3]
u:r:kernel:s0                  root            35     2       0      0 smpboot_t+          0 S [migration/4]
u:r:kernel:s0                  root            36     2       0      0 smpboot_t+          0 S [ksoftirqd/4]
u:r:kernel:s0                  root            38     2       0      0 worker_th+          0 S [kworker/4:0H]
u:r:kernel:s0                  root            39     2       0      0 nocb_lead+          0 S [rcuop/4]
u:r:kernel:s0                  root            40     2       0      0 nocb_lead+          0 S [rcuos/4]
u:r:kernel:s0                  root            41     2       0      0 nocb_lead+          0 S [rcuob/4]
u:r:kernel:s0                  root            42     2       0      0 smpboot_t+          0 S [migration/5]
u:r:kernel:s0                  root            43     2       0      0 smpboot_t+          0 S [ksoftirqd/5]
u:r:kernel:s0                  root            45     2       0      0 worker_th+          0 S [kworker/5:0H]
u:r:kernel:s0                  root            46     2       0      0 rcu_nocb_+          0 S [rcuop/5]
u:r:kernel:s0                  root            47     2       0      0 rcu_nocb_+          0 S [rcuos/5]
u:r:kernel:s0                  root            48     2       0      0 rcu_nocb_+          0 S [rcuob/5]
u:r:kernel:s0                  root            49     2       0      0 smpboot_t+          0 S [migration/6]
u:r:kernel:s0                  root            50     2       0      0 smpboot_t+          0 S [ksoftirqd/6]
u:r:kernel:s0                  root            52     2       0      0 worker_th+          0 S [kworker/6:0H]
u:r:kernel:s0                  root            53     2       0      0 nocb_lead+          0 S [rcuop/6]
u:r:kernel:s0                  root            54     2       0      0 nocb_lead+          0 S [rcuos/6]
u:r:kernel:s0                  root            55     2       0      0 nocb_lead+          0 S [rcuob/6]
u:r:kernel:s0                  root            56     2       0      0 smpboot_t+          0 S [migration/7]
u:r:kernel:s0                  root            57     2       0      0 smpboot_t+          0 S [ksoftirqd/7]
u:r:kernel:s0                  root            59     2       0      0 worker_th+          0 S [kworker/7:0H]
u:r:kernel:s0                  root            60     2       0      0 rcu_nocb_+          0 S [rcuop/7]
u:r:kernel:s0                  root            61     2       0      0 rcu_nocb_+          0 S [rcuos/7]
u:r:kernel:s0                  root            62     2       0      0 rcu_nocb_+          0 S [rcuob/7]
u:r:kernel:s0                  root            63     2       0      0 rescuer_t+          0 S [netns]
u:r:kernel:s0                  root            64     2       0      0 rescuer_t+          0 S [perf]
u:r:kernel:s0                  root            65     2       0      0 rescuer_t+          0 S [smd_channel_clo]
u:r:kernel:s0                  root            66     2       0      0 kthread_w+          0 S [dsps_smd_trans_]
u:r:kernel:s0                  root            67     2       0      0 kthread_w+          0 S [lpass_smd_trans]
u:r:kernel:s0                  root            68     2       0      0 kthread_w+          0 S [mpss_smd_trans_]
u:r:kernel:s0                  root            69     2       0      0 kthread_w+          0 S [wcnss_smd_trans]
u:r:kernel:s0                  root            70     2       0      0 kthread_w+          0 S [rpm_smd_trans_g]
u:r:kernel:s0                  root            71     2       0      0 rescuer_t+          0 S [ipa_usb_wq]
u:r:kernel:s0                  root            73     2       0      0 rescuer_t+          0 S [rpm_requests]
u:r:kernel:s0                  root            74     2       0      0 kthread_w+          0 S [smem_native_mps]
u:r:kernel:s0                  root            75     2       0      0 kthread_w+          0 S [mpss_smem_glink]
u:r:kernel:s0                  root            76     2       0      0 kthread_w+          0 S [smem_native_lpa]
u:r:kernel:s0                  root            77     2       0      0 kthread_w+          0 S [lpass_smem_glin]
u:r:kernel:s0                  root            78     2       0      0 kthread_w+          0 S [smem_native_dsp]
u:r:kernel:s0                  root            79     2       0      0 kthread_w+          0 S [dsps_smem_glink]
u:r:kernel:s0                  root            80     2       0      0 kthread_w+          0 S [smem_native_rpm]
u:r:kernel:s0                  root            81     2       0      0 kthread_w+          0 S [rpm_smem_glink_]
u:r:kernel:s0                  root            82     2       0      0 msm_mpm_w+          0 D [kworker/u16:1]
u:r:kernel:s0                  root            83     2       0      0 kthread_w+          0 S [smem_native_sps]
u:r:kernel:s0                  root            84     2       0      0 kthread_w+          0 S [spss_mailbox_gl]
u:r:kernel:s0                  root            85     2       0      0 watchdog_+          0 S [msm_watchdog]
u:r:kernel:s0                  root            86     2       0      0 rescuer_t+          0 S [deferwq]
u:r:kernel:s0                  root            87     2       0      0 irq_thread          0 S [irq/90-cpr3]
u:r:kernel:s0                  root            88     2       0      0 rescuer_t+          0 S [mpm]
u:r:kernel:s0                  root            89     2       0      0 diag_sock+          0 S [kworker/u16:2]
u:r:kernel:s0                  root            90     2       0      0 rescuer_t+          0 S [writeback]
u:r:kernel:s0                  root            91     2       0      0 kcompactd           0 S [kcompactd0]
u:r:kernel:s0                  root            92     2       0      0 rescuer_t+          0 S [crypto]
u:r:kernel:s0                  root            93     2       0      0 rescuer_t+          0 S [bioset]
u:r:kernel:s0                  root            94     2       0      0 rescuer_t+          0 S [kblockd]
u:r:kernel:s0                  root            95     2       0      0 rescuer_t+          0 S [op_rf_cable_wqu]
u:r:kernel:s0                  root            96     2       0      0 rescuer_t+          0 S [md]
u:r:kernel:s0                  root            97     2       0      0 rescuer_t+          0 S [qos_cpufreq]
u:r:kernel:s0                  root            98     2       0      0 ion_heap_+          0 S [system]
u:r:kernel:s0                  root            99     2       0      0 rescuer_t+          0 S [devfreq_wq]
u:r:kernel:s0                  root           100     2       0      0 rescuer_t+          0 S [governor_msm_ad]
u:r:kernel:s0                  root           102     2       0      0 rescuer_t+          0 S [cfg80211]
u:r:kernel:s0                  root           103     2       0      0 irq_thread          0 S [irq/98-arm-smmu]
u:r:kernel:s0                  root           104     2       0      0 rescuer_t+          0 S [ipa_power_mgmt]
u:r:kernel:s0                  root           105     2       0      0 rescuer_t+          0 S [transport_power]
u:r:kernel:s0                  root           106     2       0      0 rescuer_t+          0 S [ipa_rm_wq]
u:r:kernel:s0                  root           107     2       0      0 rescuer_t+          0 S [ipa_interrupt_w]
u:r:kernel:s0                  root           108     2       0      0 irq_thread          0 S [irq/99-arm-smmu]
u:r:kernel:s0                  root           109     2       0      0 irq_thread          0 S [irq/100-arm-smm]
u:r:kernel:s0                  root           110     2       0      0 irq_thread          0 S [irq/61-bcl_vbat]
u:r:kernel:s0                  root           111     2       0      0 irq_thread          0 S [irq/60-bcl_ibat]
u:r:kernel:s0                  root           137     2       0      0 rescuer_t+          0 S [power_off_alarm]
u:r:kernel:s0                  root           138     2       0      0 kswapd              0 S [kswapd0]
u:r:kernel:s0                  root           139     2       0      0 rescuer_t+          0 S [vmstat]
u:r:kernel:s0                  root           140     2       0      0 fsnotify_+          0 S [fsnotify_mark]
u:r:kernel:s0                  root           141     2       0      0 ecryptfs_+          0 S [ecryptfs-kthrea]
u:r:kernel:s0                  root           173     2       0      0 rescuer_t+          0 S [ad_calc_wq]
u:r:kernel:s0                  root           174     2       0      0 dsi_event+          0 D [mdss_dsi_event]
u:r:kernel:s0                  root           175     2       0      0 rescuer_t+          0 S [mdss_dsi_dba]
u:r:kernel:s0                  root           176     2       0      0 rescuer_t+          0 S [cwb_wq]
u:r:kernel:s0                  root           177     2       0      0 kthread_w+          0 S [vsync_retire_wo]
u:r:kernel:s0                  root           178     2       0      0 rescuer_t+          0 S [cwb_wq]
u:r:kernel:s0                  root           180     2       0      0 rescuer_t+          0 S [glink_ssr_wq]
u:r:kernel:s0                  root           181     2       0      0 rescuer_t+          0 S [glink_lbsrv]
u:r:kernel:s0                  root           182     2       0      0 kthread_w+          0 S [spi_wdsp]
u:r:kernel:s0                  root           183     2       0      0 kthread_w+          0 S [wdsp_spi_glink_]
u:r:kernel:s0                  root           184     2       0      0 rescuer_t+          0 S [glink_xprt_wq]
u:r:kernel:s0                  root           185     2       0      0 rescuer_t+          0 S [IPCRTR_mpss_sme]
u:r:kernel:s0                  root           186     2       0      0 rescuer_t+          0 S [IPCRTR_lpass_sm]
u:r:kernel:s0                  root           187     2       0      0 rescuer_t+          0 S [IPCRTR_dsps_sme]
u:r:kernel:s0                  root           188     2       0      0 rescuer_t+          0 S [apr_driver]
u:r:kernel:s0                  root           189     2       0      0 rescuer_t+          0 S [glink_pkt_wq]
u:r:kernel:s0                  root           190     2       0      0 rescuer_t+          0 S [mem_share_svc]
u:r:kernel:s0                  root           191     2       0      0 rescuer_t+          0 S [qmi_hndl0000000]
u:r:kernel:s0                  root           192     2       0      0 rescuer_t+          0 S [msm_ipc_router]
u:r:kernel:s0                  root           193     2       0      0 irq_thread          0 S [irq/29-qpnp_pla]
u:r:kernel:s0                  root           194     2       0      0 rescuer_t+          0 S [vibthread]
u:r:kernel:s0                  root           195     2       0      0 irq_thread          0 S [irq/101-arm-smm]
u:r:kernel:s0                  root           196     2       0      0 rescuer_t+          0 S [qmi_svc_event_w]
u:r:kernel:s0                  root           197     2       0      0 rescuer_t+          0 S [servloc_wq]
u:r:kernel:s0                  root           198     2       0      0 rescuer_t+          0 S [k_hsuart]
u:r:kernel:s0                  root           199     2       0      0 kthread_w+          0 S [msm_serial_hs_0]
u:r:kernel:s0                  root           200     2       0      0 kthread_w+          0 S [msm_serial_hs_0]
u:r:kernel:s0                  root           201     2       0      0 add_hwgen+          0 S [hwrng]
u:r:kernel:s0                  root           204     2       0      0 rescuer_t+          0 S [diag_real_time_]
u:r:kernel:s0                  root           205     2       0      0 rescuer_t+          0 S [diag_wq]
u:r:kernel:s0                  root           206     2       0      0 rescuer_t+          0 S [DIAG_USB_diag]
u:r:kernel:s0                  root           207     2       0      0 rescuer_t+          0 S [diag_cntl_wq]
u:r:kernel:s0                  root           208     2       0      0 rescuer_t+          0 S [diag_dci_wq]
u:r:kernel:s0                  root           209     2       0      0 rescuer_t+          0 S [DIAG_SMD_MODEM_]
u:r:kernel:s0                  root           210     2       0      0 rescuer_t+          0 S [DIAG_SMD_MODEM_]
u:r:kernel:s0                  root           211     2       0      0 rescuer_t+          0 S [DIAG_SMD_MODEM_]
u:r:kernel:s0                  root           212     2       0      0 rescuer_t+          0 S [DIAG_SMD_MODEM_]
u:r:kernel:s0                  root           213     2       0      0 rescuer_t+          0 S [DIAG_SMD_MODEM_]
u:r:kernel:s0                  root           214     2       0      0 rescuer_t+          0 S [DIAG_SMD_LPASS_]
u:r:kernel:s0                  root           215     2       0      0 rescuer_t+          0 S [DIAG_SMD_LPASS_]
u:r:kernel:s0                  root           216     2       0      0 rescuer_t+          0 S [DIAG_SMD_LPASS_]
u:r:kernel:s0                  root           217     2       0      0 rescuer_t+          0 S [DIAG_SMD_LPASS_]
u:r:kernel:s0                  root           218     2       0      0 rescuer_t+          0 S [DIAG_SMD_LPASS_]
u:r:kernel:s0                  root           219     2       0      0 rescuer_t+          0 S [DIAG_SMD_WCNSS_]
u:r:kernel:s0                  root           220     2       0      0 rescuer_t+          0 S [DIAG_SMD_WCNSS_]
u:r:kernel:s0                  root           221     2       0      0 rescuer_t+          0 S [DIAG_SMD_WCNSS_]
u:r:kernel:s0                  root           222     2       0      0 rescuer_t+          0 S [DIAG_SMD_WCNSS_]
u:r:kernel:s0                  root           223     2       0      0 rescuer_t+          0 S [DIAG_SMD_WCNSS_]
u:r:kernel:s0                  root           224     2       0      0 rescuer_t+          0 S [DIAG_SMD_SENSOR]
u:r:kernel:s0                  root           225     2       0      0 rescuer_t+          0 S [DIAG_SMD_SENSOR]
u:r:kernel:s0                  root           226     2       0      0 rescuer_t+          0 S [DIAG_SMD_SENSOR]
u:r:kernel:s0                  root           227     2       0      0 rescuer_t+          0 S [DIAG_SMD_SENSOR]
u:r:kernel:s0                  root           228     2       0      0 rescuer_t+          0 S [DIAG_SMD_SENSOR]
u:r:kernel:s0                  root           229     2       0      0 rescuer_t+          0 S [DIAG_SMD_DIAG_C]
u:r:kernel:s0                  root           230     2       0      0 rescuer_t+          0 S [DIAG_SMD_DIAG_D]
u:r:kernel:s0                  root           231     2       0      0 rescuer_t+          0 S [DIAG_SMD_DIAG_C]
u:r:kernel:s0                  root           232     2       0      0 rescuer_t+          0 S [DIAG_SMD_DIAG_D]
u:r:kernel:s0                  root           233     2       0      0 rescuer_t+          0 S [DIAG_SMD_DIAG_D]
u:r:kernel:s0                  root           234     2       0      0 rescuer_t+          0 S [DIAG_SMD_CDSP_C]
u:r:kernel:s0                  root           235     2       0      0 rescuer_t+          0 S [DIAG_SMD_CDSP_D]
u:r:kernel:s0                  root           236     2       0      0 rescuer_t+          0 S [DIAG_SMD_CDSP_C]
u:r:kernel:s0                  root           237     2       0      0 rescuer_t+          0 S [DIAG_SMD_CDSP_D]
u:r:kernel:s0                  root           238     2       0      0 rescuer_t+          0 S [DIAG_SMD_CDSP_D]
u:r:kernel:s0                  root           239     2       0      0 rescuer_t+          0 S [DIAG_SOCKMODEM_]
u:r:kernel:s0                  root           240     2       0      0 rescuer_t+          0 S [DIAG_SOCKMODEM_]
u:r:kernel:s0                  root           241     2       0      0 rescuer_t+          0 S [DIAG_SOCKMODEM_]
u:r:kernel:s0                  root           242     2       0      0 rescuer_t+          0 S [DIAG_SOCKMODEM_]
u:r:kernel:s0                  root           243     2       0      0 rescuer_t+          0 S [DIAG_SOCKMODEM_]
u:r:kernel:s0                  root           244     2       0      0 rescuer_t+          0 S [DIAG_SOCKLPASS_]
u:r:kernel:s0                  root           245     2       0      0 rescuer_t+          0 S [DIAG_SOCKLPASS_]
u:r:kernel:s0                  root           246     2       0      0 rescuer_t+          0 S [DIAG_SOCKLPASS_]
u:r:kernel:s0                  root           247     2       0      0 rescuer_t+          0 S [DIAG_SOCKLPASS_]
u:r:kernel:s0                  root           248     2       0      0 rescuer_t+          0 S [DIAG_SOCKLPASS_]
u:r:kernel:s0                  root           249     2       0      0 rescuer_t+          0 S [DIAG_SOCKWCNSS_]
u:r:kernel:s0                  root           250     2       0      0 rescuer_t+          0 S [DIAG_SOCKWCNSS_]
u:r:kernel:s0                  root           251     2       0      0 rescuer_t+          0 S [DIAG_SOCKWCNSS_]
u:r:kernel:s0                  root           252     2       0      0 rescuer_t+          0 S [DIAG_SOCKWCNSS_]
u:r:kernel:s0                  root           253     2       0      0 rescuer_t+          0 S [DIAG_SOCKWCNSS_]
u:r:kernel:s0                  root           254     2       0      0 rescuer_t+          0 S [DIAG_SOCKSENSOR]
u:r:kernel:s0                  root           255     2       0      0 rescuer_t+          0 S [DIAG_SOCKSENSOR]
u:r:kernel:s0                  root           256     2       0      0 rescuer_t+          0 S [DIAG_SOCKSENSOR]
u:r:kernel:s0                  root           257     2       0      0 rescuer_t+          0 S [DIAG_SOCKSENSOR]
u:r:kernel:s0                  root           258     2       0      0 rescuer_t+          0 S [DIAG_SOCKSENSOR]
u:r:kernel:s0                  root           259     2       0      0 rescuer_t+          0 S [DIAG_SOCKDIAG_C]
u:r:kernel:s0                  root           260     2       0      0 rescuer_t+          0 S [DIAG_SOCKDIAG_D]
u:r:kernel:s0                  root           261     2       0      0 rescuer_t+          0 S [DIAG_SOCKDIAG_C]
u:r:kernel:s0                  root           262     2       0      0 rescuer_t+          0 S [DIAG_SOCKDIAG_D]
u:r:kernel:s0                  root           263     2       0      0 rescuer_t+          0 S [DIAG_SOCKDIAG_D]
u:r:kernel:s0                  root           264     2       0      0 rescuer_t+          0 S [DIAG_SOCKCDSP_C]
u:r:kernel:s0                  root           265     2       0      0 rescuer_t+          0 S [DIAG_SOCKCDSP_D]
u:r:kernel:s0                  root           266     2       0      0 rescuer_t+          0 S [DIAG_SOCKCDSP_C]
u:r:kernel:s0                  root           267     2       0      0 rescuer_t+          0 S [DIAG_SOCKCDSP_D]
u:r:kernel:s0                  root           268     2       0      0 rescuer_t+          0 S [DIAG_SOCKCDSP_D]
u:r:kernel:s0                  root           269     2       0      0 rescuer_t+          0 S [DIAG_CNTL_SOCKE]
u:r:kernel:s0                  root           270     2       0      0 rescuer_t+          0 S [DIAG_GLINK_DIAG]
u:r:kernel:s0                  root           271     2       0      0 rescuer_t+          0 S [DIAG_GLINK_DIAG]
u:r:kernel:s0                  root           272     2       0      0 rescuer_t+          0 S [DIAG_GLINK_DIAG]
u:r:kernel:s0                  root           273     2       0      0 rescuer_t+          0 S [DIAG_GLINK_DIAG]
u:r:kernel:s0                  root           274     2       0      0 rescuer_t+          0 S [DIAG_GLINK_DIAG]
u:r:kernel:s0                  root           275     2       0      0 rescuer_t+          0 S [kgsl-workqueue]
u:r:kernel:s0                  root           276     2       0      0 rescuer_t+          0 S [kgsl-mementry]
u:r:kernel:s0                  root           277     2       0      0 kthread_w+          0 S [kgsl_worker_thr]
u:r:kernel:s0                  root           278     2       0      0 rescuer_t+          0 S [kgsl-events]
u:r:kernel:s0                  root           279     2       0      0 rescuer_t+          0 S [kgsl_devfreq_wq]
u:r:kernel:s0                  root           281     2       0      0 rescuer_t+          0 S [bioset]
u:r:kernel:s0                  root           282     2       0      0 rescuer_t+          0 S [bioset]
u:r:kernel:s0                  root           283     2       0      0 rescuer_t+          0 S [bioset]
u:r:kernel:s0                  root           284     2       0      0 rescuer_t+          0 S [bioset]
u:r:kernel:s0                  root           285     2       0      0 rescuer_t+          0 S [bioset]
u:r:kernel:s0                  root           286     2       0      0 rescuer_t+          0 S [bioset]
u:r:kernel:s0                  root           287     2       0      0 rescuer_t+          0 S [bioset]
u:r:kernel:s0                  root           288     2       0      0 rescuer_t+          0 S [bioset]
u:r:kernel:s0                  root           289     2       0      0 rescuer_t+          0 S [bioset]
u:r:kernel:s0                  root           290     2       0      0 rescuer_t+          0 S [bioset]
u:r:kernel:s0                  root           291     2       0      0 rescuer_t+          0 S [bioset]
u:r:kernel:s0                  root           292     2       0      0 rescuer_t+          0 S [bioset]
u:r:kernel:s0                  root           293     2       0      0 rescuer_t+          0 S [bioset]
u:r:kernel:s0                  root           294     2       0      0 rescuer_t+          0 S [bioset]
u:r:kernel:s0                  root           295     2       0      0 rescuer_t+          0 S [bioset]
u:r:kernel:s0                  root           296     2       0      0 rescuer_t+          0 S [bioset]
u:r:kernel:s0                  root           297     2       0      0 rescuer_t+          0 S [bioset]
u:r:kernel:s0                  root           298     2       0      0 rescuer_t+          0 S [bioset]
u:r:kernel:s0                  root           299     2       0      0 rescuer_t+          0 S [bioset]
u:r:kernel:s0                  root           300     2       0      0 rescuer_t+          0 S [bioset]
u:r:kernel:s0                  root           301     2       0      0 rescuer_t+          0 S [bioset]
u:r:kernel:s0                  root           302     2       0      0 rescuer_t+          0 S [bioset]
u:r:kernel:s0                  root           303     2       0      0 rescuer_t+          0 S [bioset]
u:r:kernel:s0                  root           304     2       0      0 rescuer_t+          0 S [bioset]
u:r:kernel:s0                  root           305     2       0      0 rescuer_t+          0 S [qcrypto_seq_res]
u:r:kernel:s0                  root           326     2       0      0 scsi_erro+          0 S [scsi_eh_0]
u:r:kernel:s0                  root           327     2       0      0 rescuer_t+          0 S [scsi_tmf_0]
u:r:kernel:s0                  root           328     2       0      0 rescuer_t+          0 S [ufs_pm_qos_0]
u:r:kernel:s0                  root           329     2       0      0 rescuer_t+          0 S [ufs_clk_gating_]
u:r:kernel:s0                  root           330     2       0      0 rescuer_t+          0 S [ufs_clkscaling_]
u:r:kernel:s0                  root           331     2       0      0 kthread_w+          0 S [spi10]
u:r:kernel:s0                  root           332     2       0      0 rescuer_t+          0 S [bond0]
u:r:kernel:s0                  root           333     2       0      0 rescuer_t+          0 S [sharedmem_qmi_w]
u:r:kernel:s0                  root           334     2       0      0 rescuer_t+          0 S [qmi_hndl0000000]
u:r:kernel:s0                  root           335     2       0      0 diag_sock+          0 S [kworker/u16:3]
u:r:kernel:s0                  root           339     2       0      0 rescuer_t+          0 S [uether]
u:r:kernel:s0                  root           340     2       0      0 rescuer_t+          0 S [k_ipa_usb]
u:r:kernel:s0                  root           345     2       0      0 rescuer_t+          0 S [tpd_probe_optim]
u:r:kernel:s0                  root           346     2       0      0 irq_thread          0 S [irq/285-gf_fp]
u:r:kernel:s0                  root           347     2       0      0 rescuer_t+          0 S [msm_cci_wq]
u:r:kernel:s0                  root           348     2       0      0 rescuer_t+          0 S [msm_cci_wq]
u:r:kernel:s0                  root           349     2       0      0 rescuer_t+          0 S [msm_cpp_workque]
u:r:kernel:s0                  root           350     2       0      0 0                   0 R [kworker/u17:0]
u:r:kernel:s0                  root           351     2       0      0 rescuer_t+          0 S [msm_vidc_worker]
u:r:kernel:s0                  root           352     2       0      0 rescuer_t+          0 S [pm_workerq_venu]
u:r:kernel:s0                  root           353     2       0      0 irq_thread          0 S [irq/122-arm-smm]
u:r:kernel:s0                  root           354     2       0      0 irq_thread          0 S [irq/123-arm-smm]
u:r:kernel:s0                  root           355     2       0      0 irq_thread          0 S [irq/124-arm-smm]
u:r:kernel:s0                  root           356     2       0      0 irq_thread          0 S [irq/125-arm-smm]
u:r:kernel:s0                  root           357     2       0      0 rescuer_t+          0 S [bioset]
u:r:kernel:s0                  root           358     2       0      0 kthread_w+          0 S [rot_commitq_0_0]
u:r:kernel:s0                  root           359     2       0      0 kthread_w+          0 S [rot_commitq_0_1]
u:r:kernel:s0                  root           360     2       0      0 rescuer_t+          0 S [bioset]
u:r:kernel:s0                  root           362     2       0      0 kthread_w+          0 S [rot_doneq_0_0]
u:r:kernel:s0                  root           363     2       0      0 kthread_w+          0 S [rot_doneq_0_1]
u:r:kernel:s0                  root           364     2       0      0 rescuer_t+          0 S [update_pre_capa]
u:r:kernel:s0                  root           365     2       0      0 rescuer_t+          0 S [bioset]
u:r:kernel:s0                  root           366     2       0      0 rescuer_t+          0 S [bioset]
u:r:kernel:s0                  root           367     2       0      0 rescuer_t+          0 S [bioset]
u:r:kernel:s0                  root           368     2       0      0 rescuer_t+          0 S [bioset]
u:r:kernel:s0                  root           369     2       0      0 rescuer_t+          0 S [bioset]
u:r:kernel:s0                  root           370     2       0      0 rescuer_t+          0 S [bioset]
u:r:kernel:s0                  root           371     2       0      0 rescuer_t+          0 S [bioset]
u:r:kernel:s0                  root           372     2       0      0 sensor_sy+          0 S [therm_core:noti]
u:r:kernel:s0                  root           374     2       0      0 irq_thread          0 S [irq/461-chg-err]
u:r:kernel:s0                  root           375     2       0      0 irq_thread          0 S [irq/462-chg-sta]
u:r:kernel:s0                  root           376     2       0      0 diag_sock+          0 S [kworker/u16:5]
u:r:kernel:s0                  root           377     2       0      0 diag_sock+          0 S [kworker/u16:6]
u:r:kernel:s0                  root           378     2       0      0 irq_thread          0 S [irq/466-otg-fai]
u:r:kernel:s0                  root           379     2       0      0 irq_thread          0 S [irq/467-otg-ove]
u:r:kernel:s0                  root           380     2       0      0 irq_thread          0 S [irq/468-otg-oc-]
u:r:kernel:s0                  root           381     2       0      0 irq_thread          0 S [irq/469-testmod]
u:r:kernel:s0                  root           382     2       0      0 irq_thread          0 S [irq/470-bat-tem]
u:r:kernel:s0                  root           383     2       0      0 irq_thread          0 S [irq/471-bat-ocp]
u:r:kernel:s0                  root           384     2       0      0 irq_thread          0 S [irq/472-bat-ov]
u:r:kernel:s0                  root           385     2       0      0 irq_thread          0 S [irq/473-bat-low]
u:r:kernel:s0                  root           388     2       0      0 irq_thread          0 S [irq/474-bat-the]
u:r:kernel:s0                  root           389     2       0      0 irq_thread          0 S [irq/475-bat-ter]
u:r:kernel:s0                  root           390     2       0      0 irq_thread          0 S [irq/476-usbin-c]
u:r:kernel:s0                  root           391     2       0      0 irq_thread          0 S [irq/477-usbin-l]
u:r:kernel:s0                  root           392     2       0      0 irq_thread          0 S [irq/478-usbin-u]
u:r:kernel:s0                  root           393     2       0      0 irq_thread          0 S [irq/479-usbin-o]
u:r:kernel:s0                  root           394     2       0      0 irq_thread          0 S [irq/480-usbin-p]
u:r:kernel:s0                  root           395     2       0      0 irq_thread          0 S [irq/481-usbin-s]
u:r:kernel:s0                  root           396     2       0      0 irq_thread          0 S [irq/482-usbin-i]
u:r:kernel:s0                  root           397     2       0      0 irq_thread          0 S [irq/483-type-c-]
u:r:kernel:s0                  root           398     2       0      0 irq_thread          0 S [irq/484-dcin-co]
u:r:kernel:s0                  root           399     2       0      0 diag_sock+          0 S [kworker/u16:9]
u:r:kernel:s0                  root           400     2       0      0 irq_thread          0 S [irq/485-dcin-lt]
u:r:kernel:s0                  root           401     2       0      0 irq_thread          0 S [irq/486-dcin-uv]
u:r:kernel:s0                  root           402     2       0      0 irq_thread          0 S [irq/487-dcin-ov]
u:r:kernel:s0                  root           403     2       0      0 irq_thread          0 S [irq/488-dcin-pl]
u:r:kernel:s0                  root           404     2       0      0 irq_thread          0 S [irq/489-div2-en]
u:r:kernel:s0                  root           405     2       0      0 irq_thread          0 S [irq/490-dcin-ic]
u:r:kernel:s0                  root           406     2       0      0 irq_thread          0 S [irq/492-wdog-ba]
u:r:kernel:s0                  root           407     2       0      0 irq_thread          0 S [irq/493-aicl-fa]
u:r:kernel:s0                  root           408     2       0      0 irq_thread          0 S [irq/494-aicl-do]
u:r:kernel:s0                  root           410     2       0      0 irq_thread          0 S [irq/495-high-du]
u:r:kernel:s0                  root           411     2       0      0 irq_thread          0 S [irq/496-input-c]
u:r:kernel:s0                  root           414     2       0      0 irq_thread          0 S [irq/497-tempera]
u:r:kernel:s0                  root           416     2       0      0 irq_thread          0 S [irq/498-switche]
u:r:kernel:s0                  root           417     2       0      0 irq_thread          0 S [irq/38-ptrain-d]
u:r:kernel:s0                  root           418     2       0      0 sensor_sy+          0 S [therm_core:noti]
u:r:kernel:s0                  root           420     2       0      0 sensor_sy+          0 S [therm_core:noti]
u:r:kernel:s0                  root           421     2       0      0 sensor_sy+          0 S [therm_core:noti]
u:r:kernel:s0                  root           422     2       0      0 sensor_sy+          0 S [therm_core:noti]
u:r:kernel:s0                  root           423     2       0      0 sensor_sy+          0 S [therm_core:noti]
u:r:kernel:s0                  root           424     2       0      0 sensor_sy+          0 S [therm_core:noti]
u:r:kernel:s0                  root           425     2       0      0 sensor_sy+          0 S [therm_core:noti]
u:r:kernel:s0                  root           426     2       0      0 sensor_sy+          0 S [therm_core:noti]
u:r:kernel:s0                  root           427     2       0      0 sensor_sy+          0 S [therm_core:noti]
u:r:kernel:s0                  root           428     2       0      0 sensor_sy+          0 S [therm_core:noti]
u:r:kernel:s0                  root           429     2       0      0 sensor_sy+          0 S [therm_core:noti]
u:r:kernel:s0                  root           430     2       0      0 sensor_sy+          0 S [therm_core:noti]
u:r:kernel:s0                  root           431     2       0      0 sensor_sy+          0 S [therm_core:noti]
u:r:kernel:s0                  root           432     2       0      0 sensor_sy+          0 S [therm_core:noti]
u:r:kernel:s0                  root           433     2       0      0 sensor_sy+          0 S [therm_core:noti]
u:r:kernel:s0                  root           434     2       0      0 sensor_sy+          0 S [therm_core:noti]
u:r:kernel:s0                  root           435     2       0      0 sensor_sy+          0 S [therm_core:noti]
u:r:kernel:s0                  root           436     2       0      0 sensor_sy+          0 S [therm_core:noti]
u:r:kernel:s0                  root           437     2       0      0 sensor_sy+          0 S [therm_core:noti]
u:r:kernel:s0                  root           438     2       0      0 sensor_sy+          0 S [therm_core:noti]
u:r:kernel:s0                  root           439     2       0      0 sensor_sy+          0 S [therm_core:noti]
u:r:kernel:s0                  root           440     2       0      0 irq_thread          0 S [irq/63-tsens_in]
u:r:kernel:s0                  root           441     2       0      0 irq_thread          0 S [irq/64-tsens_cr]
u:r:kernel:s0                  root           442     2       0      0 sensor_sy+          0 S [therm_core:noti]
u:r:kernel:s0                  root           443     2       0      0 sensor_sy+          0 S [therm_core:noti]
u:r:kernel:s0                  root           444     2       0      0 sensor_sy+          0 S [therm_core:noti]
u:r:kernel:s0                  root           445     2       0      0 sensor_sy+          0 S [therm_core:noti]
u:r:kernel:s0                  root           446     2       0      0 sensor_sy+          0 S [therm_core:noti]
u:r:kernel:s0                  root           447     2       0      0 sensor_sy+          0 S [therm_core:noti]
u:r:kernel:s0                  root           448     2       0      0 sensor_sy+          0 S [therm_core:noti]
u:r:kernel:s0                  root           449     2       0      0 sensor_sy+          0 S [therm_core:noti]
u:r:kernel:s0                  root           450     2       0      0 irq_thread          0 S [irq/65-tsens_in]
u:r:kernel:s0                  root           451     2       0      0 irq_thread          0 S [irq/66-tsens_cr]
u:r:kernel:s0                  root           452     2       0      0 sensor_sy+          0 S [therm_core:noti]
u:r:kernel:s0                  root           453     2       0      0 irq_thread          0 S [irq/326-limits_]
u:r:kernel:s0                  root           454     2       0      0 sensor_sy+          0 S [therm_core:noti]
u:r:kernel:s0                  root           455     2       0      0 irq_thread          0 S [irq/327-limits_]
u:r:kernel:s0                  root           456     2       0      0 rescuer_t+          0 S [dm_bufio_cache]
u:r:kernel:s0                  root           457     2       0      0 cpufreq_i+          0 S [cfinteractive]
u:r:kernel:s0                  root           458     2       0      0 irq_thread          0 S [irq/26-qpnp_wle]
u:r:kernel:s0                  root           459     2       0      0 irq_thread          0 S [irq/27-qpnp_wle]
u:r:kernel:s0                  root           460     2       0      0 irq_thread          0 S [irq/161-spdm_bw]
u:r:kernel:s0                  root           461     2       0      0 rescuer_t+          0 S [binder]
u:r:kernel:s0                  root           462     2       0      0 rescuer_t+          0 S [oem_key_dump]
u:r:kernel:s0                  root           463     2       0      0 irq_thread          0 S [irq/108-arm-smm]
u:r:kernel:s0                  root           464     2       0      0 rescuer_t+          0 S [uaudio_svc]
u:r:kernel:s0                  root           465     2       0      0 rescuer_t+          0 S [qmi_hndl0000000]
u:r:kernel:s0                  root           466     2       0      0 rescuer_t+          0 S [ipv6_addrconf]
u:r:kernel:s0                  root           467     2       0      0 irq_thread          0 S [irq/533-adsp]
u:r:kernel:s0                  root           468     2       0      0 rescuer_t+          0 S [sysmon_wq]
u:r:kernel:s0                  root           469     2       0      0 irq_thread          0 S [irq/565-slpi]
u:r:kernel:s0                  root           470     2       0      0 irq_thread          0 S [irq/501-modem]
u:r:kernel:s0                  root           476     2       0      0 irq_thread          0 S [irq/19-sig-tx]
u:r:kernel:s0                  root           477     2       0      0 irq_thread          0 S [irq/20-sig-rx]
u:r:kernel:s0                  root           478     2       0      0 irq_thread          0 S [irq/22-msg-rx]
u:r:kernel:s0                  root           479     2       0      0 sensor_sy+          0 S [therm_core:noti]
u:r:kernel:s0                  root           480     2       0      0 irq_thread          0 S [irq/693-soc-upd]
u:r:kernel:s0                  root           481     2       0      0 irq_thread          0 S [irq/694-soc-rea]
u:r:kernel:s0                  root           482     2       0      0 irq_thread          0 S [irq/695-bsoc-de]
u:r:kernel:s0                  root           483     2       0      0 irq_thread          0 S [irq/696-msoc-de]
u:r:kernel:s0                  root           484     2       0      0 irq_thread          0 S [irq/697-msoc-lo]
u:r:kernel:s0                  root           485     2       0      0 irq_thread          0 S [irq/698-msoc-em]
u:r:kernel:s0                  root           486     2       0      0 irq_thread          0 S [irq/699-msoc-hi]
u:r:kernel:s0                  root           487     2       0      0 irq_thread          0 S [irq/700-msoc-fu]
u:r:kernel:s0                  root           488     2       0      0 irq_thread          0 S [irq/701-vbatt-p]
u:r:kernel:s0                  root           489     2       0      0 irq_thread          0 S [irq/702-vbatt-l]
u:r:kernel:s0                  root           490     2       0      0 irq_thread          0 S [irq/703-esr-del]
u:r:kernel:s0                  root           491     2       0      0 irq_thread          0 S [irq/704-batt-mi]
u:r:kernel:s0                  root           492     2       0      0 irq_thread          0 S [irq/705-batt-te]
u:r:kernel:s0                  root           493     2       0      0 irq_thread          0 S [irq/706-ima-rdy]
u:r:kernel:s0                  root           494     2       0      0 irq_thread          0 S [irq/707-mem-xcp]
u:r:kernel:s0                  root           495     2       0      0 irq_thread          0 S [irq/708-dma-gra]
u:r:kernel:s0                  root           496     2       0      0 irq_thread          0 S [irq/56-hs_phy_i]
u:r:kernel:s0                  root           497     2       0      0 irq_thread          0 S [irq/57-ss_phy_i]
u:r:kernel:s0                  root           498     2       0      0 irq_thread          0 S [irq/58-msm_dwc3]
u:r:kernel:s0                  root           499     2       0      0 rescuer_t+          0 S [usb_bam_wq]
u:r:kernel:s0                  root           500     2       0      0 try_core_+          0 S [core_ctl/0]
u:r:kernel:s0                  root           501     2       0      0 try_core_+          0 S [core_ctl/4]
u:r:kernel:s0                  root           510     2       0      0 events_no+          0 S [msm_perf:events]
u:r:kernel:s0                  root           511     2       0      0 rescuer_t+          0 S [rq_stats]
u:r:kernel:s0                  root           512     2       0      0 irq_thread          0 S [irq/109-arm-smm]
u:r:kernel:s0                  root           513     2       0      0 irq_thread          0 S [irq/110-arm-smm]
u:r:kernel:s0                  root           514     2       0      0 irq_thread          0 S [irq/111-arm-smm]
u:r:kernel:s0                  root           515     2       0      0 irq_thread          0 S [irq/112-arm-smm]
u:r:kernel:s0                  root           516     2       0      0 irq_thread          0 S [irq/113-arm-smm]
u:r:kernel:s0                  root           517     2       0      0 irq_thread          0 S [irq/114-arm-smm]
u:r:kernel:s0                  root           518     2       0      0 irq_thread          0 S [irq/115-arm-smm]
u:r:kernel:s0                  root           519     2       0      0 irq_thread          0 S [irq/116-arm-smm]
u:r:kernel:s0                  root           521     2       0      0 rescuer_t+          0 S [sb-1]
u:r:kernel:s0                  root           522     2       0      0 ngd_slim_+          0 S [ngd_rx_thread1]
u:r:kernel:s0                  root           523     2       0      0 ngd_notif+          0 S [ngd_notify_sl1]
u:r:kernel:s0                  root           524     2       0      0 rescuer_t+          0 S [sb-3]
u:r:kernel:s0                  root           525     2       0      0 ngd_slim_+          0 S [ngd_rx_thread3]
u:r:kernel:s0                  root           526     2       0      0 ngd_notif+          0 S [ngd_notify_sl3]
u:r:kernel:s0                  root           527     2       0      0 do_sampli+          0 D [msm-core:sampli]
u:r:kernel:s0                  root           529     2       0      0 worker_th+          0 S [kworker/5:1H]
u:r:kernel:s0                  root           530     2       0      0 sensor_sy+          0 S [therm_core:noti]
u:r:kernel:s0                  root           531     2       0      0 sensor_sy+          0 S [therm_core:noti]
u:r:kernel:s0                  root           532     2       0      0 sensor_sy+          0 S [therm_core:noti]
u:r:kernel:s0                  root           533     2       0      0 irq_thread          0 S [irq/68-lmh-inte]
u:r:kernel:s0                  root           534     2       0      0 irq_thread          0 S [irq/32-qpnp_fla]
u:r:kernel:s0                  root           535     2       0      0 irq_thread          0 S [irq/31-qpnp_fla]
u:r:kernel:s0                  root           536     2       0      0 irq_thread          0 S [irq/30-qpnp_fla]
u:r:su:s0                      root           538     1   18476   4848 unix_stre+     46020c S magiskinit
u:r:kernel:s0                  root           539     2       0      0 rescuer_t+          0 S [synaptics_wq]
u:r:kernel:s0                  root           540     2       0      0 rescuer_t+          0 S [get_base_report]
u:r:kernel:s0                  root           541     2       0      0 worker_th+          0 S [kworker/6:1H]
u:r:kernel:s0                  root           542     2       0      0 kjournald2          0 S [jbd2/sde21-8]
u:r:kernel:s0                  root           543     2       0      0 rescuer_t+          0 S [ext4-rsv-conver]
u:r:ueventd:s0                 root           545     1    6108   2212 poll_sche+     4f1e88 S ueventd
u:r:untrusted_app_25:s0:c512,+ u0_a163        546   700 1753096  34772 SyS_epoll+   f4e11880 S embryo
u:r:kernel:s0                  root           547     2       0      0 irq_thread          0 S [irq/289-synapti]
u:r:kernel:s0                  root           557     2       0      0 worker_th+          0 S [kworker/u17:1]
u:r:kernel:s0                  root           561     2       0      0 worker_th+          0 S [kworker/4:1H]
u:r:kernel:s0                  root           565     2       0      0 worker_th+          0 S [kworker/7:1H]
u:r:untrusted_app_25:s0:c512,+ u0_a98         566   700 2222620 193988 SyS_epoll+   f4e11880 S com.sohu.sohuvideo
u:r:kernel:s0                  root           571     2       0      0 kjournald2          0 S [jbd2/sda13-8]
u:r:kernel:s0                  root           572     2       0      0 rescuer_t+          0 S [ext4-rsv-conver]
u:r:kernel:s0                  root           573     2       0      0 kjournald2          0 S [jbd2/sde11-8]
u:r:kernel:s0                  root           574     2       0      0 rescuer_t+          0 S [ext4-rsv-conver]
u:r:kernel:s0                  root           578     2       0      0 kjournald2          0 S [jbd2/sda2-8]
u:r:kernel:s0                  root           579     2       0      0 rescuer_t+          0 S [ext4-rsv-conver]
u:r:kernel:s0                  root           583     2       0      0 kjournald2          0 S [jbd2/sda3-8]
u:r:kernel:s0                  root           584     2       0      0 rescuer_t+          0 S [ext4-rsv-conver]
u:r:logd:s0                    logd           586     1   57408  35364 sigsuspend 7bb2781574 S logd
u:r:servicemanager:s0          system         587     1   10696   2344 binder_th+ 7c33c9249c S servicemanager
u:r:hwservicemanager:s0        system         588     1   14540   3552 SyS_epoll+ 77609453ac S hwservicemanager
u:r:vndservicemanager:s0       system         589     1   10512   2204 binder_th+ 70bcc3949c S vndservicemanager
u:r:kernel:s0                  root           594     2       0      0 kauditd_t+          0 S [kauditd]
u:r:untrusted_app:s0:c743,c771 u999_a135      598   700 1730904  30316 SyS_epoll+   f4e11880 S embryo
u:r:su:s0                      root           602     1   25504   2372 __skb_rec+ 79b42f734c S magisk_daemon
u:r:su:s0                      root           605   602    9488   1916 __skb_rec+ 70c3a6cf7c S logcat
u:r:kernel:s0                  root           611     2       0      0 rescuer_t+          0 S [lpass_IPCRTR]
u:r:kernel:s0                  root           612     2       0      0 rescuer_t+          0 S [qmi_hndl0000000]
u:r:tee:s0                     system         615     1   13020   2460 do_wait    76339ee504 S qseecomd
u:r:kernel:s0                  root           618     2       0      0 kthread_w+          0 S [msm_slim_qmi_cl]
u:r:kernel:s0                  root           619     2       0      0 kthread_w+          0 S [msm_slim_qmi_cl]
u:r:kernel:s0                  root           620     2       0      0 rescuer_t+          0 S [qmi_hndl0000000]
u:r:kernel:s0                  root           621     2       0      0 rescuer_t+          0 S [qmi_hndl0000000]
u:r:tee:s0                     system         623   615   27320   1704 sigsuspend 76339ed574 S qseecomd
u:r:kernel:s0                  root           633     2       0      0 irq_thread          0 S [irq/218-wcd9xxx]
u:r:kernel:s0                  root           634     2       0      0 irq_thread          0 S [irq/117-arm-smm]
u:r:kernel:s0                  root           640     2       0      0 rescuer_t+          0 S [ipawq15]
u:r:kernel:s0                  root           641     2       0      0 rescuer_t+          0 S [iparepwq15]
u:r:hal_keymaster_default:s0   system         642     1   14220   3232 binder_th+ 7b6768349c S android.hardware.keymaster@3.0-service
u:r:vold:s0                    root           644     1   22528   3632 sigsuspend 7136cf0574 S vold
u:r:kernel:s0                  root           645     2       0      0 rescuer_t+          0 S [ipawq48]
u:r:kernel:s0                  root           646     2       0      0 rescuer_t+          0 S [iparepwq48]
u:r:kernel:s0                  root           648     2       0      0 rescuer_t+          0 S [ipawq13]
u:r:kernel:s0                  root           649     2       0      0 rescuer_t+          0 S [iparepwq13]
u:r:kernel:s0                  root           650     2       0      0 rescuer_t+          0 S [ipa_A7_svc]
u:r:kernel:s0                  root           651     2       0      0 rescuer_t+          0 S [qmi_hndl0000000]
u:r:kernel:s0                  root           652     2       0      0 rescuer_t+          0 S [clnt_req]
u:r:kernel:s0                  root           653     2       0      0 rescuer_t+          0 S [clnt_resp]
u:r:kernel:s0                  root           654     2       0      0 rescuer_t+          0 S [clnt_req]
u:r:kernel:s0                  root           658     2       0      0 worker_th+          0 S [kworker/0:1H]
u:r:kernel:s0                  root           676     2       0      0 rescuer_t+          0 S [tfa98xx]
u:r:kernel:s0                  root           688     2       0      0 kthread_w+          0 S [loop0]
u:r:kernel:s0                  root           689     2       0      0 kjournald2          0 S [jbd2/loop0-8]
u:r:kernel:s0                  root           690     2       0      0 rescuer_t+          0 S [ext4-rsv-conver]
u:r:netd:s0                    root           698     1   40332   4300 binder_th+ 73bb83d49c S netd
u:r:zygote:s0                  root           699     1 4276736  38528 poll_sche+ 78817c54cc S zygote64
u:r:zygote:s0                  root           700     1 1610832  41388 poll_sche+   f4e11a58 S zygote
u:r:netd:s0                    root           701   698    9696   1932 pipe_wait  6fc423ef1c S iptables-restore
u:r:netd:s0                    root           702   698    9716   1948 pipe_wait  7853380f1c S ip6tables-restore
u:r:untrusted_app_25:s0:c743,+ u999_a106      723   700 1724448  30180 SyS_epoll+   f4e11880 S embryo
u:r:untrusted_app:s0:c512,c768 u0_a109        750   699 2161052   4708 binder_th+ 78817c549c S xposed_service_app
u:r:untrusted_app:s0:c512,c768 u0_a109        753   699 2154988   4628 pipe_wait  78817c5f1c S xposed_logcat
u:r:untrusted_app_25:s0:c512,+ u0_a98         756   700 1773588  56600 SyS_epoll+   f4e11880 S com.sohu.sohuvideo:sohunews
u:r:untrusted_app:s0:c512,c768 u0_a109        757   753    9460   1780 __skb_rec+ 751aad0f7c S logcat
u:r:kernel:s0                  root           766     2       0      0 rescuer_t+          0 S [dsps_IPCRTR]
u:r:kernel:s0                  root           768     2       0      0 rescuer_t+          0 S [qmi_hndl0000000]
u:r:untrusted_app_25:s0:c743,+ u999_a87       773   700 1763268  40620 SyS_epoll+   f4e11880 S embryo
u:r:hal_allocator_default:s0   system         796     1   12200   2488 binder_th+ 722ba4f49c S android.hidl.allocator@1.0-service
u:r:hal_audio_default:s0       audioserver    797     1   34828   9528 binder_th+   ef11a9c0 S android.hardware.audio@2.0-service
u:r:hal_bluetooth_qti:s0       bluetooth      798     1   14732   2680 binder_th+ 779d27c49c S android.hardware.bluetooth@1.0-service-qti
u:r:hal_camera_default:s0      cameraserver   799     1  348536 100980 binder_th+   ec89b9c0 S android.hardware.camera.provider@2.4-service
u:r:hal_cas_default:s0         media          800     1    8156   1840 binder_th+   e9f5a9c0 S android.hardware.cas@1.0-service
u:r:hal_configstore_default:s0 system         801     1   16536   2544 binder_th+ 743f5b149c S android.hardware.configstore@1.0-service
u:r:hal_drm_default:s0         media          802     1   16464   2876 binder_th+   ea4a89c0 S android.hardware.drm@1.0-service
u:r:hal_drm_widevine:s0        media          803     1   19284   4532 binder_th+   eaf279c0 S android.hardware.drm@1.0-service.widevine
u:r:hal_gatekeeper_default:s0  system         804     1   12484   2408 binder_th+ 752be4049c S android.hardware.gatekeeper@1.0-service
u:r:hal_graphics_allocator_de+ system         805     1   19428   2848 binder_th+ 789234249c S android.hardware.graphics.allocator@2.0-service
u:r:hal_graphics_composer_def+ system         806     1   35600   6568 binder_th+ 77443c049c S android.hardware.graphics.composer@2.1-service
u:r:hal_health_default:s0      system         807     1   12252   2496 binder_th+ 7adf83749c S android.hardware.health@1.0-service
u:r:hal_light_default:s0       system         808     1   12996   2648 binder_th+ 77dba6d49c S android.hardware.light@2.0-service
u:r:hal_memtrack_default:s0    system         809     1   12260   2508 binder_th+ 7b1801349c S android.hardware.memtrack@1.0-service
u:r:hal_power_default:s0       system         810     1   15336   2748 binder_th+ 789b87f49c S android.hardware.power@1.0-service
u:r:hal_sensors_default:s0     system         811     1  106896   3600 binder_th+ 7987a7d49c S android.hardware.sensors@1.0-service
u:r:hal_thermal_default:s0     system         812     1   12280   2416 binder_th+ 7011dcf49c S android.hardware.thermal@1.0-service
u:r:hal_usb_default:s0         root           813     1   15404   2520 binder_th+ 74d0a4649c S android.hardware.usb@1.0-service
u:r:hal_vibrator_default:s0    system         814     1   12268   2496 binder_th+ 700277d49c S android.hardware.vibrator@1.0-service
u:r:hal_vr_default:s0          system         815     1   12276   2476 binder_th+ 7f7d23b49c S android.hardware.vr@1.0-service
u:r:hal_wifi_default:s0        wifi           816     1   17688   3280 binder_th+ 7ac7a4749c S android.hardware.wifi@1.0-service
u:r:hal_display_color_default+ system         817     1   15276   2544 binder_th+ 7871bd049c S vendor.display.color@1.0-service
u:r:hal_nfc_default:s0         nfc            818     1   12664   2516 binder_th+ 740c63e49c S vendor.nxp.nxpnfc@1.0-service
u:r:hal_wifi_default:s0        wifi           819     1   13616   2536 binder_th+ 7834c9249c S vendor.oneplus.hardware.wifi@1.0-service
u:r:hal_esepowermanager_qti:s0 system         820     1   12316   2444 binder_th+ 78788b649c S vendor.qti.esepowermanager@1.0-service
u:r:hal_gnss_qti:s0            gps            821     1   50600   5612 binder_th+ 71ddf8449c S vendor.qti.gnss@1.0-service
u:r:hal_perf_default:s0        root           822     1   23124   3020 binder_th+ 746c23f49c S vendor.qti.hardware.perf@1.0-service
u:r:hal_qdutils_disp_qti:s0    system         823     1   16940   2948 binder_th+ 701c88d49c S vendor.qti.hardware.qdutils_disp@1.0-service-qti
u:r:hal_qteeconnector_qti:s0   system         824     1   15436   2592 binder_th+ 77a96c149c S vendor.qti.hardware.qteeconnector@1.0-service
u:r:hal_tui_comm_qti:s0        system         825     1   12864   2504 binder_th+ 7c0c5aa49c S vendor.qti.hardware.tui_comm@1.0-service-qti
u:r:healthd:s0                 root           826     1   14604   2656 SyS_epoll+ 7b6f2b13ac S healthd
u:r:dashd:s0                   root           827     1    5820    172 SyS_epoll+     414a70 S dashd
u:r:rmt_storage:s0             nobody         830     1   20836   2016 poll_sche+ 7c62d4f4e4 S rmt_storage
u:r:rfs_access:s0              system         831     1   12404   2032 poll_sche+ 78c42f14cc S tftp_server
u:r:OPNetlinkService:s0        root           833     1    5428    184 __skb_rec+     43eb04 S OPNetlinkService
u:r:smartadjust:s0             root           834     1   10724   3276 SyS_epoll+ 7664bb13ac S smartadjust
u:r:faceulnative:s0            system         835     1   15964   1992 binder_th+ 7391fc649c S OPFaceUnlockDaemon
u:r:opdiagnose:s0              system         836     1   18304   2292 binder_th+ 7aa4baf49c S OPDiagnoseservice
u:r:logserver:s0               root           837     1   16808   1752 __skb_rec+ 7553a0034c S oemlogkit
u:r:per_mgr:s0                 system         838     1   27512   2152 do_sigtim+ 77f464758c S pm-service
u:r:pd_mapper:s0               system         839     1   15304   2028 hrtimer_n+ 7dfe636dfc S pd-mapper
u:r:lmkd:s0                    root           840     1    9432   1980 SyS_epoll+ 70830bb3ac S lmkd
u:r:surfaceflinger:s0          system         841     1   70192  15596 SyS_epoll+ 7e76e053ac S surfaceflinger
u:r:thermalserviced:s0         root           842     1   15032   2536 binder_th+ 752697a49c S thermalserviced
u:r:logserver:s0               root           847   837    9460   1960 __skb_rec+ 73bce46f7c S logcat
u:r:logserver:s0               root           848   837   11508   1928 __skb_rec+ 779ca91f7c S logcat
u:r:logserver:s0               root           849   837    9484   2256 __skb_rec+ 753263ff7c S logcat
u:r:kernel:s0                  root           867     2       0      0 worker_th+          0 S [kworker/2:1H]
u:r:kernel:s0                  root           868     2       0      0 rescuer_t+          0 S [qmi_hndl0000000]
u:r:kernel:s0                  root           870     2       0      0 rescuer_t+          0 S [modem]
u:r:kernel:s0                  root           871     2       0      0 rescuer_t+          0 S [adsp]
u:r:kernel:s0                  root           874     2       0      0 rescuer_t+          0 S [qmi_hndl0000000]
u:r:kernel:s0                  root           888     2       0      0 rescuer_t+          0 S [f_mtp]
u:r:kernel:s0                  root           889     2       0      0 rescuer_t+          0 S [f_mtp_qos]
u:r:kernel:s0                  root           891     2       0      0 rescuer_t+          0 S [at_usb0]
u:r:kernel:s0                  root           898     2       0      0 rescuer_t+          0 S [at_usb1]
u:r:kernel:s0                  root           901     2       0      0 worker_th+          0 S [kworker/1:1H]
u:r:kernel:s0                  root           902     2       0      0 rescuer_t+          0 S [at_usb2]
u:r:kernel:s0                  root           905     2       0      0 rescuer_t+          0 S [qdss]
u:r:kernel:s0                  root           908     2       0      0 rescuer_t+          0 S [qdss_mdm]
u:r:sensors:s0                 nobody         911     1   26348   2444 futex_wai+ 726ca7fc70 S sensors.qcom
u:r:kernel:s0                  root           912     2       0      0 irq_thread          0 S [irq/141-arm-smm]
u:r:kernel:s0                  root           914     2       0      0 irq_thread          0 S [irq/142-arm-smm]
u:r:atfwd:s0                   system         916     1   18812   2384 futex_wai+ 79fbc43c70 S ATFWD-daemon
u:r:adbd:s0                    shell          917     1   15120   1244 0              4c53b4 R adbd
u:r:per_mgr:s0                 system         918     1   18060   1872 hrtimer_n+ 7695834dfc S pm-proxy
u:r:mm-pp-daemon:s0            system         919     1   19924   2844 poll_sche+ 78d617c4cc S mm-pp-dpps
u:r:cnd:s0                     system         927     1 2172572   8976 SyS_epoll+ 767703f3ac S cnd
u:r:hal_dpmQmiMgr:s0           system         928     1   21388   3248 SyS_epoll+ 7a450523ac S dpmQmiMgr
u:r:time_daemon:s0             system         929     1   20816   2368 futex_wai+ 73a5edfc70 S time_daemon
u:r:thermal-engine:s0          root           930     1   90688   3540 sigsuspend 755bc3d574 S thermal-engine
u:r:adsprpcd:s0                media          931     1   13460   1712 poll_sche+ 7871f8a4cc S adsprpcd
u:r:ims:s0                     system         932     1   16520   2396 poll_sche+ 70543444e4 S imsqmidaemon
u:r:hvdcp:s0                   root           934     1   10012   1864 SyS_epoll+ 7d6f3d13ac S hvdcp_opti
u:r:audioserver:s0             audioserver    935     1   67204   9372 binder_th+   f2a189c0 S audioserver
u:r:cameraserver:s0            cameraserver   936     1   37256   5988 binder_th+   f149f9c0 S cameraserver
u:r:drmserver:s0               drm            937     1   25200   4328 binder_th+   f6e5d9c0 S drmserver
u:r:installd:s0                root           938     1   25104   3948 binder_th+ 7c8444049c S installd
u:r:keystore:s0                keystore       939     1   20928   3632 binder_th+ 7f7e4cf49c S keystore
u:r:mediadrmserver:s0          media          941     1   19088   3076 binder_th+   e7b129c0 S mediadrmserver
u:r:mediaextractor:s0          mediaex        942     1 2181460   9804 binder_th+ 777abf749c S media.extractor
u:r:mediametrics:s0            media          952     1 2139764   7036 binder_th+ 744674149c S media.metrics
u:r:mediaserver:s0             media          953     1  125600   7824 binder_th+   edb229c0 S mediaserver
u:r:storaged:s0                root           954     1   17288   3008 binder_th+ 772eab449c S storaged
u:r:wificond:s0                wifi           955     1   41320   3668 SyS_epoll+ 74afe083ac S wificond
u:r:mediacodec:s0              mediacodec     956     1   97904  11464 binder_th+   ebb9c9c0 S media.codec
u:r:rild:s0                    radio          957     1   99252   9756 binder_th+ 72ed4f349c S rild
u:r:wcnss_service:s0           system         959     1   26244   3268 poll_sche+ 7edd5374cc S cnss-daemon
u:r:mlid:s0                    gps            960     1   10548   1736 hrtimer_n+ 748e211dfc S mlid
u:r:location:s0                gps            961     1   13580   2244 sigsuspend 74b13d0574 S loc_launcher
u:r:qvop-daemon:s0             system         964     1 2155636   6724 sigsuspend 7552847574 S qvop-daemon
u:r:ifaadaemon:s0              system         967     1   12828   2116 binder_th+ 7ca11f349c S ifaadaemon
u:r:qvrd:s0                    system         968     1   10212   2256 hrtimer_n+   eee60760 S qvrservice
u:r:dpmd:s0                    root           969     1   13212   2492 unix_stre+ 7b156cef1c S dpmd
u:r:gatekeeperd:s0             system         970     1   16652   2880 binder_th+ 78e788f49c S gatekeeperd
u:r:kernel:s0                  root          1049     2       0      0 do_hotplug          0 S [msm_thermal:hot]
u:r:location:s0                gps           1061   961   23608   2816 futex_wai+ 7b9ccabc70 S lowi-server
u:r:location:s0                gps           1062   961   34196   3952 poll_sche+ 78dd3aa4cc S slim_daemon
u:r:location:s0                gps           1063   961   27556   4368 __skb_rec+ 7780a2a34c S xtra-daemon
u:r:kernel:s0                  root          1066     2       0      0 do_freq_m+          0 S [msm_thermal:fre]
u:r:tombstoned:s0              tombstoned    1070     1    9272   1608 SyS_epoll+ 7d1ce4e3ac S tombstoned
u:r:hal_fingerprint_default:s0 system        1071     1   20812   2896 binder_th+ 78fcbb749c S android.hardware.biometrics.fingerprint@2.1-service
u:r:kernel:s0                  root          1078     2       0      0 do_therma+          0 S [msm_thermal:the]
u:r:kernel:s0                  root          1085     2       0      0 worker_th+          0 S [kworker/3:1H]
u:r:dpmd:s0                    system        1102   969   19708   2116 SyS_epoll+ 7b156ce3ac S dpmd
u:r:untrusted_app_25:s0:c512,+ u0_a87        1126   700 1763268  40652 SyS_epoll+   f4e11880 S embryo
u:r:msm_irqbalanced:s0         root          1255     1   10216   1988 poll_sche+ 79749c64cc S msm_irqbalance
u:r:ipacm-diag:s0              radio         1266     1   11572   1764 poll_sche+ 71735af4e4 S ipacm-diag
u:r:untrusted_app_25:s0:c743,+ u999_a80      1273   700 1761780  40752 SyS_epoll+   f4e11880 S embryo
u:r:ipacm:s0                   radio         1276     1   22268   3028 futex_wai+ 7dfc735c70 S ipacm
u:r:rild:s0                    radio         1283     1   91904   8872 binder_th+ 77b134c49c S rild
u:r:qti:s0                     radio         1286     1   19260   2188 poll_sche+ 791ffc64e4 S qti
u:r:netmgrd:s0                 radio         1293     1  109184   5484 __skb_rec+ 75f364a34c S netmgrd
u:r:untrusted_app_25:s0:c512,+ u0_a80        1297   700 2197792 176264 SyS_epoll+   f4e11880 S me.dingtone.app.im
u:r:port-bridge:s0             root          1298     1   13308   1744 futex_wai+ 7e02483c70 S port-bridge
u:r:untrusted_app_25:s0:c512,+ u0_a137       1322   700 2281316 225416 SyS_epoll+   f4e11880 S org.mozilla.firefox
u:r:kernel:s0                  root          1367     2       0      0 irq_thread          0 S [irq/121-arm-smm]
u:r:kernel:s0                  root          1368     2       0      0 irq_thread          0 S [irq/126-arm-smm]
u:r:kernel:s0                  root          1401     2       0      0 rescuer_t+          0 S [mpss_IPCRTR]
u:r:kernel:s0                  root          1416     2       0      0 diag_sock+          0 S [kworker/u16:10]
u:r:untrusted_app:s0:c512,c768 u0_a156       1417   700 1717040  27400 SyS_epoll+   f4e11880 S embryo
u:r:kernel:s0                  root          1427     2       0      0 rescuer_t+          0 S [qmi_hndl0000000]
u:r:kernel:s0                  root          1428     2       0      0 rescuer_t+          0 S [qmi_hndl0000000]
u:r:kernel:s0                  root          1433     2       0      0 diag_sock+          0 S [kworker/u16:12]
u:r:system_server:s0           system        1442   699 4824920 307108 SyS_epoll+ 78817c53ac S system_server
u:r:kernel:s0                  root          1447     2       0      0 diag_sock+          0 S [kworker/u16:13]
u:r:kernel:s0                  root          1450     2       0      0 rescuer_t+          0 S [qmi_hndl0000000]
u:r:untrusted_app:s0:c512,c768 u0_a161       1463   700 1726284  29108 SyS_epoll+   f4e11880 S embryo
u:r:kernel:s0                  root          1539     2       0      0 rescuer_t+          0 S [qmi_hndl0000000]
u:r:isolated_app:s0:c512,c768  u0_i47        1569  2622 1587540  36152 SyS_epoll+   e8fe3880 S com.google.android.webview:s
u:r:kernel:s0                  root          1579     2       0      0 rescuer_t+          0 S [ipawq14]
u:r:kernel:s0                  root          1580     2       0      0 rescuer_t+          0 S [iparepwq14]
u:r:kernel:s0                  root          1581     2       0      0 rescuer_t+          0 S [ipawq49]
u:r:kernel:s0                  root          1582     2       0      0 rescuer_t+          0 S [iparepwq49]
u:r:untrusted_app_25:s0:c512,+ u0_a98        1669   700 1742412  54176 SyS_epoll+   f4e11880 S com.sohu.sohuvideo:thirdparty
u:r:untrusted_app_25:s0:c512,+ u0_a98        1947   700 1761164  50340 SyS_epoll+   f4e11880 S com.sohu.sohuvideo:channel
u:r:untrusted_app:s0:c512,c768 root          2367   700   37140   2572 futex_wai+   f4de1050 S xposed_zygote_service
u:r:kernel:s0                  root          2538     2       0      0 rescuer_t+          0 S [cds_recovery_wo]
u:r:kernel:s0                  root          2539     2       0      0 wlan_logg+          0 S [wlan_logging_th]
u:r:kernel:s0                  root          2542     2       0      0 cds_mc_th+          0 S [cds_mc_thread]
u:r:kernel:s0                  root          2543     2       0      0 cds_ol_rx+          0 S [cds_ol_rx_threa]
u:r:kernel:s0                  root          2544     2       0      0 rescuer_t+          0 S [wmi_rx_event_wo]
u:r:kernel:s0                  root          2546     2       0      0 rescuer_t+          0 S [ipawq35]
u:r:kernel:s0                  root          2547     2       0      0 rescuer_t+          0 S [iparepwq35]
u:r:kernel:s0                  root          2548     2       0      0 rescuer_t+          0 S [ipawq38]
u:r:kernel:s0                  root          2549     2       0      0 rescuer_t+          0 S [iparepwq38]
u:r:hal_wifi_supplicant_defau+ wifi          2557     1   35172   4716 poll_sche+ 7f9587d4e4 S wpa_supplicant
u:r:untrusted_app:s0:c512,c768 u0_a112       2558   699 4495664  99244 SyS_epoll+ 78817c53ac S com.google.android.inputmethod.pinyin
u:r:platform_app:s0:c512,c768  u0_a29        2569   699 4661264 182484 SyS_epoll+ 78817c53ac S com.android.systemui
u:r:webview_zygote:s0          webview_zyg+  2622     1 1390284  27180 poll_sche+   e8fe3a58 S webview_zygote32
u:r:dataservice_app:s0         system        2702   699 4365132  38552 SyS_epoll+ 78817c53ac S .dataservices
u:r:platform_app:s0:c512,c768  u0_a27        2707   699 4354888  34724 SyS_epoll+ 78817c53ac S com.redteamobile.virtual.softsim
u:r:radio:s0                   radio         2723   699 4354664  34624 SyS_epoll+ 78817c53ac S com.qualcomm.qti.telephonyservice
u:r:radio:s0                   radio         2733   699 4355660  35600 SyS_epoll+ 78817c53ac S com.qualcomm.qcrilmsgtunnel
u:r:radio:s0                   radio         2756   699 4468756  60448 SyS_epoll+ 78817c53ac S com.android.phone
u:r:system_app:s0              system        2816   699 4359268  41364 SyS_epoll+ 78817c53ac S com.oneplus.config
u:r:kernel:s0                  root          2904     2       0      0 worker_th+          0 S [kworker/3:3]
u:r:system_app:s0              system        2909   699 4350548  31816 SyS_epoll+ 78817c53ac S com.oneplus.skin
u:r:system_app:s0              system        3163   699 4351572  30572 SyS_epoll+ 78817c53ac S com.qti.service.colorservice
u:r:kernel:s0                  root          3186     2       0      0 irq_thread          0 S [irq/40-1008000.]
u:r:kernel:s0                  root          3207     2       0      0 notify_us+          0 S [wrkld_notify]
u:r:untrusted_app_25:s0:c512,+ u0_a52        3217   699 4360996  35340 SyS_epoll+ 78817c53ac S com.oneplus.deskclock
u:r:system_app:s0              system        3232   699 4360620  37788 SyS_epoll+ 78817c53ac S com.oneplus.permissionutil
u:r:nfc:s0                     nfc           3238   699 4403196  63264 SyS_epoll+ 78817c53ac S com.android.nfc
u:r:priv_app:s0:c512,c768      u0_a10        3251   699 4354192  35932 SyS_epoll+ 78817c53ac S se.dirac.acs
u:r:platform_app:s0:c512,c768  u0_a2         3256   699 4348984  30628 SyS_epoll+ 78817c53ac S com.oneplus
u:r:system_app:s0              system        3261   699 4355376  32816 SyS_epoll+ 78817c53ac S com.oneplus.opbugreportlite
u:r:system_app:s0              system        3297   699 4353112  31812 SyS_epoll+ 78817c53ac S com.oneplus.aod
u:r:system_app:s0              system        3311   699 4350704  31272 SyS_epoll+ 78817c53ac S com.quicinc.wbcserviceapp
u:r:priv_app:s0:c512,c768      u0_a3         3361   699 4363848  33516 SyS_epoll+ 78817c53ac S com.amap.android.ams
u:r:priv_app:s0:c512,c768      u0_a19        3393   699 4605848  86616 SyS_epoll+ 78817c53ac S com.google.android.gms.persistent
u:r:untrusted_app:s0:c512,c768 u0_a146       3407   699 4670636  93988 SyS_epoll+ 78817c53ac S com.teslacoilsw.launcher
u:r:untrusted_app:s0:c512,c768 u0_a71        3434   699 4350132  29632 SyS_epoll+ 78817c53ac S com.android.smspush
u:r:mediaprovider:s0:c512,c768 u0_a12        3470   699 4374484  42100 SyS_epoll+ 78817c53ac S android.process.media
u:r:system_app:s0              system        3740   699 4364424  37904 SyS_epoll+ 78817c53ac S com.oneplus.opbackup
u:r:priv_app:s0:c512,c768      u0_a6         3761   699 4375948  48140 SyS_epoll+ 78817c53ac S android.process.acore
u:r:kernel:s0                  root          3765     2       0      0 worker_th+          0 S [kworker/4:3]
u:r:system_app:s0              system        3796   699 4557632  82036 SyS_epoll+ 78817c53ac S com.oneplus.security
u:r:untrusted_app_25:s0:c512,+ u0_a103       3950   699 4439140  62844 SyS_epoll+ 78817c53ac S com.oneplus.card
u:r:priv_app:s0:c522,c768      u10_a6        4027   699 4365388  44008 SyS_epoll+ 78817c53ac S android.process.acore
u:r:isolated_app:s0:c512,c768  u0_i48        4075  2622 1621456  75384 SyS_epoll+   e8fe3880 S com.google.android.webview:s
u:r:system_app:s0              u10_system    4077   699 4360440  35236 SyS_epoll+ 78817c53ac S com.oneplus.opbackup
u:r:system_app:s0              u10_system    4108   699 4354968  30968 SyS_epoll+ 78817c53ac S com.oneplus.opbugreportlite
u:r:system_app:s0              u10_system    4136   699 4371188  43212 SyS_epoll+ 78817c53ac S com.oneplus.security
u:r:untrusted_app_25:s0:c743,+ u999_a114     4222   700 2234220 114528 SyS_epoll+   f4e11880 S com.tencent.mm:tools
u:r:untrusted_app_25:s0:c512,+ u0_a139       4459   699 4386764  40672 SyS_epoll+ 78817c53ac S embryo
u:r:isolated_app:s0:c512,c768  u0_i49        4499  2622 1554716  53272 SyS_epoll+   e8fe3880 S com.google.android.webview:s
u:r:priv_app:s0:c512,c768      u0_a15        4755   699 4450780  83004 SyS_epoll+ 78817c53ac S com.android.dialer
u:r:priv_app:s0:c512,c768      u0_a9         4796   699 4406824  49948 SyS_epoll+ 78817c53ac S com.android.contacts
u:r:radio:s0                   radio         4811   699 4356084  34304 SyS_epoll+ 78817c53ac S com.oneplus.simcontacts
u:r:priv_app:s0:c743,c771      u999_a6       4853   699 4357256  38296 SyS_epoll+ 78817c53ac S android.process.acore
u:r:untrusted_app_25:s0:c512,+ u0_a51        4875   699 4354876  30592 SyS_epoll+ 78817c53ac S com.oneplus.dirac.simplemanager
u:r:system_app:s0              system        4922   699 4353176  32100 SyS_epoll+ 78817c53ac S cn.oneplus.nvbackup
u:r:isolated_app:s0:c512,c768  u0_i50        4926  2622 1490572  27940 SyS_epoll+   e8fe3880 S com.google.android.webview:s
u:r:radio:s0                   radio         4966   699 4405836  65640 SyS_epoll+ 78817c53ac S com.android.incallui
u:r:system_app:s0              system        5186   699 4413564  40864 SyS_epoll+ 78817c53ac S com.oneplus.appupgrader
u:r:priv_app:s0:c512,c768      u0_a32        5269   699 4382492  41432 SyS_epoll+ 78817c53ac S com.oneplus.gallery:cloud
u:r:kernel:s0                  root          5348     2       0      0 worker_th+          0 S [kworker/2:3]
u:r:priv_app:s0:c512,c768      u0_a32        5414   699 4378656  38572 SyS_epoll+ 78817c53ac S com.oneplus.gallery:recyclebin
u:r:priv_app:s0:c512,c768      u0_a32        5487   699 4437444  70140 SyS_epoll+ 78817c53ac S com.oneplus.gallery
u:r:priv_app:s0:c512,c768      u0_a25        5728   700 1710036  39668 SyS_epoll+   f4e11880 S com.oneplus.market:mcs
u:r:untrusted_app_25:s0:c512,+ u0_a143       5955   700 1748020  32212 SyS_epoll+   f4e11880 S embryo
u:r:untrusted_app_25:s0:c512,+ u0_a113       5979   700 1704684  26220 SyS_epoll+   f4e11880 S embryo
u:r:untrusted_app:s0:c512,c768 u0_a164       6054   700 1796572 118080 SyS_epoll+   f4e11880 S embryo
u:r:system_app:s0              system        6080   699 4384440  46388 SyS_epoll+ 78817c53ac S net.oneplus.odm
u:r:priv_app:s0:c512,c768      u0_a23        6109   699 4353652  33040 SyS_epoll+ 78817c53ac S net.oneplus.odm.provider
u:r:kernel:s0                  root          6110     2       0      0 worker_th+          0 S [kworker/2:0]
u:r:untrusted_app:s0:c512,c768 u0_a111       6161   699 4380152  50628 SyS_epoll+ 78817c53ac S im.softs.softsim
u:r:kernel:s0                  root          6211     2       0      0 msleep              0 D [kworker/0:5]
u:r:untrusted_app_25:s0:c512,+ u0_a132       6240   699 4371124  30284 SyS_epoll+ 78817c53ac S embryo
u:r:untrusted_app_25:s0:c512,+ u0_a97        6410   700 1726556  48432 SyS_epoll+   f4e11880 S embryo
u:r:untrusted_app:s0:c512,c768 u0_a88        6452   700 1724584  26336 SyS_epoll+   f4e11880 S embryo
u:r:isolated_app:s0:c743,c771  u999_i52      6476  2622 1594200  62640 SyS_epoll+   e8fe3880 S com.google.android.webview:s
u:r:untrusted_app_25:s0:c512,+ u0_a142       6487   700 1714640  27976 SyS_epoll+   f4e11880 S embryo
u:r:system_app:s0              system        6554   699 4360584  32580 SyS_epoll+ 78817c53ac S embryo
u:r:untrusted_app:s0:c512,c768 u0_a149       6570   699 4386044  34916 SyS_epoll+ 78817c53ac S embryo
u:r:untrusted_app_25:s0:c512,+ u0_a159       6638   700 1712860  26016 SyS_epoll+   f4e11880 S embryo
u:r:mediaprovider:s0:c522,c768 u10_a12       8240   699 4372236  40412 SyS_epoll+ 78817c53ac S android.process.media
u:r:untrusted_app_25:s0:c522,+ u10_a51       8515   699 4353816  30336 SyS_epoll+ 78817c53ac S com.oneplus.dirac.simplemanager
u:r:priv_app:s0:c522,c768      u10_a10       8533   699 4353784  34388 SyS_epoll+ 78817c53ac S se.dirac.acs
u:r:kernel:s0                  root          8559     2       0      0 worker_th+          0 S [kworker/1:3]
u:r:priv_app:s0:c522,c768      u10_a9        8620   699 4380604  42244 SyS_epoll+ 78817c53ac S com.android.contacts
u:r:radio:s0                   u10_radio     8642   699 4367904  32000 SyS_epoll+ 78817c53ac S com.android.incallui
u:r:radio:s0                   u10_radio     8656   699 4357016  32768 SyS_epoll+ 78817c53ac S com.oneplus.simcontacts
u:r:untrusted_app_25:s0:c512,+ u0_a131       8684   700 1772140  50816 SyS_epoll+   f4e11880 S com.android.vending
u:r:platform_app:s0:c522,c768  u10_a17       8754   699 4351088  32200 SyS_epoll+ 78817c53ac S com.oneplus.ifaaservice
u:r:system_app:s0              u10_system    8824   699 4366460  43976 SyS_epoll+ 78817c53ac S com.oneplus.appupgrader
u:r:radio:s0                   u10_radio     8856   699 4379912  32452 SyS_epoll+ 78817c53ac S com.android.phone
u:r:kernel:s0                  root          8887     2       0      0 worker_th+          0 S [kworker/u16:4]
u:r:system_app:s0              u10_system    8898   699 4381196  45996 SyS_epoll+ 78817c53ac S net.oneplus.odm
u:r:priv_app:s0:c522,c768      u10_a23       8917   699 4351148  31700 SyS_epoll+ 78817c53ac S net.oneplus.odm.provider
u:r:kernel:s0                  root          8973     2       0      0 worker_th+          0 S [kworker/3:0]
u:r:mediaprovider:s0:c743,c771 u999_a12      9079   699 4355516  33576 SyS_epoll+ 78817c53ac S android.process.media
u:r:kernel:s0                  root          9216     2       0      0 worker_th+          0 S [kworker/1:1]
u:r:priv_app:s0:c512,c768      u0_a25        9531   700 1702816  32024 SyS_epoll+   f4e11880 S embryo
u:r:kernel:s0                  root          9653     2       0      0 runqueues           0 R [kworker/u16:15]
u:r:system_app:s0              system        9705   699 4353000  32584 SyS_epoll+ 78817c53ac S org.simalliance.openmobileapi.service:remote
u:r:untrusted_app:s0:c512,c768 u0_a136      10489   699 4382248  36964 SyS_epoll+ 78817c53ac S embryo
u:r:kernel:s0                  root         10655     2       0      0 worker_th+          0 S [kworker/0:4]
u:r:kernel:s0                  root         11268     2       0      0 worker_th+          0 S [kworker/u16:16]
u:r:priv_app:s0:c512,c768      u0_a21       11700   699 4352084  35676 SyS_epoll+ 78817c53ac S com.android.providers.calendar
u:r:kernel:s0                  root         11913     2       0      0 worker_th+          0 S [kworker/1:0]
u:r:kernel:s0                  root         11980     2       0      0 worker_th+          0 S [kworker/2:2]
u:r:kernel:s0                  root         11989     2       0      0 worker_th+          0 S [kworker/u16:7]
u:r:kernel:s0                  root         11996     2       0      0 worker_th+          0 S [kworker/3:2]
u:r:kernel:s0                  root         12091     2       0      0 worker_th+          0 S [kworker/1:4]
u:r:kernel:s0                  root         12239     2       0      0 worker_th+          0 S [kworker/5:3]
u:r:platform_app:s0:c512,c768  u0_a34       12242   699 4361988  44552 SyS_epoll+ 78817c53ac S com.android.packageinstaller
u:r:kernel:s0                  root         12774     2       0      0 worker_th+          0 S [kworker/2:4]
u:r:kernel:s0                  root         12960     2       0      0 0                   0 R [kworker/u16:14]
u:r:kernel:s0                  root         13089     2       0      0 worker_th+          0 S [kworker/3:4]
u:r:kernel:s0                  root         13911     2       0      0 worker_th+          0 S [kworker/6:2]
u:r:priv_app:s0:c512,c768      u0_a24       14333   700 1845600 117668 SyS_epoll+   f4e11880 S com.oneplus.faceunlock
u:r:priv_app:s0:c743,c771      u999_a19     14551   699 4539284  51924 SyS_epoll+ 78817c53ac S com.google.android.gms
u:r:untrusted_app_25:s0:c512,+ u0_a130      14582   700 1742728  33632 SyS_epoll+   f4e11880 S embryo
u:r:untrusted_app_25:s0:c512,+ u0_a117      14598   700 1774176  93940 SyS_epoll+   f4e11880 S io.va.exposed
u:r:untrusted_app_25:s0:c522,+ u10_a116     14620   700 1818664  74764 SyS_epoll+   f4e11880 S com.eg.android.AlipayGphone:push
u:r:untrusted_app_25:s0:c522,+ u10_a116     14683   700 1795388  62844 SyS_epoll+   f4e11880 S com.eg.android.AlipayGphone:tools
u:r:untrusted_app_25:s0:c512,+ u0_a125      14708   700 1727672  29728 SyS_epoll+   f4e11880 S embryo
u:r:kernel:s0                  root         14851     2       0      0 worker_th+          0 S [kworker/7:1]
u:r:system_app:s0              system       15537   699 4377836  65500 SyS_epoll+ 78817c53ac S android:ui
u:r:untrusted_app_25:s0:c743,+ u999_a114    15920   700 2218340 193488 SyS_epoll+   f4e11880 S com.tencent.mm
u:r:untrusted_app_25:s0:c512,+ u0_a131      15949   700 1727956  29344 SyS_epoll+   f4e11880 S embryo
u:r:untrusted_app_25:s0:c512,+ u0_a117      16098   700 1768320  95488 SyS_epoll+   f4e11880 S io.va.exposed:x
u:r:untrusted_app_25:s0:c512,+ u0_a117      16174   700 2506880 217464 SyS_epoll+   f4e11880 S com.tencent.mm
u:r:untrusted_app_25:s0:c512,+ u0_a117      16210   700 1696780  32384 SyS_epoll+   f4e11880 S io.va.exposed:logcat
u:r:untrusted_app_25:s0:c512,+ u0_a117      16231 16210    9176   1824 sigsuspend 7187837574 S sh
u:r:untrusted_app_25:s0:c512,+ u0_a117      16233 16231    9460   1860 __skb_rec+ 7e9c2caf7c S logcat
u:r:untrusted_app_25:s0:c512,+ u0_a117      16279   700 2024540  76356 SyS_epoll+   f4e11880 S com.tencent.mm:exdevice
u:r:untrusted_app_25:s0:c512,+ u0_a117      16377   700 2038792  76428 SyS_epoll+   f4e11880 S com.tencent.mm:push
u:r:untrusted_app_25:s0:c512,+ u0_a117      16548   700 2334004  94392 SyS_epoll+   f4e11880 S com.tencent.mm:support
u:r:untrusted_app_25:s0:c512,+ u0_a117      16588   700 2415328 132828 SyS_epoll+   f4e11880 S com.tencent.mm:tools
u:r:untrusted_app_25:s0:c512,+ u0_a117      16679   700 2038836  82400 SyS_epoll+   f4e11880 S com.tencent.mm:sandbox
u:r:kernel:s0                  root         16747     2       0      0 worker_th+          0 S [kworker/7:3]
u:r:untrusted_app:s0:c512,c768 u0_a133      17015   699 4376580  33824 SyS_epoll+ 78817c53ac S embryo
u:r:kernel:s0                  root         17249     2       0      0 worker_th+          0 S [kworker/1:2]
u:r:kernel:s0                  root         17251     2       0      0 worker_th+          0 S [kworker/0:0]
u:r:kernel:s0                  root         17259     2       0      0 worker_th+          0 S [kworker/0:3]
u:r:kernel:s0                  root         17311     2       0      0 worker_th+          0 S [kworker/0:6]
u:r:priv_app:s0:c512,c768      u0_a26       17315   699 4361888  42576 SyS_epoll+ 78817c53ac S embryo
u:r:kernel:s0                  root         17336     2       0      0 worker_th+          0 S [kworker/2:1]
u:r:untrusted_app_25:s0:c512,+ u0_a67       17388   700 1690316  28100 SyS_epoll+   f4e11880 S cn.oneplus.photos
u:r:untrusted_app_25:s0:c522,+ u10_a67      17405   700 1690316  28208 SyS_epoll+   f4e11880 S cn.oneplus.photos
u:r:kernel:s0                  root         17423     2       0      0 worker_th+          0 S [kworker/2:5]
u:r:untrusted_app_25:s0:c512,+ u0_a139      17431   699 4496136 106964 SyS_epoll+ 78817c53ac S me.bluemail.mail
u:r:untrusted_app_25:s0:c512,+ u0_a82       17464   699 4399016  36320 SyS_epoll+ 78817c53ac S embryo
u:r:isolated_app:s0:c512,c768  u0_i71       17488  2622 1636508  87116 SyS_epoll+   e8fe3880 S com.google.android.webview:s
u:r:untrusted_app_25:s0:c512,+ u0_a155      17590   700 1756828  43968 SyS_epoll+   f4e11880 S embryo
u:r:kernel:s0                  root         17613     2       0      0 worker_th+          0 S [kworker/3:1]
u:r:shell:s0                   shell        17614   917    9176   1900 sigsuspend 7d4b27c574 S sh
u:r:shell:s0                   shell        17617 17614   18476   3120 flush_work 733754ef1c D su
u:r:su:s0                      root         17620   602    9176   1816 sigsuspend 7be640c574 S sh
u:r:kernel:s0                  root         17623     2       0      0 worker_th+          0 S [kworker/4:1]
u:r:kernel:s0                  root         17624     2       0      0 worker_th+          0 S [kworker/4:2]
u:r:su:s0                      root         17648 17620   10756   2004 0          76e9c30f1c R ps
u:r:kernel:s0                  root         17916     2       0      0 worker_th+          0 S [kworker/7:0]
u:r:untrusted_app_25:s0:c512,+ u0_a50       18423   699 4357136  32056 SyS_epoll+ 78817c53ac S embryo
u:r:hal_imsrtp:s0              system       20706     1 2152068   6864 binder_th+ 7ca484649c S ims_rtp_daemon
u:r:ims:s0                     system       20708     1   27620   3308 poll_sche+ 7c902784e4 S imsdatadaemon
u:r:untrusted_app_25:s0:c512,+ u0_a114      20946   700 2267336 194580 SyS_epoll+   f4e11880 S com.tencent.mm
u:r:untrusted_app_25:s0:c512,+ u0_a114      21034   700 1763504  44120 SyS_epoll+   f4e11880 S com.tencent.mm:exdevice
u:r:kernel:s0                  root         21036     2       0      0 worker_th+          0 S [kworker/7:2]
u:r:untrusted_app_25:s0:c512,+ u0_a114      21150   700 1787920  50264 SyS_epoll+   f4e11880 S com.tencent.mm:push
u:r:untrusted_app_25:s0:c743,+ u999_a114    21314   700 1763504  42356 SyS_epoll+   f4e11880 S com.tencent.mm:exdevice
u:r:untrusted_app_25:s0:c512,+ u0_a114      21356   700 2019340  44876 SyS_epoll+   f4e11880 S com.tencent.mm:support
u:r:untrusted_app_25:s0:c743,+ u999_a114    21494   700 1786908  51224 SyS_epoll+   f4e11880 S com.tencent.mm:push
u:r:untrusted_app_25:s0:c743,+ u999_a114    21624   700 2065536  46868 SyS_epoll+   f4e11880 S com.tencent.mm:support
u:r:untrusted_app_25:s0:c512,+ u0_a114      22897   700 2088412  50320 SyS_epoll+   f4e11880 S com.tencent.mm:tools
u:r:untrusted_app_25:s0:c512,+ u0_a114      23025   700 2028444  50752 SyS_epoll+   f4e11880 S com.tencent.mm:appbrand0
u:r:untrusted_app_25:s0:c522,+ u10_a114     23208   700 1763504  43432 SyS_epoll+   f4e11880 S com.tencent.mm:exdevice
u:r:untrusted_app_25:s0:c522,+ u10_a114     23266   700 1785260  48964 SyS_epoll+   f4e11880 S com.tencent.mm:push
u:r:untrusted_app_25:s0:c522,+ u10_a114     23408   700 2236748 125924 SyS_epoll+   f4e11880 S com.tencent.mm:tools
u:r:untrusted_app_25:s0:c522,+ u10_a114     23495   700 2064668  45688 SyS_epoll+   f4e11880 S com.tencent.mm:support
u:r:isolated_app:s0:c522,c768  u10_i3       23648  2622 1749436  67400 SyS_epoll+   e8fe3880 S com.google.android.webview:s
u:r:untrusted_app_25:s0:c522,+ u10_a114     23733   700 2263884 182584 SyS_epoll+   f4e11880 S com.tencent.mm
u:r:untrusted_app:s0:c512,c768 u0_a69       25419   699 4370884  29748 SyS_epoll+ 78817c53ac S embryo
u:r:untrusted_app:s0:c512,c768 u0_a138      25539   699 4916264 194756 SyS_epoll+ 78817c53ac S com.twitter.android
u:r:untrusted_app_25:s0:c743,+ u999_a114    26094   700 2211288  80480 SyS_epoll+   f4e11880 S com.tencent.mm:appbrand0
u:r:kernel:s0                  root         26912     2       0      0 rradc_che+          0 D [kworker/0:2]
u:r:kernel:s0                  root         27511     2       0      0 worker_th+          0 S [kworker/5:1]
u:r:kernel:s0                  root         28358     2       0      0 msleep              0 D [kworker/0:1]
u:r:kernel:s0                  root         28458     2       0      0 worker_th+          0 S [kworker/4:0]
u:r:kernel:s0                  root         29648     2       0      0 worker_th+          0 S [kworker/6:1]
u:r:kernel:s0                  root         29876     2       0      0 worker_th+          0 S [kworker/5:2]
u:r:untrusted_app_25:s0:c512,+ u0_a154      30117   700 1718668  27096 SyS_epoll+   f4e11880 S embryo
u:r:kernel:s0                  root         31499     2       0      0 irq_thread          0 S [irq/127-arm-smm]
u:r:kernel:s0                  root         31500     2       0      0 irq_thread          0 S [irq/128-arm-smm]
u:r:priv_app:s0:c512,c768      u0_a19       32721   699 4869716 143832 SyS_epoll+ 78817c53ac S com.google.android.gms

当开始着手自定义 SELinux 时,制造商应记得做以下事情:

为所有新的守护进程编写 SELinux 政策
尽可能使用预定义的域
为作为 init 服务衍生的所有进程分配域
在编写政策之前先熟悉相关的宏
向 AOSP 提交对核心政策进行的更改

———–
Multi-Category Security 多类别安全(MCS)
Multi-Level Security 多级安全(MLS)
—————–

plat_sepolicy.cil、nonplat_sepolicy.cil汇总了所有的te中定义的安全策略

Common Intermediate Language (CIL)

https://github.com/SELinuxProject/cil/wiki

android kernel启用kprobe

查看是否启用

 cat /proc/kallsyms | grep register_kprobe

 

 

 
默认配置

# CONFIG_KPROBES is not set
CONFIG_HAVE_KPROBES=y
CONFIG_HAVE_KRETPROBES=y
CONFIG_HAVE_OPTPROBES=y
CONFIG_HAVE_KPROBES_ON_FTRACE=y

CONFIG_MODULES=y
# CONFIG_MODULE_FORCE_LOAD is not set
CONFIG_MODULE_UNLOAD=y
# CONFIG_MODULE_FORCE_UNLOAD is not set

改成
CONFIG_KPROBES=y

参考资料:
http://kuester.multics.org/blog/2015/03/24/how-to-build-custom-kernel-with-kprobes/

Android Kernel Build with KProbe

具体到android

将  https://github.com/torvalds/linux/blob/master/arch/x86/configs/x86_64_defconfig 中的 CONFIG_KPROBES=y
放到 arch/x86/configs/x86_64_ranchu_defconfig

CONFIG_KPROBES=y
CONFIG_MODULES=y

编译android qemu内核

小米手机上使用sqlite3命令行工具

小米手机官方版本 不会带sqlite3

可以从 谷歌Android ARM emulator 上 pull 下来 

adb -e pull /system/xbin/sqlite

然后复制到 手机的 tmp目录

adb -d push sqlite3 /data/local/tmp/
adb -d shell
chmod a+x /data/loccal/tmp/sqlite3
/data/local/tmp/sqlite3

有些手机版本比较老, 会报错:

SQLite header and source version mismatch
….

那么需要将对应的动态链接库 也复制过去

adb -e pull /system/lib64/libsqlite.so

adb -d push libsqlite.so /data/local/tmp/
adb -d shell

LD_LIBRARY_PATH=/data/local/tmp /data/local/tmp//sqlite3

就可以正常运行

编译android emualator

定制android

https://android.googlesource.com/platform/external/qemu/+/master/docs/DEVELOPMENT.TXT

cd asop
#切换到模拟器分支
repo init -b emu-2.8-release
repo sync



cd external/qemu/android/
./rebuild.sh --no-tests
cd  ../objs
./emulator -avd  Nexus

或者

cd external/qemu/android
./configure.sh
make -j8

Linux系统调用-设置内存区别读写保护

int mprotect(void *addr, size_t len, int prot);

对调用者 进程空间的内存页(地址范围 addr 到 add+len-1) 的访问保护 进行修改.
addr 必须 页边界 对齐

prot 是 下面的访问标志的组合:
PROT_NONE : 完全不能访问
PROT_READ : 能读
PROT_WRITE : 能写
PROT_EXEC : 能执行
PROT_SEM   :  能用于 原子操作
PROT_SAO   :  强访问顺序 (PowerPC)

成功,返回0
失败, 返回 -1

————–
mmap函数 发生错误, 返回  MAP_FAILED (也就是 (void *) -1)

检测arm模拟器

代码

#include <stdio.h>
#include <sys/mman.h>

#define PROT PROT_EXEC|PROT_WRITE|PROT_READ
#define LOGI printf


int (*asmcheck)(void);

int a = -1;
int b = -1;

int detect() {
    char code[] =
            "\xF0\x41\x2D\xE9"
            "\x00\x70\xA0\xE3"
            "\x0F\x80\xA0\xE1"
            "\x00\x40\xA0\xE3"
            "\x01\x70\x87\xE2"
            "\x00\x50\x98\xE5"
            "\x01\x40\x84\xE2"
            "\x0F\x80\xA0\xE1"
            "\x0C\x80\x48\xE2"
            "\x00\x50\x88\xE5"
            "\x0A\x00\x54\xE3"
            "\x02\x00\x00\xAA"
            "\x0A\x00\x57\xE3"
            "\x00\x00\x00\xAA"
            "\xF6\xFF\xFF\xEA"
            "\x04\x00\xA0\xE1"
            "\xF0\x81\xBD\xE8";

    void *exec = mmap(NULL, (size_t) getpagesize(), PROT, MAP_ANONYMOUS | MAP_PRIVATE, -1, (off_t) 0);
    if (exec == (void *) -1) {
        LOGI(" mmap faild \n");
        int fd = fopen("/dev/zero", "w+");
        exec = mmap(NULL, (size_t) getpagesize(), PROT, MAP_SHARED, fd, (off_t) 0);
        LOGI(" mmap zero %x %x %x \n", fd, exec, exec);
        if (exec == (void *) -1) {
            return 10;
        }
    }
    
    memcpy(exec, code, sizeof(code) + 1);
    LOGI(" mmap sucess exec  %x\n", exec);
    asmcheck = (void *) exec;
    a = asmcheck();
    LOGI("a= %d  \n", a);
    munmap(exec, getpagesize());
    return a;
}


int main()
{
    int ret = detect();
    LOGI("%d detect \n", ret);
}

编译

快速编译Android C代码

~/Android/Sdk/ndk-bundle/build/tools/make_standalone_toolchain.py --arch arm --api 19   --install-dir=/dev/shm/native


export PATH=/bin:/usr/bin:/dev/shm/native/bin


target_host=arm-linux-androideabi
export AR=$target_host-ar
export AS=$target_host-clang
export CC=$target_host-clang
export CXX=$target_host-clang++
export LD=$target_host-ld
export STRIP=$target_host-strip


$CC -fPIE -pie emu.c -o ed

arm模拟器上输出 1
真机上 输出   10

参考资料:
https://wiki.koeln.ccc.de/images/d/d5/Openchaos_qemudetect.pdf
https://github.com/happylishang/CacheEmulatorChecker

第2种写法

#include <stdio.h>
#include <sys/mman.h>

__attribute__ ((naked)) int test_arm_cache()
{
  asm (
        //"STMFD   SP!, {R4-R8,LR}\n\t"
        "PUSH    {R4-R8,LR}\n\t"
        "MOV     R7, #0\n\t"
        "MOV     R8, PC\n\t"
        "MOV     R4, #0\n\t"
        "ADD     R7, R7, #1\n\t"
        "LDR     R5, [R8]\n\t"
    "YYY:\n\t"
        "ADD     R4, R4, #1\n\t"
        "MOV     R8, PC\n\t"
        "SUB     R8, R8, #0xC\n\t"
        "STR     R5, [R8]\n\t"
        "CMP     R4, #0xA\n\t"
        "BGE     exit\n\t"
        "CMP     R7, #0xA\n\t"
        "BGE     exit\n\t"
        "B       YYY\n\t"
    "exit:\n\t"
        "MOV     R0, R4\n\t"
        //"LDMFD   SP!, {R4-R8,PC}\n\t"
        "POP     {R4-R8,PC}\n\t"
  );
}


int main() {
    int status = mprotect ((int)test_arm_cache & 0xFFFFF000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC);
    if(status == 0) {
        int a = test_arm_cache();
        printf("test arm cache=%d\n", a);
    }
        
    return 0;
}

编译

$CC -fPIE -pie test.c -O2  -o arm2

上述代码为了在 armeabi 设置下编译下通过,需要魔改

android-ndk-r15c/build/cmake/android.toolchain.cmake

# Toolchain and ABI specific flags.
if(ANDROID_ABI STREQUAL armeabi)
list(APPEND ANDROID_COMPILER_FLAGS
# -march=armv5te
-march=armv7-a
-mtune=xscale
-msoft-float)
endif()

....

if(ANDROID_ABI MATCHES "^armeabi(-v7a)?$")
set(ANDROID_SYSROOT_ABI arm)
set(ANDROID_TOOLCHAIN_NAME arm-linux-androideabi)
set(ANDROID_TOOLCHAIN_ROOT ${ANDROID_TOOLCHAIN_NAME})
set(ANDROID_HEADER_TRIPLE arm-linux-androideabi)
if(ANDROID_ABI STREQUAL armeabi)
#set(CMAKE_SYSTEM_PROCESSOR armv5te)
#set(ANDROID_LLVM_TRIPLE armv5te-none-linux-androideabi)
set(CMAKE_SYSTEM_PROCESSOR armv7-a)
set(ANDROID_LLVM_TRIPLE armv7-none-linux-androideabi)
elseif(ANDROID_ABI STREQUAL armeabi-v7a)
set(CMAKE_SYSTEM_PROCESSOR armv7-a)
set(ANDROID_LLVM_TRIPLE armv7-none-linux-androideabi)
endif()

.....


if(DEFINED ANDROID_FORCE_ARM_BUILD AND NOT ANDROID_ARM_MODE)
  if(ANDROID_FORCE_ARM_BUILD)
    set(ANDROID_ARM_MODE arm)
  else()
    set(ANDROID_ARM_MODE thumb)
  endif()
endif()
....
if(ANDROID_ARM_MODE STREQUAL arm)
  set(ANDROID_FORCE_ARM_BUILD TRUE)
endif()


.....

所以


  defaultConfig {
...
        externalNativeBuild {
            cmake {
                arguments "-DANDROID_ARM_MODE=arm"
            }
        }
... 
  }


    externalNativeBuild {
        cmake {
            path "src/main/cpp/CMakeLists.txt"
        }
    }

linux系统调用–得到目录条目

int getdents(unsigned int fd, struct linux_dirent *dirp, unsigned int count);

类似于C库中的 readdir

https://linux.die.net/man/2/getdents64
http://man7.org/linux/man-pages/man2/getdents.2.html

在 read 之前 必须 open
所以, 守住 openat就可以了

linux系统调用-检查一个文件的用户权限

access 和 faccessat

int access(const char *pathname, int mode);

int faccessat(int dirfd, const char *pathname, int mode, int flags);

access检查 调用进程 是否 能 访问 pathname
如果 pathname 是一个符号链接, 那么要进行解析.
    mode的值 可以为 F_OK, R_OK, W_OK, X_OK等.
         F_OK 测试文件是否存在
         R_OK, W_OK, X_OK检查是否由读,写, 执行权限.
     检查会使用 调用进程 真实的 UID和GID

geteuid ()
getuid ()