init.rc on property:vold.decrypt=trigger_reset_main 过程

本文介绍了一个基于C语言实现的初始化脚本解析系统,该系统能够处理各种命令,并将其组织成行动队列进行执行。文章详细解释了数据结构的设计,如`struct command`和`struct action`,以及关键函数如`list_init`、`list_add_tail`和`queue_builtin_action`的使用。通过这些组件,系统可以响应属性设置事件,并执行相应的命令。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

struct command
{
        /* list of commands in an action */
    struct listnode clist;
    int (*func)(int nargs, char **args);
    int nargs;
    char *args[1];
};


struct action {
        /* node in list of all actions */
    struct listnode alist;
        /* node in the queue of pending actions */
    struct listnode qlist;
        /* node in list of actions for a trigger */
    struct listnode tlist;

    unsigned hash;
    const char *name;
    struct listnode commands;
    struct command *current;

};

void list_init(struct listnode *node)
{
    node->next = node;
    node->prev = node;
}



void list_add_tail(struct listnode *head, struct listnode *item)                          
{
    item->next = head;
    item->prev = head->prev;
    head->prev->next = item;
    head->prev = item;
}


void list_remove(struct listnode *item)
{
    item->next->prev = item->prev;
    item->prev->next = item->next;
}       

void queue_builtin_action(int (*func)(int nargs, char **args), char *name)//内建的action,也就是不在init.rc中。一个act有多个command。trigger就是act->name
{
    struct action *act;
    struct command *cmd;


    act = calloc(1, sizeof(*act));
    act->name = name;
    list_init(&act->commands);


    cmd = calloc(1, sizeof(*cmd));
    cmd->func = func; 
    cmd->args[0] = name;      
    list_add_tail(&act->commands, &cmd->clist);


    list_add_tail(&action_list, &act->alist);
    action_add_queue_tail(act);
}
action_for_each_trigger("early-init", action_add_queue_tail);将所有early-init的act,放到action_queue的队列里。

在所有act链表准备好之后,在for(;;)里开始一行一行执行。execute_one_command


监听到

handle_property_set_fd   -->       property_set    --> property_set  -->  queue_property_triggers  --> queue_property_triggers  --> action_add_queue_tail

这样execute_one_command 有又可以 act 执行对应的命令了。

都有在init.rc中的command比如,mkdir,chroot,是字符串,通过字符串映射到一个keywords,这是数组到下标,从而找到真正要执行到函数do_chroot。do_chroot会调用chroot

。chroot则是封装好到系统调用。


01-01 00:00:11.856 1 1 I auditd : type=1400 audit(0.0:3): avc: denied { open } for comm="init" path="/dev/kmsg" dev="tmpfs" ino=5 scontext=u:r:kernel:s0 tcontext=u:object_r:tmpfs:s0 tclass=chr_file permissive=1 01-01 00:00:12.104 1 1 I auditd : type=1107 audit(0.0:5): uid=0 auid=4294967295 ses=4294967295 subj=u:r:init:s0 msg='avc: denied { set } for property=ro.telephony.sim.count pid=1 uid=0 gid=0 scontext=u:r:vendor_init:s0 tcontext=u:object_r:default_prop:s0 tclass=property_service permissive=0' 01-01 00:00:12.896 1 1 I auditd : type=1107 audit(0.0:6): uid=0 auid=4294967295 ses=4294967295 subj=u:r:init:s0 msg='avc: denied { read } for property=vts.native_server.on pid=0 uid=0 gid=0 scontext=u:r:vendor_init:s0 tcontext=u:object_r:vts_status_prop:s0 tclass=file permissive=0' 01-01 00:00:12.904 1 1 I auditd : type=1107 audit(0.0:7): uid=0 auid=4294967295 ses=4294967295 subj=u:r:init:s0 msg='avc: denied { read } for property=vts.native_server.on pid=0 uid=0 gid=0 scontext=u:r:vendor_init:s0 tcontext=u:object_r:vts_status_prop:s0 tclass=file permissive=0' 01-01 00:00:12.908 1 1 I auditd : type=1107 audit(0.0:8): uid=0 auid=4294967295 ses=4294967295 subj=u:r:init:s0 msg='avc: denied { read } for property=vts.native_server.on pid=0 uid=0 gid=0 scontext=u:r:vendor_init:s0 tcontext=u:object_r:vts_status_prop:s0 tclass=file permissive=0' 01-01 00:00:12.916 1 1 I auditd : type=1107 audit(0.0:9): uid=0 auid=4294967295 ses=4294967295 subj=u:r:init:s0 msg='avc: denied { read } for property=vts.native_server.on pid=0 uid=0 gid=0 scontext=u:r:vendor_init:s0 tcontext=u:object_r:vts_status_prop:s0 tclass=file permissive=0' 01-01 00:00:13.048 1 1 I auditd : type=1107 audit(0.0:10): uid=0 auid=4294967295 ses=4294967295 subj=u:r:init:s0 msg='avc: denied { read } for property=init.svc.dplanner-2-0 pid=0 uid=0 gid=0 scontext=u:r:vendor_init:s0 tcontext=u:object_r:init_service_status_private_prop:s0 tclass=file permissive=0' 01-01 00:00:13.052 1 1 I auditd : type=1107 audit(0.0:11): uid=0 auid=4294967295 ses=4294967295 subj=u:r:init:s0 msg='avc: denied { read } for property=init.svc.dplanner-2-0 pid=0 uid=0 gid=0 scontext=u:r:vendor_init:s0 tcontext=u:object_r:init_service_status_private_prop:s0 tclass=file permissive=0' 01-01 00:00:14.784 325 325 I auditd : type=1400 audit(0.0:12): avc: denied { read } for comm="modprobe" name="cmdline" dev="proc" ino=4026532095 scontext=u:r:init_insmod_sh:s0 tcontext=u:object_r:proc_cmdline:s0 tclass=file permissive=0 01-01 00:00:15.708 367 367 I auditd : type=1400 audit(0.0:13): avc: denied { write } for comm="binder:367_2" name="uevent" dev="sysfs" ino=25249 scontext=u:r:vold:s0 tcontext=u:object_r:sysfs_loop_recovery:s0 tclass=file permissive=0 01-01 00:00:15.712 367 367 I auditd : type=1400 audit(0.0:14): avc: denied { write } for comm="binder:367_2" name="uevent" dev="sysfs" ino=46006 scontext=u:r:vold:s0 tcontext=u:object_r:sysfs_loop_recovery:s0 tclass=file permissive=0 01-01 00:00:15.720 367 367 I auditd : type=1400 audit(0.0:15): avc: denied { write } for comm="binder:367_2" name="uevent" dev="sysfs" ino=45106 scontext=u:r:vold:s0 tcontext=u:object_r:sysfs_loop_recovery:s0 tclass=file permissive=0 01-01 00:00:15.728 367 367 I auditd : type=1400 audit(0.0:16): avc: denied { write } for comm="binder:367_2" name="uevent" dev="sysfs" ino=46726 scontext=u:r:vold:s0 tcontext=u:object_r:sysfs_loop_recovery:s0 tclass=file permissive=0 01-01 00:00:15.732 367 367 I auditd : type=1400 audit(0.0:17): avc: denied { write } for comm="binder:367_2" name="uevent" dev="sysfs" ino=45826 scontext=u:r:vold:s0 tcontext=u:object_r:sysfs_loop_recovery:s0 tclass=file permissive=0 01-01 00:00:15.732 367 367 I auditd : type=1400 audit(0.0:18): avc: denied { write } for comm="binder:367_2" name="uevent" dev="sysfs" ino=44926 scontext=u:r:vold:s0 tcontext=u:object_r:sysfs_loop_recovery:s0 tclass=file permissive=0 01-01 00:00:15.736 367 367 I auditd : type=1400 audit(0.0:19): avc: denied { write } for comm="binder:367_2" name="uevent" dev="sysfs" ino=25879 scontext=u:r:vold:s0 tcontext=u:object_r:sysfs_loop_recovery:s0 tclass=file permissive=0 01-01 00:00:15.736 367 367 I auditd : type=1400 audit(0.0:20): avc: denied { write } for comm="binder:367_2" name="uevent" dev="sysfs" ino=46546 scontext=u:r:vold:s0 tcontext=u:object_r:sysfs_loop_recovery:s0 tclass=file permissive=0 01-01 00:00:15.744 367 367 I auditd : type=1400 audit(0.0:21): avc: denied { write } for comm="binder:367_2" name="uevent" dev="sysfs" ino=45646 scontext=u:r:vold:s0 tcontext=u:object_r:sysfs_loop_recovery:s0 tclass=file permissive=0 01-01 00:00:15.760 367 367 I auditd : type=1400 audit(0.0:22): avc: denied { write } for comm="binder:367_2" name="uevent" dev="sysfs" ino=26509 scontext=u:r:vold:s0 tcontext=u:object_r:sysfs_loop_recovery:s0 tclass=file permissive=0 01-01 00:00:15.764 367 367 I auditd : type=1400 audit(0.0:23): avc: denied { write } for comm="binder:367_2" name="uevent" dev="sysfs" ino=25699 scontext=u:r:vold:s0 tcontext=u:object_r:sysfs_loop_recovery:s0 tclass=file permissive=0 01-01 00:00:15.764 367 367 I auditd : type=1400 audit(0.0:24): avc: denied { write } for comm="binder:367_2" name="uevent" dev="sysfs" ino=46366 scontext=u:r:vold:s0 tcontext=u:object_r:sysfs_loop_recovery:s0 tclass=file permissive=0 01-01 00:00:15.768 367 367 I auditd : type=1400 audit(0.0:25): avc: denied { write } for comm="binder:367_2" name="uevent" dev="sysfs" ino=45466 scontext=u:r:vold:s0 tcontext=u:object_r:sysfs_loop_recovery:s0 tclass=file permissive=0 01-01 00:00:15.772 367 367 I auditd : type=1400 audit(0.0:26): avc: denied { write } for comm="binder:367_2" name="uevent" dev="sysfs" ino=26329 scontext=u:r:vold:s0 tcontext=u:object_r:sysfs_loop_recovery:s0 tclass=file permissive=0 01-01 00:00:15.776 367 367 I auditd : type=1400 audit(0.0:27): avc: denied { write } for comm="binder:367_2" name="uevent" dev="sysfs" ino=25519 scontext=u:r:vold:s0 tcontext=u:object_r:sysfs_loop_recovery:s0 tclass=file permissive=0 01-01 00:00:15.776 367 367 I auditd : type=1400 audit(0.0:28): avc: denied { write } for comm="binder:367_2" name="uevent" dev="sysfs" ino=46186 scontext=u:r:vold:s0 tcontext=u:object_r:sysfs_loop_recovery:s0 tclass=file permissive=0 01-01 00:00:15.780 367 367 I auditd : type=1400 audit(0.0:29): avc: denied { write } for comm="binder:367_2" name="uevent" dev="sysfs" ino=45286 scontext=u:r:vold:s0 tcontext=u:object_r:sysfs_loop_recovery:s0 tclass=file permissive=0 01-01 00:00:15.784 367 367 I auditd : type=1400 audit(0.0:30): avc: denied { write } for comm="binder:367_2" name="uevent" dev="sysfs" ino=26149 scontext=u:r:vold:s0 tcontext=u:object_r:sysfs_loop_recovery:s0 tclass=file permissive=0 01-01 00:00:15.788 367 367 I auditd : type=1400 audit(0.0:31): avc: denied { write } for comm="binder:367_2" name="uevent" dev="sysfs" ino=25339 scontext=u:r:vold:s0 tcontext=u:object_r:sysfs_loop_recovery:s0 tclass=file permissive=0 01-01 00:00:15.788 367 367 I auditd : type=1400 audit(0.0:32): avc: denied { write } for comm="binder:367_2" name="uevent" dev="sysfs" ino=46816 scontext=u:r:vold:s0 tcontext=u:object_r:sysfs_loop_recovery:s0 tclass=file permissive=0 01-01 00:00:15.792 367 367 I auditd : type=1400 audit(0.0:33): avc: denied { write } for comm="binder:367_2" name="uevent" dev="sysfs" ino=25159 scontext=u:r:vold:s0 tcontext=u:object_r:sysfs_loop_recovery:s0 tclass=file permissive=0 01-01 00:00:15.792 367 367 I auditd : type=1400 audit(0.0:34): avc: denied { write } for comm="binder:367_2" name="uevent" dev="sysfs" ino=45916 scontext=u:r:vold:s0 tcontext=u:object_r:sysfs_loop_recovery:s0 tclass=file permissive=0 01-01 00:00:15.796 367 367 I auditd : type=1400 audit(0.0:35): avc: denied { write } for comm="binder:367_2" name="uevent" dev="sysfs" ino=45016 scontext=u:r:vold:s0 tcontext=u:object_r:sysfs_loop_recovery:s0 tclass=file permissive=0 01-01 00:00:15.800 367 367 I auditd : type=1400 audit(0.0:36): avc: denied { write } for comm="binder:367_2" name="uevent" dev="sysfs" ino=25969 scontext=u:r:vold:s0 tcontext=u:object_r:sysfs_loop_recovery:s0 tclass=file permissive=0 01-01 00:00:15.800 367 367 I auditd : type=1400 audit(0.0:37): avc: denied { write } for comm="binder:367_2" name="uevent" dev="sysfs" ino=46636 scontext=u:r:vold:s0 tcontext=u:object_r:sysfs_loop_recovery:s0 tclass=file permissive=0 01-01 00:00:15.804 367 367 I auditd : type=1400 audit(0.0:38): avc: denied { write } for comm="binder:367_2" name="uevent" dev="sysfs" ino=45736 scontext=u:r:vold:s0 tcontext=u:object_r:sysfs_loop_recovery:s0 tclass=file permissive=0 01-01 00:00:15.804 367 367 I auditd : type=1400 audit(0.0:39): avc: denied { write } for comm="binder:367_2" name="uevent" dev="sysfs" ino=44836 scontext=u:r:vold:s0 tcontext=u:object_r:sysfs_loop_recovery:s0 tclass=file permissive=0 01-01 00:00:15.808 367 367 I auditd : type=1400 audit(0.0:40): avc: denied { write } for comm="binder:367_2" name="uevent" dev="sysfs" ino=25789 scontext=u:r:vold:s0 tcontext=u:object_r:sysfs_loop_recovery:s0 tclass=file permissive=0 01-01 00:00:15.808 367 367 I auditd : type=1400 audit(0.0:41): avc: denied { write } for comm="binder:367_2" name="uevent" dev="sysfs" ino=46456 scontext=u:r:vold:s0 tcontext=u:object_r:sysfs_loop_recovery:s0 tclass=file permissive=0 01-01 00:00:15.816 367 367 I auditd : type=1400 audit(0.0:42): avc: denied { write } for comm="binder:367_2" name="uevent" dev="sysfs" ino=45556 scontext=u:r:vold:s0 tcontext=u:object_r:sysfs_loop_recovery:s0 tclass=file permissive=0 01-01 00:00:15.824 367 367 I auditd : type=1400 audit(0.0:43): avc: denied { write } for comm="binder:367_2" name="uevent" dev="sysfs" ino=26419 scontext=u:r:vold:s0 tcontext=u:object_r:sysfs_loop_recovery:s0 tclass=file permissive=0 01-01 00:00:15.828 367 367 I auditd : type=1400 audit(0.0:44): avc: denied { write } for comm="binder:367_2" name="uevent" dev="sysfs" ino=25609 scontext=u:r:vold:s0 tcontext=u:object_r:sysfs_loop_recovery:s0 tclass=file permissive=0 01-01 00:00:15.828 367 367 I auditd : type=1400 audit(0.0:45): avc: denied { write } for comm="binder:367_2" name="uevent" dev="sysfs" ino=46276 scontext=u:r:vold:s0 tcontext=u:object_r:sysfs_loop_recovery:s0 tclass=file permissive=0 01-01 00:00:15.836 367 367 I auditd : type=1400 audit(0.0:46): avc: denied { write } for comm="binder:367_2" name="uevent" dev="sysfs" ino=45376 scontext=u:r:vold:s0 tcontext=u:object_r:sysfs_loop_recovery:s0 tclass=file permissive=0 01-01 00:00:15.840 367 367 I auditd : type=1400 audit(0.0:47): avc: denied { write } for comm="binder:367_2" name="uevent" dev="sysfs" ino=26239 scontext=u:r:vold:s0 tcontext=u:object_r:sysfs_loop_recovery:s0 tclass=file permissive=0 01-01 00:00:15.848 367 367 I auditd : type=1400 audit(0.0:48): avc: denied { write } for comm="binder:367_2" name="uevent" dev="sysfs" ino=25429 scontext=u:r:vold:s0 tcontext=u:object_r:sysfs_loop_recovery:s0 tclass=file permissive=0 01-01 00:00:15.848 367 367 I auditd : type=1400 audit(0.0:49): avc: denied { write } for comm="binder:367_2" name="uevent" dev="sysfs" ino=46096 scontext=u:r:vold:s0 tcontext=u:object_r:sysfs_loop_recovery:s0 tclass=file permissive=0 01-01 00:00:15.856 367 367 I auditd : type=1400 audit(0.0:50): avc: denied { write } for comm="binder:367_2" name="uevent" dev="sysfs" ino=45196 scontext=u:r:vold:s0 tcontext=u:object_r:sysfs_loop_recovery:s0 tclass=file permissive=0 01-01 00:00:15.864 367 367 I auditd : type=1400 audit(0.0:51): avc: denied { write } for comm="binder:367_2" name="uevent" dev="sysfs" ino=26059 scontext=u:r:vold:s0 tcontext=u:object_r:sysfs_loop_recovery:s0 tclass=file permissive=0 01-01 00:00:15.912 1 1 I auditd : type=1107 audit(0.0:52): uid=0 auid=4294967295 ses=4294967295 subj=u:r:init:s0 msg='avc: denied { set } for property=vendor.keymaster.optee.status pid=368 uid=1000 gid=1000 scontext=u:r:hal_keymaster_default:s0 tcontext=u:object_r:vendor_default_prop:s0 tclass=property_service permissive=0' 01-01 00:00:16.360 400 400 I auditd : type=1400 audit(0.0:53): avc: denied { read } for comm="e2fsck" name="mmcblk0p50" dev="tmpfs" ino=729 scontext=u:r:fsck:s0 tcontext=u:object_r:block_device:s0 tclass=blk_file permissive=0 01-01 00:00:16.364 400 400 I auditd : type=1400 audit(0.0:54): avc: denied { read write } for comm="e2fsck" name="mmcblk0p50" dev="tmpfs" ino=729 scontext=u:r:fsck:s0 tcontext=u:object_r:block_device:s0 tclass=blk_file permissive=0 01-01 00:00:16.432 405 405 I auditd : type=1400 audit(0.0:55): avc: denied { read } for comm="e2fsck" name="mmcblk0p49" dev="tmpfs" ino=787 scontext=u:r:fsck:s0 tcontext=u:object_r:block_device:s0 tclass=blk_file permissive=0 01-01 00:00:16.432 405 405 I auditd : type=1400 audit(0.0:56): avc: denied { read write } for comm="e2fsck" name="mmcblk0p49" dev="tmpfs" ino=787 scontext=u:r:fsck:s0 tcontext=u:object_r:block_device:s0 tclass=blk_file permissive=0 01-01 00:00:22.744 750 750 I auditd : type=1400 audit(0.0:57): avc: denied { dac_read_search } for comm="bhd_radio_autoc" capability=2 scontext=u:r:systemmix:s0 tcontext=u:r:systemmix:s0 tclass=capability permissive=0 01-01 00:00:22.748 750 750 I auditd : type=1400 audit(0.0:58): avc: denied { dac_override } for comm="bhd_radio_autoc" capability=1 scontext=u:r:systemmix:s0 tcontext=u:r:systemmix:s0 tclass=capability permissive=0 01-01 00:00:22.752 750 750 I auditd : type=1400 audit(0.0:59): avc: denied { read } for comm="bhd_radio_autoc" name="u:object_r:system_prop:s0" dev="tmpfs" ino=424 scontext=u:r:systemmix:s0 tcontext=u:object_r:system_prop:s0 tclass=file permissive=0 01-01 00:00:22.752 750 750 I auditd : type=1400 audit(0.0:60): avc: denied { read } for comm="bhd_radio_autoc" name="u:object_r:system_prop:s0" dev="tmpfs" ino=424 scontext=u:r:systemmix:s0 tcontext=u:object_r:system_prop:s0 tclass=file permissive=0 01-01 00:00:22.752 750 750 I auditd : type=1400 audit(0.0:61): avc: denied { read write } for comm="bhd_radio_autoc" name="gpio_sw" dev="tmpfs" ino=1008 scontext=u:r:systemmix:s0 tcontext=u:object_r:device:s0 tclass=chr_file permissive=0 01-01 00:00:22.852 750 750 I auditd : type=1400 audit(0.0:62): avc: denied { read write } for comm="bhd_radio_autoc" name="i2c-3" dev="tmpfs" ino=757 scontext=u:r:systemmix:s0 tcontext=u:object_r:ttyS_device:s0 tclass=chr_file permissive=0 01-01 00:00:22.856 750 750 I auditd : type=1400 audit(0.0:63): avc: denied { read write } for comm="bhd_radio_autoc" name="i2c-3" dev="tmpfs" ino=757 scontext=u:r:systemmix:s0 tcontext=u:object_r:ttyS_device:s0 tclass=chr_file permissive=0 01-01 00:00:22.856 750 750 I auditd : type=1400 audit(0.0:64): avc: denied { read write } for comm="bhd_radio_autoc" name="i2c-3" dev="tmpfs" ino=757 scontext=u:r:systemmix:s0 tcontext=u:object_r:ttyS_device:s0 tclass=chr_file permissive=0 01-01 00:00:22.856 750 750 I auditd : type=1400 audit(0.0:65): avc: denied { read write } for comm="bhd_radio_autoc" name="i2c-3" dev="tmpfs" ino=757 scontext=u:r:systemmix:s0 tcontext=u:object_r:ttyS_device:s0 tclass=chr_file permissive=0 01-01 00:00:22.896 750 750 I auditd : type=1400 audit(0.0:66): avc: denied { read write } for comm="bhd_radio_autoc" name="i2c-3" dev="tmpfs" ino=757 scontext=u:r:systemmix:s0 tcontext=u:object_r:ttyS_device:s0 tclass=chr_file permissive=0 01-01 00:00:22.896 750 750 I auditd : type=1400 audit(0.0:67): avc: denied { read write } for comm="bhd_radio_autoc" name="i2c-3" dev="tmpfs" ino=757 scontext=u:r:systemmix:s0 tcontext=u:object_r:ttyS_device:s0 tclass=chr_file permissive=0 01-01 00:00:22.896 750 750 I auditd : type=1400 audit(0.0:68): avc: denied { read write } for comm="bhd_radio_autoc" name="i2c-3" dev="tmpfs" ino=757 scontext=u:r:systemmix:s0 tcontext=u:object_r:ttyS_device:s0 tclass=chr_file permissive=0 01-01 00:00:23.296 750 750 I auditd : type=1400 audit(0.0:69): avc: denied { read write } for comm="bhd_radio_autoc" name="i2c-3" dev="tmpfs" ino=757 scontext=u:r:systemmix:s0 tcontext=u:object_r:ttyS_device:s0 tclass=chr_file permissive=0 01-01 00:00:23.296 750 750 I auditd : type=1400 audit(0.0:70): avc: denied { read write } for comm="bhd_radio_autoc" name="i2c-3" dev="tmpfs" ino=757 scontext=u:r:systemmix:s0 tcontext=u:object_r:ttyS_device:s0 tclass=chr_file permissive=0 01-01 00:00:23.300 750 750 I auditd : type=1400 audit(0.0:71): avc: denied { read write } for comm="bhd_radio_autoc" name="i2c-3" dev="tmpfs" ino=757 scontext=u:r:systemmix:s0 tcontext=u:object_r:ttyS_device:s0 tclass=chr_file permissive=0 01-01 00:00:23.304 750 750 I auditd : type=1400 audit(0.0:72): avc: denied { read write } for comm="bhd_radio_autoc" name="i2c-3" dev="tmpfs" ino=757 scontext=u:r:systemmix:s0 tcontext=u:object_r:ttyS_device:s0 tclass=chr_file permissive=0 01-01 00:00:23.304 750 750 I auditd : type=1400 audit(0.0:73): avc: denied { read write } for comm="bhd_radio_autoc" name="i2c-3" dev="tmpfs" ino=757 scontext=u:r:systemmix:s0 tcontext=u:object_r:ttyS_device:s0 tclass=chr_file permissive=0 01-01 00:00:23.308 750 750 I auditd : type=1400 audit(0.0:74): avc: denied { write } for comm="bhd_radio_autoc" name="property_service" dev="tmpfs" ino=715 scontext=u:r:systemmix:s0 tcontext=u:object_r:property_socket:s0 tclass=sock_file permissive=0 01-01 00:00:23.308 750 750 I auditd : type=1400 audit(0.0:75): avc: denied { write } for comm="bhd_radio_autoc" name="property_service" dev="tmpfs" ino=715 scontext=u:r:systemmix:s0 tcontext=u:object_r:property_socket:s0 tclass=sock_file permissive=0 01-01 00:00:23.340 1 1 I auditd : type=1400 audit(0.0:76): avc: denied { write } for comm="init" name="discard_max_bytes" dev="sysfs" ino=40447 scontext=u:r:init:s0 tcontext=u:object_r:sysfs_devices_block:s0 tclass=file permissive=0 01-01 00:00:23.972 792 792 I auditd : type=1400 audit(0.0:77): avc: denied { search } for comm="nvram_daemon" name="android" dev="sysfs" ino=39 scontext=u:r:nvram_daemon:s0 tcontext=u:object_r:sysfs_dt_firmware_android:s0 tclass=dir permissive=0 01-01 00:00:23.972 792 792 I auditd : type=1400 audit(0.0:78): avc: denied { search } for comm="nvram_daemon" name="android" dev="sysfs" ino=39 scontext=u:r:nvram_daemon:s0 tcontext=u:object_r:sysfs_dt_firmware_android:s0 tclass=dir permissive=0 01-01 00:00:23.980 792 792 I auditd : type=1400 audit(0.0:79): avc: denied { search } for comm="nvram_daemon" name="android" dev="sysfs" ino=39 scontext=u:r:nvram_daemon:s0 tcontext=u:object_r:sysfs_dt_firmware_android:s0 tclass=dir permissive=0 01-01 00:00:23.984 792 792 I auditd : type=1400 audit(0.0:80): avc: denied { search } for comm="nvram_daemon" name="android" dev="sysfs" ino=39 scontext=u:r:nvram_daemon:s0 tcontext=u:object_r:sysfs_dt_firmware_android:s0 tclass=dir permissive=0 01-01 00:00:24.184 810 810 I auditd : type=1400 audit(0.0:81): avc: denied { dac_read_search } for comm="gsid" capability=2 scontext=u:r:gsid:s0 tcontext=u:r:gsid:s0 tclass=capability permissive=0 01-01 00:00:24.488 812 812 I auditd : type=1400 audit(0.0:82): avc: denied { dac_read_search } for comm="profcollectctl" capability=2 scontext=u:r:profcollectd:s0 tcontext=u:r:profcollectd:s0 tclass=capability permissive=0 01-01 00:00:24.488 812 812 I auditd : type=1400 audit(0.0:83): avc: denied { dac_override } for comm="profcollectctl" capability=1 scontext=u:r:profcollectd:s0 tcontext=u:r:profcollectd:s0 tclass=capability permissive=0 01-01 00:00:24.952 855 855 I auditd : type=1400 audit(0.0:84): avc: denied { dac_read_search } for comm="adbd" capability=2 scontext=u:r:adbd:s0 tcontext=u:r:adbd:s0 tclass=capability permissive=0 01-01 00:00:24.952 855 855 I auditd : type=1400 audit(0.0:85): avc: denied { dac_override } for comm="adbd" capability=1 scontext=u:r:adbd:s0 tcontext=u:r:adbd:s0 tclass=capability permissive=0 01-01 00:00:25.380 332 332 I auditd : avc: denied { find } for pid=783 uid=1000 name=vendor.mediatek.hardware.composer_ext.IComposerExt/default scontext=u:r:surfaceflinger:s0 tcontext=u:object_r:default_android_service:s0 tclass=service_manager permissive=0 01-01 00:00:25.420 889 889 I auditd : type=1400 audit(0.0:86): avc: denied { dac_read_search } for comm="bhd_radio_autoc" capability=2 scontext=u:r:systemmix:s0 tcontext=u:r:systemmix:s0 tclass=capability permissive=0 01-01 00:00:25.420 889 889 I auditd : type=1400 audit(0.0:87): avc: denied { dac_override } for comm="bhd_radio_autoc" capability=1 scontext=u:r:systemmix:s0 tcontext=u:r:systemmix:s0 tclass=capability permissive=0 01-01 00:00:25.428 889 889 I auditd : type=1400 audit(0.0:88): avc: denied { read } for comm="bhd_radio_autoc" name="u:object_r:system_prop:s0" dev="tmpfs" ino=424 scontext=u:r:systemmix:s0 tcontext=u:object_r:system_prop:s0 tclass=file permissive=0 01-01 00:00:25.428 889 889 I auditd : type=1400 audit(0.0:89): avc: denied { read } for comm="bhd_radio_autoc" name="u:object_r:system_prop:s0" dev="tmpfs" ino=424 scontext=u:r:systemmix:s0 tcontext=u:object_r:system_prop:s0 tclass=file permissive=0 01-01 00:00:25.428 889 889 I auditd : type=1400 audit(0.0:90): avc: denied { read write } for comm="bhd_radio_autoc" name="gpio_sw" dev="tmpfs" ino=1008 scontext=u:r:systemmix:s0 tcontext=u:object_r:device:s0 tclass=chr_file permissive=0 01-01 00:00:25.452 890 890 I auditd : type=1400 audit(0.0:91): avc: denied { dac_read_search } for comm="atrace" capability=2 scontext=u:r:atrace:s0 tcontext=u:r:atrace:s0 tclass=capability permissive=0 01-01 00:00:25.532 889 889 I auditd : type=1400 audit(0.0:92): avc: denied { read write } for comm="bhd_radio_autoc" name="i2c-3" dev="tmpfs" ino=757 scontext=u:r:systemmix:s0 tcontext=u:object_r:ttyS_device:s0 tclass=chr_file permissive=0 01-01 00:00:25.532 889 889 I auditd : type=1400 audit(0.0:93): avc: denied { read write } for comm="bhd_radio_autoc" name="i2c-3" dev="tmpfs" ino=757 scontext=u:r:systemmix:s0 tcontext=u:object_r:ttyS_device:s0 tclass=chr_file permissive=0 01-01 00:00:25.532 889 889 I auditd : type=1400 audit(0.0:94): avc: denied { read write } for comm="bhd_radio_autoc" name="i2c-3" dev="tmpfs" ino=757 scontext=u:r:systemmix:s0 tcontext=u:object_r:ttyS_device:s0 tclass=chr_file permissive=0 01-01 00:00:25.532 889 889 I auditd : type=1400 audit(0.0:95): avc: denied { read write } for comm="bhd_radio_autoc" name="i2c-3" dev="tmpfs" ino=757 scontext=u:r:systemmix:s0 tcontext=u:object_r:ttyS_device:s0 tclass=chr_file permissive=0 01-01 00:00:25.536 1 1 I auditd : type=1400 audit(0.0:96): avc: denied { create } for comm="init" name="lbs_dbg_ext" scontext=u:r:init:s0 tcontext=u:object_r:socket_device:s0 tclass=sock_file permissive=0 01-01 00:00:25.572 889 889 I auditd : type=1400 audit(0.0:97): avc: denied { read write } for comm="bhd_radio_autoc" name="i2c-3" dev="tmpfs" ino=757 scontext=u:r:systemmix:s0 tcontext=u:object_r:ttyS_device:s0 tclass=chr_file permissive=0 01-01 00:00:25.572 889 889 I auditd : type=1400 audit(0.0:98): avc: denied { read write } for comm="bhd_radio_autoc" name="i2c-3" dev="tmpfs" ino=757 scontext=u:r:systemmix:s0 tcontext=u:object_r:ttyS_device:s0 tclass=chr_file permissive=0 01-01 00:00:25.572 889 889 I auditd : type=1400 audit(0.0:99): avc: denied { read write } for comm="bhd_radio_autoc" name="i2c-3" dev="tmpfs" ino=757 scontext=u:r:systemmix:s0 tcontext=u:object_r:ttyS_device:s0 tclass=chr_file permissive=0 01-01 00:00:25.700 920 920 I auditd : type=1400 audit(0.0:100): avc: denied { dac_read_search } for comm="mobile_log_d" capability=2 scontext=u:r:mobile_log_d:s0 tcontext=u:r:mobile_log_d:s0 tclass=capability permissive=0 01-01 00:00:25.708 920 920 I auditd : type=1400 audit(0.0:101): avc: denied { dac_override } for comm="mobile_log_d" capability=1 scontext=u:r:mobile_log_d:s0 tcontext=u:r:mobile_log_d:s0 tclass=capability permissive=0 01-01 00:00:25.712 915 915 I auditd : type=1400 audit(0.0:102): avc: denied { call } for comm="binder:915_2" scontext=u:r:lbs_dbg_ext:s0 tcontext=u:r:servicemanager:s0 tclass=binder permissive=0 01-01 00:00:25.716 915 915 I auditd : type=1400 audit(0.0:103): avc: denied { call } for comm="binder:915_2" scontext=u:r:lbs_dbg_ext:s0 tcontext=u:r:servicemanager:s0 tclass=binder permissive=0 01-01 00:00:25.848 926 926 I auditd : type=1400 audit(0.0:104): avc: denied { read } for comm="netdiag" name="u:object_r:vendor_default_prop:s0" dev="tmpfs" ino=467 scontext=u:r:netdiag:s0 tcontext=u:object_r:vendor_default_prop:s0 tclass=file permissive=0 01-01 00:00:25.924 778 778 I auditd : type=1400 audit(0.0:105): avc: denied { read } for comm="audioserver" name="u:object_r:vendor_default_prop:s0" dev="tmpfs" ino=467 scontext=u:r:audioserver:s0 tcontext=u:object_r:vendor_default_prop:s0 tclass=file permissive=0 01-01 00:00:25.924 778 778 I auditd : type=1400 audit(0.0:106): avc: denied { read } for comm="audioserver" name="u:object_r:vendor_default_prop:s0" dev="tmpfs" ino=467 scontext=u:r:audioserver:s0 tcontext=u:object_r:vendor_default_prop:s0 tclass=file permissive=0 01-01 00:00:25.972 889 889 I auditd : type=1400 audit(0.0:107): avc: denied { read write } for comm="bhd_radio_autoc" name="i2c-3" dev="tmpfs" ino=757 scontext=u:r:systemmix:s0 tcontext=u:object_r:ttyS_device:s0 tclass=chr_file permissive=0 01-01 00:00:25.972 889 889 I auditd : type=1400 audit(0.0:108): avc: denied { read write } for comm="bhd_radio_autoc" name="i2c-3" dev="tmpfs" ino=757 scontext=u:r:systemmix:s0 tcontext=u:object_r:ttyS_device:s0 tclass=chr_file permissive=0 01-01 00:00:25.976 889 889 I auditd : type=1400 audit(0.0:109): avc: denied { read write } for comm="bhd_radio_autoc" name="i2c-3" dev="tmpfs" ino=757 scontext=u:r:systemmix:s0 tcontext=u:object_r:ttyS_device:s0 tclass=chr_file permissive=0 01-01 00:00:25.976 889 889 I auditd : type=1400 audit(0.0:110): avc: denied { read write } for comm="bhd_radio_autoc" name="i2c-3" dev="tmpfs" ino=757 scontext=u:r:systemmix:s0 tcontext=u:object_r:ttyS_device:s0 tclass=chr_file permissive=0 01-01 00:00:25.980 889 889 I auditd : type=1400 audit(0.0:111): avc: denied { read write } for comm="bhd_radio_autoc" name="i2c-3" dev="tmpfs" ino=757 scontext=u:r:systemmix:s0 tcontext=u:object_r:ttyS_device:s0 tclass=chr_file permissive=0 01-01 00:00:25.980 889 889 I auditd : type=1400 audit(0.0:112): avc: denied { write } for comm="bhd_radio_autoc" name="property_service" dev="tmpfs" ino=715 scontext=u:r:systemmix:s0 tcontext=u:object_r:property_socket:s0 tclass=sock_file permissive=0 01-01 00:00:25.980 889 889 I auditd : type=1400 audit(0.0:113): avc: denied { write } for comm="bhd_radio_autoc" name="property_service" dev="tmpfs" ino=715 scontext=u:r:systemmix:s0 tcontext=u:object_r:property_socket:s0 tclass=sock_file permissive=0 01-01 00:00:26.092 929 929 I auditd : type=1400 audit(0.0:114): avc: denied { read } for comm="android.hardwar" name="u:object_r:default_prop:s0" dev="tmpfs" ino=158 scontext=u:r:mediacodec:s0 tcontext=u:object_r:default_prop:s0 tclass=file permissive=0 01-01 00:00:26.156 920 920 I auditd : type=1400 audit(0.0:115): avc: denied { read } for comm="mobile_log_d" name="atc_arm2_log" dev="proc" ino=4026532933 scontext=u:r:mobile_log_d:s0 tcontext=u:object_r:proc:s0 tclass=file permissive=0 01-01 00:00:26.328 778 778 I auditd : type=1400 audit(0.0:116): avc: denied { read } for comm="audioserver" name="u:object_r:vendor_default_prop:s0" dev="tmpfs" ino=467 scontext=u:r:audioserver:s0 tcontext=u:object_r:vendor_default_prop:s0 tclass=file permissive=0 01-01 00:00:26.392 1004 1004 I auditd : type=1400 audit(0.0:117): avc: denied { dac_read_search } for comm="mobile_log_d" capability=2 scontext=u:r:mobile_log_d:s0 tcontext=u:r:mobile_log_d:s0 tclass=capability permissive=0 01-01 00:00:26.404 1004 1004 I auditd : type=1400 audit(0.0:118): avc: denied { dac_override } for comm="mobile_log_d" capability=1 scontext=u:r:mobile_log_d:s0 tcontext=u:r:mobile_log_d:s0 tclass=capability permissive=0 01-01 00:00:26.592 1008 1008 I auditd : type=1400 audit(0.0:119): avc: denied { dac_read_search } for comm="sh" capability=2 scontext=u:r:mobile_log_d:s0 tcontext=u:r:mobile_log_d:s0 tclass=capability permissive=0 01-01 00:00:26.596 1008 1008 I auditd : type=1400 audit(0.0:120): avc: denied { dac_override } for comm="sh" capability=1 scontext=u:r:mobile_log_d:s0 tcontext=u:r:mobile_log_d:s0 tclass=capability permissive=0 01-01 00:00:26.600 1008 1008 I auditd : type=1400 audit(0.0:121): avc: denied { dac_override } for comm="sh" capability=1 scontext=u:r:mobile_log_d:s0 tcontext=u:r:mobile_log_d:s0 tclass=capability permissive=0 01-01 00:00:26.616 1009 1009 I auditd : type=1400 audit(0.0:122): avc: denied { dac_read_search } for comm="sh" capability=2 scontext=u:r:mobile_log_d:s0 tcontext=u:r:mobile_log_d:s0 tclass=capability permissive=0 01-01 00:00:26.616 1009 1009 I auditd : type=1400 audit(0.0:123): avc: denied { dac_override } for comm="sh" capability=1 scontext=u:r:mobile_log_d:s0 tcontext=u:r:mobile_log_d:s0 tclass=capability permissive=0 01-01 00:00:26.644 1013 1013 I auditd : type=1400 audit(0.0:124): avc: denied { dac_read_search } for comm="sh" capability=2 scontext=u:r:mobile_log_d:s0 tcontext=u:r:mobile_log_d:s0 tclass=capability permissive=0 01-01 00:00:26.644 1013 1013 I auditd : type=1400 audit(0.0:125): avc: denied { dac_override } for comm="sh" capability=1 scontext=u:r:mobile_log_d:s0 tcontext=u:r:mobile_log_d:s0 tclass=capability permissive=0 01-01 00:00:26.664 1016 1016 I auditd : type=1400 audit(0.0:126): avc: denied { dac_read_search } for comm="sh" capability=2 scontext=u:r:mobile_log_d:s0 tcontext=u:r:mobile_log_d:s0 tclass=capability permissive=0 01-01 00:00:26.664 1016 1016 I auditd : type=1400 audit(0.0:127): avc: denied { dac_override } for comm="sh" capability=1 scontext=u:r:mobile_log_d:s0 tcontext=u:r:mobile_log_d:s0 tclass=capability permissive=0 01-01 00:00:26.688 1017 1017 I auditd : type=1400 audit(0.0:128): avc: denied { dac_read_search } for comm="sh" capability=2 scontext=u:r:mobile_log_d:s0 tcontext=u:r:mobile_log_d:s0 tclass=capability permissive=0 01-01 00:00:26.688 1017 1017 I auditd : type=1400 audit(0.0:129): avc: denied { dac_override } for comm="sh" capability=1 scontext=u:r:mobile_log_d:s0 tcontext=u:r:mobile_log_d:s0 tclass=capability permissive=0 01-01 00:00:27.184 1037 1037 I auditd : type=1400 audit(0.0:130): avc: denied { read } for comm="aee" name="u:object_r:system_mtk_persist_aee_prop:s0" dev="tmpfs" ino=388 scontext=u:r:mobile_log_d:s0 tcontext=u:object_r:system_mtk_persist_aee_prop:s0 tclass=file permissive=0 01-01 00:00:28.060 907 907 I auditd : type=1400 audit(0.0:131): avc: denied { read } for comm="system_server" name="u:object_r:qemu_sf_lcd_density_prop:s0" dev="tmpfs" ino=286 scontext=u:r:system_server:s0 tcontext=u:object_r:qemu_sf_lcd_density_prop:s0 tclass=file permissive=0 01-01 00:00:28.060 907 907 I auditd : type=1400 audit(0.0:132): avc: denied { read } for comm="system_server" name="u:object_r:qemu_sf_lcd_density_prop:s0" dev="tmpfs" ino=286 scontext=u:r:system_server:s0 tcontext=u:object_r:qemu_sf_lcd_density_prop:s0 tclass=file permissive=0 01-01 00:00:28.552 907 907 I auditd : type=1400 audit(0.0:133): avc: denied { execute } for comm="system_server" name="idmap2" dev="dm-6" ino=288 scontext=u:r:system_server:s0 tcontext=u:object_r:idmap_exec:s0 tclass=file permissive=0 01-01 00:00:30.480 424 424 I auditd : type=1400 audit(0.0:134): avc: denied { read } for comm="binder:424_2" name="wakeup2" dev="sysfs" ino=37747 scontext=u:r:system_suspend:s0 tcontext=u:object_r:sysfs:s0 tclass=dir permissive=0 01-01 00:00:30.488 424 424 I auditd : type=1400 audit(0.0:135): avc: denied { read } for comm="binder:424_2" name="wakeup26" dev="sysfs" ino=49976 scontext=u:r:system_suspend:s0 tcontext=u:object_r:sysfs:s0 tclass=dir permissive=0 01-01 00:00:30.544 424 424 I auditd : type=1400 audit(0.0:136): avc: denied { read } for comm="binder:424_2" name="wakeup7" dev="sysfs" ino=41499 scontext=u:r:system_suspend:s0 tcontext=u:object_r:sysfs_usb_nonplat:s0 tclass=dir permissive=0 01-01 00:00:30.564 424 424 I auditd : type=1400 audit(0.0:137): avc: denied { read } for comm="binder:424_2" name="wakeup10" dev="sysfs" ino=41988 scontext=u:r:system_suspend:s0 tcontext=u:object_r:sysfs_rtc:s0 tclass=dir permissive=0 01-01 00:00:31.708 778 778 I auditd : type=1400 audit(0.0:138): avc: denied { read } for comm="audioserver" name="u:object_r:vendor_default_prop:s0" dev="tmpfs" ino=467 scontext=u:r:audioserver:s0 tcontext=u:object_r:vendor_default_prop:s0 tclass=file permissive=0 01-01 00:00:31.716 778 778 I auditd : type=1400 audit(0.0:139): avc: denied { read } for comm="audioserver" name="u:object_r:vendor_default_prop:s0" dev="tmpfs" ino=467 scontext=u:r:audioserver:s0 tcontext=u:object_r:vendor_default_prop:s0 tclass=file permissive=0 01-01 00:00:31.832 778 778 I auditd : type=1400 audit(0.0:140): avc: denied { read } for comm="audioserver" name="u:object_r:vendor_default_prop:s0" dev="tmpfs" ino=467 scontext=u:r:audioserver:s0 tcontext=u:object_r:vendor_default_prop:s0 tclass=file permissive=0 01-01 00:00:31.832 778 778 I auditd : type=1400 audit(0.0:141): avc: denied { read } for comm="audioserver" name="u:object_r:vendor_default_prop:s0" dev="tmpfs" ino=467 scontext=u:r:audioserver:s0 tcontext=u:object_r:vendor_default_prop:s0 tclass=file permissive=0 01-01 00:00:31.880 778 778 I auditd : type=1400 audit(0.0:142): avc: denied { read } for comm="audioserver" name="u:object_r:vendor_default_prop:s0" dev="tmpfs" ino=467 scontext=u:r:audioserver:s0 tcontext=u:object_r:vendor_default_prop:s0 tclass=file permissive=0 01-01 00:00:31.880 778 778 I auditd : type=1400 audit(0.0:143): avc: denied { read } for comm="audioserver" name="u:object_r:vendor_default_prop:s0" dev="tmpfs" ino=467 scontext=u:r:audioserver:s0 tcontext=u:object_r:vendor_default_prop:s0 tclass=file permissive=0 05-29 06:30:56.804 907 907 I auditd : type=1400 audit(0.0:144): avc: denied { read } for comm="InputReader" name="virtualkeys.mtk-tpd" dev="sysfs" ino=62995 scontext=u:r:system_server:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=0 05-29 06:30:56.976 1164 1164 I auditd : type=1400 audit(0.0:145): avc: denied { dac_read_search } for comm="extra_free_kbyt" capability=2 scontext=u:r:extra_free_kbytes:s0 tcontext=u:r:extra_free_kbytes:s0 tclass=capability permissive=0 05-29 06:30:56.976 1164 1164 I auditd : type=1400 audit(0.0:146): avc: denied { dac_override } for comm="extra_free_kbyt" capability=1 scontext=u:r:extra_free_kbytes:s0 tcontext=u:r:extra_free_kbytes:s0 tclass=capability permissive=0 05-29 06:30:58.608 332 332 I auditd : avc: denied { find } for pid=907 uid=1000 name=vendor.mediatek.hardware.nps.nos.fastswitch.INativeFastSwitch/default scontext=u:r:system_server:s0 tcontext=u:object_r:default_android_service:s0 tclass=service_manager permissive=0 05-29 06:31:00.728 766 766 I auditd : type=1400 audit(0.0:147): avc: denied { read } for comm="VcodecProcess" name="u:object_r:default_prop:s0" dev="tmpfs" ino=158 scontext=u:r:mtk_hal_c2:s0 tcontext=u:object_r:default_prop:s0 tclass=file permissive=0 05-29 06:31:00.764 766 766 I auditd : type=1400 audit(0.0:148): avc: denied { read } for comm="VcodecProcess" name="u:object_r:default_prop:s0" dev="tmpfs" ino=158 scontext=u:r:mtk_hal_c2:s0 tcontext=u:object_r:default_prop:s0 tclass=file permissive=0 05-29 06:31:00.788 766 766 I auditd : type=1400 audit(0.0:149): avc: denied { read } for comm="VcodecProcess" name="u:object_r:default_prop:s0" dev="tmpfs" ino=158 scontext=u:r:mtk_hal_c2:s0 tcontext=u:object_r:default_prop:s0 tclass=file permissive=0 05-29 06:31:00.812 766 766 I auditd : type=1400 audit(0.0:150): avc: denied { read } for comm="VcodecProcess" name="u:object_r:default_prop:s0" dev="tmpfs" ino=158 scontext=u:r:mtk_hal_c2:s0 tcontext=u:object_r:default_prop:s0 tclass=file permissive=0 05-29 06:31:02.331 332 332 I auditd : avc: denied { find } for pid=907 uid=1000 name=vendor.mediatek.hardware.mtkpower.IMtkPowerService/default scontext=u:r:system_server:s0 tcontext=u:object_r:default_android_service:s0 tclass=service_manager permissive=0 05-29 06:31:02.748 332 332 I auditd : avc: denied { add } for pid=907 uid=1000 name=vendor.mediatek.hardware.mbrainj.IMBrainJava/default scontext=u:r:system_server:s0 tcontext=u:object_r:default_android_service:s0 tclass=service_manager permissive=0 05-29 06:31:02.976 1477 1477 I auditd : type=1400 audit(0.0:151): avc: granted { read } for comm="rkstack.process" name="psched" dev="proc" ino=4026532090 scontext=u:r:network_stack:s0 tcontext=u:object_r:proc_net:s0 tclass=file 05-29 06:31:02.976 1477 1477 I auditd : type=1400 audit(0.0:152): avc: granted { read open } for comm="rkstack.process" path="/proc/1477/net/psched" dev="proc" ino=4026532090 scontext=u:r:network_stack:s0 tcontext=u:object_r:proc_net:s0 tclass=file 05-29 06:31:02.976 1477 1477 I auditd : type=1400 audit(0.0:153): avc: granted { getattr } for comm="rkstack.process" path="/proc/1477/net/psched" dev="proc" ino=4026532090 scontext=u:r:network_stack:s0 tcontext=u:object_r:proc_net:s0 tclass=file 05-29 06:31:04.859 332 332 I auditd : avc: denied { add } for pid=907 uid=1000 name=vendor.mediatek.hardware.mbrainj.IMBrainJava/default scontext=u:r:system_server:s0 tcontext=u:object_r:default_android_service:s0 tclass=service_manager permissive=0 05-29 06:31:11.640 1971 1971 I auditd : type=1400 audit(0.0:154): avc: denied { dac_read_search } for comm="aee_aed" capability=2 scontext=u:r:crash_dump:s0 tcontext=u:r:crash_dump:s0 tclass=capability permissive=0 05-29 06:31:11.640 1971 1971 I auditd : type=1400 audit(0.0:155): avc: denied { dac_override } for comm="aee_aed" capability=1 scontext=u:r:crash_dump:s0 tcontext=u:r:crash_dump:s0 tclass=capability permissive=0 05-29 06:31:11.688 1982 1982 I auditd : type=1400 audit(0.0:156): avc: denied { dac_read_search } for comm="perfetto" capability=2 scontext=u:r:perfetto:s0 tcontext=u:r:perfetto:s0 tclass=capability permissive=0 05-29 06:31:11.688 1982 1982 I auditd : type=1400 audit(0.0:157): avc: denied { dac_override } for comm="perfetto" capability=1 scontext=u:r:perfetto:s0 tcontext=u:r:perfetto:s0 tclass=capability permissive=0 05-29 06:31:11.948 259 259 I auditd : type=1400 audit(0.0:158): avc: denied { write } for comm="init" name="control" dev="proc" ino=4026532112 scontext=u:r:vendor_init:s0 tcontext=u:object_r:proc_dynamic_debug_control:s0 tclass=file permissive=0 05-29 06:31:13.240 2075 2075 I auditd : type=1400 audit(0.0:159): avc: denied { setattr } for comm="wmt_loader" name="wmt_aee" dev="proc" ino=4026534089 scontext=u:r:wmt_loader:s0 tcontext=u:object_r:proc_wmt_aee:s0 tclass=file permissive=0 05-29 06:31:13.456 1 1 I auditd : type=1107 audit(0.0:160): uid=0 auid=4294967295 ses=4294967295 subj=u:r:init:s0 msg='avc: denied { set } for property=vendor.pullFWlog pid=2108 uid=2000 gid=1007 scontext=u:r:connsyslogger:s0 tcontext=u:object_r:vendor_default_prop:s0 tclass=property_service permissive=0' 05-29 06:31:13.488 424 424 I auditd : type=1400 audit(0.0:161): avc: denied { read } for comm="binder:424_3" name="wakeup2" dev="sysfs" ino=37747 scontext=u:r:system_suspend:s0 tcontext=u:object_r:sysfs:s0 tclass=dir permissive=0 05-29 06:31:13.504 424 424 I auditd : type=1400 audit(0.0:162): avc: denied { read } for comm="binder:424_3" name="wakeup26" dev="sysfs" ino=49976 scontext=u:r:system_suspend:s0 tcontext=u:object_r:sysfs:s0 tclass=dir permissive=0 05-29 06:31:13.660 424 424 I auditd : type=1400 audit(0.0:163): avc: denied { read } for comm="binder:424_3" name="wakeup7" dev="sysfs" ino=41499 scontext=u:r:system_suspend:s0 tcontext=u:object_r:sysfs_usb_nonplat:s0 tclass=dir permissive=0 05-29 06:31:13.812 424 424 I auditd : type=1400 audit(0.0:164): avc: denied { read } for comm="binder:424_3" name="wakeup10" dev="sysfs" ino=41988 scontext=u:r:system_suspend:s0 tcontext=u:object_r:sysfs_rtc:s0 tclass=dir permissive=0 05-29 06:31:14.060 332 332 I auditd : avc: denied { find } for pid=2021 uid=1000 name=hzbhd_share scontext=u:r:system_app:s0 tcontext=u:object_r:default_android_service:s0 tclass=service_manager permissive=0 05-29 06:31:14.995 332 332 I auditd : avc: denied { find } for pid=907 uid=1000 name=vendor.mediatek.hardware.lbs.ILbs/mtk_lppe_socket_wlan scontext=u:r:system_server:s0 tcontext=u:object_r:default_android_service:s0 tclass=service_manager permissive=0 05-29 06:31:15.072 332 332 I auditd : avc: denied { find } for pid=907 uid=1000 name=vendor.mediatek.hardware.lbs.ILbs/mtk_lppe_socket_bt scontext=u:r:system_server:s0 tcontext=u:object_r:default_android_service:s0 tclass=service_manager permissive=0 05-29 06:31:15.120 332 332 I auditd : avc: denied { find } for pid=907 uid=1000 name=vendor.mediatek.hardware.lbs.ILbs/mtk_lppe_socket_sensor scontext=u:r:system_server:s0 tcontext=u:object_r:default_android_service:s0 tclass=service_manager permissive=0 05-29 06:31:15.141 332 332 I auditd : avc: denied { find } for pid=907 uid=1000 name=vendor.mediatek.hardware.lbs.ILbs/mtk_lppe_socket_network scontext=u:r:system_server:s0 tcontext=u:object_r:default_android_service:s0 tclass=service_manager permissive=0 05-29 06:31:15.161 332 332 I auditd : avc: denied { find } for pid=907 uid=1000 name=vendor.mediatek.hardware.lbs.ILbs/mtk_lppe_socket_ipaddr scontext=u:r:system_server:s0 tcontext=u:object_r:default_android_service:s0 tclass=service_manager permissive=0 05-29 06:31:15.175 332 332 I auditd : avc: denied { find } for pid=907 uid=1000 name=vendor.mediatek.hardware.lbs.ILbs/mtk_lppe_socket_lbs scontext=u:r:system_server:s0 tcontext=u:object_r:default_android_service:s0 tclass=service_manager permissive=0 05-29 06:31:15.237 332 332 I auditd : avc: denied { find } for pid=907 uid=1000 name=vendor.mediatek.hardware.lbs.ILbs/mtk_agps2framework scontext=u:r:system_server:s0 tcontext=u:object_r:default_android_service:s0 tclass=service_manager permissive=0 05-29 06:31:15.288 332 332 I auditd : avc: denied { find } for pid=907 uid=1000 name=vendor.mediatek.hardware.lbs.ILbs/mtk_lppe_socket_agps scontext=u:r:system_server:s0 tcontext=u:object_r:default_android_service:s0 tclass=service_manager permissive=0 05-29 06:31:16.234 332 332 I auditd : avc: denied { find } for pid=2236 uid=10082 name=vendor.mediatek.hardware.lbs.ILbs/mtk_mtklogger2mnld scontext=u:r:platform_app:s0:c512,c768 tcontext=u:object_r:default_android_service:s0 tclass=service_manager permissive=0 05-29 06:31:16.339 332 332 I auditd : avc: denied { find } for pid=2236 uid=10082 name=vendor.mediatek.hardware.lbs.ILbs/mtk_mtklogger2mnld scontext=u:r:platform_app:s0:c512,c768 tcontext=u:object_r:default_android_service:s0 tclass=service_manager permissive=0 05-29 06:31:16.448 332 332 I auditd : avc: denied { find } for pid=2236 uid=10082 name=vendor.mediatek.hardware.lbs.ILbs/mtk_mtklogger2mnld scontext=u:r:platform_app:s0:c512,c768 tcontext=u:object_r:default_android_service:s0 tclass=service_manager permissive=0 05-29 06:31:16.712 920 920 I auditd : type=1400 audit(0.0:166): avc: denied { read } for comm="mobile_log_d.cp" name="last_arm2_log" dev="proc" ino=4026532935 scontext=u:r:mobile_log_d:s0 tcontext=u:object_r:proc:s0 tclass=file permissive=0 05-29 06:31:16.752 2484 2484 I auditd : type=1400 audit(0.0:167): avc: denied { read } for comm="logcat" path="/proc/kmsg" dev="proc" ino=4026532106 scontext=u:r:dumpstate:s0 tcontext=u:object_r:proc_kmsg:s0 tclass=file permissive=0 05-29 06:31:16.752 2484 2484 I auditd : type=1400 audit(0.0:168): avc: denied { read } for comm="logcat" path="/dev/scp" dev="tmpfs" ino=1232 scontext=u:r:dumpstate:s0 tcontext=u:object_r:scp_device:s0 tclass=chr_file permissive=0 05-29 06:31:16.752 2484 2484 I auditd : type=1400 audit(0.0:169): avc: denied { read } for comm="logcat" path="/dev/sspm" dev="tmpfs" ino=1183 scontext=u:r:dumpstate:s0 tcontext=u:object_r:sspm_device:s0 tclass=chr_file permissive=0 05-29 06:31:16.752 2484 2484 I auditd : type=1400 audit(0.0:170): avc: denied { read append } for comm="logcat" path="/data/log_temp/boot_3__normal/main_log_2010_0101_000027.curf" dev="mmcblk0p51" ino=745477 scontext=u:r:dumpstate:s0 tcontext=u:object_r:logtemp_data_file:s0 tclass=file permissive=0 05-29 06:58:41.496 3308 3308 I auditd : type=1400 audit(0.0:179): avc: denied { dac_read_search } for comm="bhd_radio_autoc" capability=2 scontext=u:r:systemmix:s0 tcontext=u:r:systemmix:s0 tclass=capability permissive=0 05-29 06:58:41.496 3308 3308 I auditd : type=1400 audit(0.0:180): avc: denied { dac_override } for comm="bhd_radio_autoc" capability=1 scontext=u:r:systemmix:s0 tcontext=u:r:systemmix:s0 tclass=capability permissive=0 05-29 06:58:41.500 3308 3308 I auditd : type=1400 audit(0.0:181): avc: denied { read } for comm="bhd_radio_autoc" name="u:object_r:system_prop:s0" dev="tmpfs" ino=424 scontext=u:r:systemmix:s0 tcontext=u:object_r:system_prop:s0 tclass=file permissive=0 05-29 06:58:41.500 3308 3308 I auditd : type=1400 audit(0.0:182): avc: denied { read } for comm="bhd_radio_autoc" name="u:object_r:system_prop:s0" dev="tmpfs" ino=424 scontext=u:r:systemmix:s0 tcontext=u:object_r:system_prop:s0 tclass=file permissive=0 05-29 06:58:41.500 3308 3308 I auditd : type=1400 audit(0.0:183): avc: denied { read write } for comm="bhd_radio_autoc" name="gpio_sw" dev="tmpfs" ino=1008 scontext=u:r:systemmix:s0 tcontext=u:object_r:device:s0 tclass=chr_file permissive=0 05-29 06:58:49.824 3315 3315 I auditd : type=1400 audit(0.0:198): avc: denied { dac_read_search } for comm="bhd_radio_autoc" capability=2 scontext=u:r:systemmix:s0 tcontext=u:r:systemmix:s0 tclass=capability permissive=0 05-29 06:58:49.824 3315 3315 I auditd : type=1400 audit(0.0:199): avc: denied { dac_override } for comm="bhd_radio_autoc" capability=1 scontext=u:r:systemmix:s0 tcontext=u:r:systemmix:s0 tclass=capability permissive=0 05-29 06:58:49.828 3315 3315 I auditd : type=1400 audit(0.0:200): avc: denied { read } for comm="bhd_radio_autoc" name="u:object_r:system_prop:s0" dev="tmpfs" ino=424 scontext=u:r:systemmix:s0 tcontext=u:object_r:system_prop:s0 tclass=file permissive=0 05-29 06:58:49.828 3315 3315 I auditd : type=1400 audit(0.0:201): avc: denied { read } for comm="bhd_radio_autoc" name="u:object_r:system_prop:s0" dev="tmpfs" ino=424 scontext=u:r:systemmix:s0 tcontext=u:object_r:system_prop:s0 tclass=file permissive=0 05-29 06:58:49.828 3315 3315 I auditd : type=1400 audit(0.0:202): avc: denied { read write } for comm="bhd_radio_autoc" name="gpio_sw" dev="tmpfs" ino=1008 scontext=u:r:systemmix:s0 tcontext=u:object_r:device:s0 tclass=chr_file permissive=0 05-29 06:59:02.224 3323 3323 I auditd : type=1400 audit(0.0:217): avc: denied { dac_read_search } for comm="bhd_radio_autoc" capability=2 scontext=u:r:systemmix:s0 tcontext=u:r:systemmix:s0 tclass=capability permissive=0 05-29 06:59:02.224 3323 3323 I auditd : type=1400 audit(0.0:218): avc: denied { dac_override } for comm="bhd_radio_autoc" capability=1 scontext=u:r:systemmix:s0 tcontext=u:r:systemmix:s0 tclass=capability permissive=0 05-29 06:59:02.228 3323 3323 I auditd : type=1400 audit(0.0:219): avc: denied { read } for comm="bhd_radio_autoc" name="u:object_r:system_prop:s0" dev="tmpfs" ino=424 scontext=u:r:systemmix:s0 tcontext=u:object_r:system_prop:s0 tclass=file permissive=0 05-29 06:59:02.228 3323 3323 I auditd : type=1400 audit(0.0:220): avc: denied { read } for comm="bhd_radio_autoc" name="u:object_r:system_prop:s0" dev="tmpfs" ino=424 scontext=u:r:systemmix:s0 tcontext=u:object_r:system_prop:s0 tclass=file permissive=0 05-29 06:59:02.228 3323 3323 I auditd : type=1400 audit(0.0:221): avc: denied { read write } for comm="bhd_radio_autoc" name="gpio_sw" dev="tmpfs" ino=1008 scontext=u:r:systemmix:s0 tcontext=u:object_r:device:s0 tclass=chr_file permissive=0 05-29 06:59:07.004 3328 3328 I auditd : type=1400 audit(0.0:236): avc: denied { dac_read_search } for comm="bhd_radio_autoc" capability=2 scontext=u:r:systemmix:s0 tcontext=u:r:systemmix:s0 tclass=capability permissive=0 05-29 06:59:07.004 3328 3328 I auditd : type=1400 audit(0.0:237): avc: denied { dac_override } for comm="bhd_radio_autoc" capability=1 scontext=u:r:systemmix:s0 tcontext=u:r:systemmix:s0 tclass=capability permissive=0 05-29 06:59:07.004 3328 3328 I auditd : type=1400 audit(0.0:238): avc: denied { read } for comm="bhd_radio_autoc" name="u:object_r:system_prop:s0" dev="tmpfs" ino=424 scontext=u:r:systemmix:s0 tcontext=u:object_r:system_prop:s0 tclass=file permissive=0 05-29 06:59:07.008 3328 3328 I auditd : type=1400 audit(0.0:239): avc: denied { read } for comm="bhd_radio_autoc" name="u:object_r:system_prop:s0" dev="tmpfs" ino=424 scontext=u:r:systemmix:s0 tcontext=u:object_r:system_prop:s0 tclass=file permissive=0 05-29 06:59:07.008 3328 3328 I auditd : type=1400 audit(0.0:240): avc: denied { read write } for comm="bhd_radio_autoc" name="gpio_sw" dev="tmpfs" ino=1008 scontext=u:r:systemmix:s0 tcontext=u:object_r:device:s0 tclass=chr_file permissive=0 05-29 06:59:08.744 3331 3331 I auditd : type=1400 audit(0.0:255): avc: denied { dac_read_search } for comm="bhd_radio_autoc" capability=2 scontext=u:r:systemmix:s0 tcontext=u:r:systemmix:s0 tclass=capability permissive=0 05-29 06:59:08.744 3331 3331 I auditd : type=1400 audit(0.0:256): avc: denied { dac_override } for comm="bhd_radio_autoc" capability=1 scontext=u:r:systemmix:s0 tcontext=u:r:systemmix:s0 tclass=capability permissive=0 05-29 06:59:08.748 3331 3331 I auditd : type=1400 audit(0.0:257): avc: denied { read } for comm="bhd_radio_autoc" name="u:object_r:system_prop:s0" dev="tmpfs" ino=424 scontext=u:r:systemmix:s0 tcontext=u:object_r:system_prop:s0 tclass=file permissive=0 05-29 06:59:08.748 3331 3331 I auditd : type=1400 audit(0.0:258): avc: denied { read } for comm="bhd_radio_autoc" name="u:object_r:system_prop:s0" dev="tmpfs" ino=424 scontext=u:r:systemmix:s0 tcontext=u:object_r:system_prop:s0 tclass=file permissive=0 05-29 06:59:08.748 3331 3331 I auditd : type=1400 audit(0.0:259): avc: denied { read write } for comm="bhd_radio_autoc" name="gpio_sw" dev="tmpfs" ino=1008 scontext=u:r:systemmix:s0 tcontext=u:object_r:device:s0 tclass=chr_file permissive=0 05-29 06:59:10.088 3334 3334 I auditd : type=1400 audit(0.0:286): avc: denied { read write } for comm="bhd_radio_autoc" name="i2c-3" dev="tmpfs" ino=757 scontext=u:r:systemmix:s0 tcontext=u:object_r:ttyS_device:s0 tclass=chr_file permissive=0 05-29 06:59:10.088 3334 3334 I auditd : type=1400 audit(0.0:287): avc: denied { read write } for comm="bhd_radio_autoc" name="i2c-3" dev="tmpfs" ino=757 scontext=u:r:systemmix:s0 tcontext=u:object_r:ttyS_device:s0 tclass=chr_file permissive=0 05-29 06:59:10.088 3334 3334 I auditd : type=1400 audit(0.0:288): avc: denied { read write } for comm="bhd_radio_autoc" name="i2c-3" dev="tmpfs" ino=757 scontext=u:r:systemmix:s0 tcontext=u:object_r:ttyS_device:s0 tclass=chr_file permissive=0 05-29 06:59:10.088 3334 3334 I auditd : type=1400 audit(0.0:289): avc: denied { read write } for comm="bhd_radio_autoc" name="i2c-3" dev="tmpfs" ino=757 scontext=u:r:systemmix:s0 tcontext=u:object_r:ttyS_device:s0 tclass=chr_file permissive=0 05-29 06:59:10.092 3334 3334 I auditd : type=1400 audit(0.0:290): avc: denied { read write } for comm="bhd_radio_autoc" name="i2c-3" dev="tmpfs" ino=757 scontext=u:r:systemmix:s0 tcontext=u:object_r:ttyS_device:s0 tclass=chr_file permissive=0 05-29 06:59:11.296 3342 3342 I auditd : type=1400 audit(0.0:317): avc: denied { read write } for comm="bhd_radio_autoc" name="i2c-3" dev="tmpfs" ino=757 scontext=u:r:systemmix:s0 tcontext=u:object_r:ttyS_device:s0 tclass=chr_file permissive=0 05-29 06:59:11.300 3342 3342 I auditd : type=1400 audit(0.0:318): avc: denied { read write } for comm="bhd_radio_autoc" name="i2c-3" dev="tmpfs" ino=757 scontext=u:r:systemmix:s0 tcontext=u:object_r:ttyS_device:s0 tclass=chr_file permissive=0 05-29 06:59:11.300 3342 3342 I auditd : type=1400 audit(0.0:319): avc: denied { read write } for comm="bhd_radio_autoc" name="i2c-3" dev="tmpfs" ino=757 scontext=u:r:systemmix:s0 tcontext=u:object_r:ttyS_device:s0 tclass=chr_file permissive=0 05-29 06:59:11.304 3342 3342 I auditd : type=1400 audit(0.0:320): avc: denied { read write } for comm="bhd_radio_autoc" name="i2c-3" dev="tmpfs" ino=757 scontext=u:r:systemmix:s0 tcontext=u:object_r:ttyS_device:s0 tclass=chr_file permissive=0 05-29 06:59:11.308 3342 3342 I auditd : type=1400 audit(0.0:321): avc: denied { read write } for comm="bhd_radio_autoc" name="i2c-3" dev="tmpfs" ino=757 scontext=u:r:systemmix:s0 tcontext=u:object_r:ttyS_device:s0 tclass=chr_file permissive=0 05-29 06:59:12.400 3345 3345 I auditd : type=1400 audit(0.0:336): avc: denied { read write } for comm="bhd_radio_autoc" name="i2c-3" dev="tmpfs" ino=757 scontext=u:r:systemmix:s0 tcontext=u:object_r:ttyS_device:s0 tclass=chr_file permissive=0 05-29 06:59:12.400 3345 3345 I auditd : type=1400 audit(0.0:337): avc: denied { read write } for comm="bhd_radio_autoc" name="i2c-3" dev="tmpfs" ino=757 scontext=u:r:systemmix:s0 tcontext=u:object_r:ttyS_device:s0 tclass=chr_file permissive=0 05-29 06:59:12.404 3345 3345 I auditd : type=1400 audit(0.0:338): avc: denied { read write } for comm="bhd_radio_autoc" name="i2c-3" dev="tmpfs" ino=757 scontext=u:r:systemmix:s0 tcontext=u:object_r:ttyS_device:s0 tclass=chr_file permissive=0 05-29 06:59:12.408 3345 3345 I auditd : type=1400 audit(0.0:339): avc: denied { read write } for comm="bhd_radio_autoc" name="i2c-3" dev="tmpfs" ino=757 scontext=u:r:systemmix:s0 tcontext=u:object_r:ttyS_device:s0 tclass=chr_file permissive=0 05-29 06:59:12.408 3345 3345 I auditd : type=1400 audit(0.0:340): avc: denied { read write } for comm="bhd_radio_autoc" name="i2c-3" dev="tmpfs" ino=757 scontext=u:r:systemmix:s0 tcontext=u:object_r:ttyS_device:s0 tclass=chr_file permissive=0 05-29 06:59:13.432 3348 3348 I auditd : type=1400 audit(0.0:355): avc: denied { read write } for comm="bhd_radio_autoc" name="i2c-3" dev="tmpfs" ino=757 scontext=u:r:systemmix:s0 tcontext=u:object_r:ttyS_device:s0 tclass=chr_file permissive=0 05-29 06:59:13.432 3348 3348 I auditd : type=1400 audit(0.0:356): avc: denied { read write } for comm="bhd_radio_autoc" name="i2c-3" dev="tmpfs" ino=757 scontext=u:r:systemmix:s0 tcontext=u:object_r:ttyS_device:s0 tclass=chr_file permissive=0 05-29 06:59:13.436 3348 3348 I auditd : type=1400 audit(0.0:357): avc: denied { read write } for comm="bhd_radio_autoc" name="i2c-3" dev="tmpfs" ino=757 scontext=u:r:systemmix:s0 tcontext=u:object_r:ttyS_device:s0 tclass=chr_file permissive=0 05-29 06:59:13.440 3348 3348 I auditd : type=1400 audit(0.0:358): avc: denied { read write } for comm="bhd_radio_autoc" name="i2c-3" dev="tmpfs" ino=757 scontext=u:r:systemmix:s0 tcontext=u:object_r:ttyS_device:s0 tclass=chr_file permissive=0 05-29 06:59:13.444 3348 3348 I auditd : type=1400 audit(0.0:359): avc: denied { read write } for comm="bhd_radio_autoc" name="i2c-3" dev="tmpfs" ino=757 scontext=u:r:systemmix:s0 tcontext=u:object_r:ttyS_device:s0 tclass=chr_file permissive=0 05-29 06:59:15.116 3353 3353 I auditd : type=1400 audit(0.0:362): avc: denied { dac_read_search } for comm="bhd_radio_autoc" capability=2 scontext=u:r:systemmix:s0 tcontext=u:r:systemmix:s0 tclass=capability permissive=0 05-29 06:59:15.116 3353 3353 I auditd : type=1400 audit(0.0:363): avc: denied { dac_override } for comm="bhd_radio_autoc" capability=1 scontext=u:r:systemmix:s0 tcontext=u:r:systemmix:s0 tclass=capability permissive=0 05-29 06:59:15.124 3353 3353 I auditd : type=1400 audit(0.0:364): avc: denied { read } for comm="bhd_radio_autoc" name="u:object_r:system_prop:s0" dev="tmpfs" ino=424 scontext=u:r:systemmix:s0 tcontext=u:object_r:system_prop:s0 tclass=file permissive=0 05-29 06:59:15.124 3353 3353 I auditd : type=1400 audit(0.0:365): avc: denied { read } for comm="bhd_radio_autoc" name="u:object_r:system_prop:s0" dev="tmpfs" ino=424 scontext=u:r:systemmix:s0 tcontext=u:object_r:system_prop:s0 tclass=file permissive=0 05-29 06:59:15.124 3353 3353 I auditd : type=1400 audit(0.0:366): avc: denied { read write } for comm="bhd_radio_autoc" name="gpio_sw" dev="tmpfs" ino=1008 scontext=u:r:systemmix:s0 tcontext=u:object_r:device:s0 tclass=chr_file permissive=0 05-29 07:00:29.388 424 424 I auditd : type=1400 audit(0.0:381): avc: denied { read } for comm="binder:424_3" name="wakeup2" dev="sysfs" ino=37747 scontext=u:r:system_suspend:s0 tcontext=u:object_r:sysfs:s0 tclass=dir permissive=0 05-29 07:00:29.392 424 424 I auditd : type=1400 audit(0.0:382): avc: denied { read } for comm="binder:424_3" name="wakeup26" dev="sysfs" ino=49976 scontext=u:r:system_suspend:s0 tcontext=u:object_r:sysfs:s0 tclass=dir permissive=0 05-29 07:00:29.408 424 424 I auditd : type=1400 audit(0.0:383): avc: denied { read } for comm="binder:424_3" name="wakeup7" dev="sysfs" ino=41499 scontext=u:r:system_suspend:s0 tcontext=u:object_r:sysfs_usb_nonplat:s0 tclass=dir permissive=0 05-29 07:00:29.416 424 424 I auditd : type=1400 audit(0.0:384): avc: denied { read } for comm="binder:424_3" name="wakeup10" dev="sysfs" ino=41988 scontext=u:r:system_suspend:s0 tcontext=u:object_r:sysfs_rtc:s0 tclass=dir permissive=0 05-29 07:00:29.436 424 424 I auditd : type=1400 audit(0.0:385): avc: denied { read } for comm="binder:424_3" name="wakeup63" dev="sysfs" ino=64642 scontext=u:r:system_suspend:s0 tcontext=u:object_r:sysfs:s0 tclass=dir permissive=0
最新发布
05-30
<think>好的,用户想解决安卓系统中因SELinux策略导致的权限拒绝问题,比如avc: denied错误。我需要结合之前的引用和回答,给出清晰的解决步骤。首先,用户提供的引用里提到了临时禁用SELinux的方法,以及如何通过修改.te文件添加allow规则。我之前回答过类似的问题,可能需要整合这些信息。首先,得确认用户的问题是否确实是SELinux引起的。根据引用[1],用户应该先临时禁用SELinux,看看问题是否消失。这可以作为第一步诊断方法。然后,需要分析avc日志,确定scontext、tcontext、tclass等信息,这在引用[2]和[3]中有例子。接下来,用户可能需要生成并添加新的SELinux策略规则。引用[2]和[4]提到修改对应的.te文件,使用allow语句。不过需要注意的是,有时候直接添加allow可能不够,需要找到合适的接口或宏,比如引用[4]中的rw_file_perms宏,这可能更规范。 还有,用户可能遇到编译时的neverallow错误,这时候可能需要更复杂的调整,比如修改类型定义或使用attribute。这部分需要详细说明,避免用户直接修改导致编译失败。另外,用户可能不知道如何提取和解析avc日志,应该给出具体的命令,比如使用logcat或dmesg,然后用audit2allow工具生成建议规则。需要分步骤说明,确保用户能跟着操作。最后,要提醒用户测试和验证修改后的策略,以及如何重新编译和加载策略。可能还需要提到如果问题依旧,要检查其他可能的原因,比如文件权限或路径错误。需要确保回答结构清晰,分步骤,每个步骤有示例和解释,同时引用相关的引用来源。还要注意数学公式和代码块的格式是否正确,比如使用$符号包裹变量,独立公式用$$。同时,生成的相关问题要围绕SELinux策略调整、工具使用、编译错误处理等方面。</think>### SELinux权限拒绝问题解决指南 #### 一、问题确认与日志分析 1. **临时禁用SELinux验证** 使用以下命令临时切换SELinux模式: ```bash adb shell setenforce 0 # 切换为Permissive模式(仅记录不拦截) adb shell getenforce # 验证结果应为Permissive ``` 若问题消失,可确认是SELinux策略导致[^1] 2. **提取avc: denied日志** 通过以下命令捕获完整拒绝日志: ```bash adb logcat -b events -d | grep 'avc: .*denied' > avc.log adb shell dmesg | grep 'avc: denied' >> avc.log ``` 3. **日志要素解析** 典型日志格式示例: ```log avc: denied { read } for scontext=u:r:radio_service:s0 tcontext=u:object_r:sysfs:s0 tclass=file ``` - **操作类型**:`{ read }`表示被拒绝的操作 - **主体上下文**:`scontext`表示发起请求的进程安全上下文 - **客体上下文**:`tcontext`表示目标资源的安全上下文 - **资源类型**:`tclass`标识资源类别(file, dir, socket等) #### 二、策略修正方法 1. **基础规则生成** 使用`audit2allow`工具自动生成策略建议: ```bash audit2allow -i avc.log -p -o radio_service.te ``` 输出示例: ```te #============= radio_service ============== allow radio_service sysfs:file read; ``` 2. **策略文件定位** 根据`scontext`确定需要修改的.te文件: $$te\_path = \frac{\text{策略域}}{\text{文件系统路径}} \Rightarrow \frac{radio\_service}{system/sepolicy/private/radio\_service.te}$$ 3. **高级规则优化** | 规则类型 | 语法示例 | 适用场景 | |----------------|-----------------------------------|------------------------------| | 基础allow规则 | `allow radio_service sysfs:file { read open };` | 简单权限补充 | | 接口调用 | `allow radio_service sysfs:file r_file_perms;` | 使用预定义权限宏 | | 类型继承 | `typeattribute radio_service mlstrustedsubject;` | 继承预定义属性 | | 域转换规则 | `type_transition init radio_service process;` | 进程上下文切换 | #### 三、策略编译与验证 1. **本地快速测试** 编译单个策略模块: ```bash mmm system/sepolicy/ # Android编译环境命令 adb push out/target/product/<device>/vendor/etc/selinux/radio_service.sepolicy /vendor/etc/selinux/ ``` 2. **Neverallow规则冲突处理** 当遇到`neverallow`错误时,需采用以下方法: ```te # 原冲突规则 neverallow { domain -system_app } system_data_file:file { write }; # 解决方案:将radio_service加入豁免列表 neverallow { domain -system_app -radio_service } system_data_file:file { write }; ``` 3. **策略加载验证** ```bash adb shell load_policy /vendor/etc/selinux/radio_service.sepolicy adb shell restorecon -Rv /sys/class/radio # 重置文件上下文 ``` #### 四、典型错误修复案例 **案例:访问/sys/class/radio节点被拒** 原始日志: ```log avc: denied { read } for scontext=u:r:radio_service:s0 tcontext=u:object_r:sysfs:s0 tclass=file ``` 修复步骤: 1. 在`radio_service.te`添加: ```te allow radio_service sysfs:file r_file_perms; ``` 2. 在`file_contexts`中设置正确标签: ```context /sys/class/radio/ u:object_r:radio_sysfs:s0 ``` 3. 在`radio_service.te`添加类型转换: ```te type_transition radio_service radio_sysfs:file radio_priv_file; ``` #### 五、调试增强技巧 1. **实时策略监控** ```bash adb shell cat /sys/kernel/debug/tracing/trace_pipe | grep 'avc:' ``` 2. **上下文验证工具** ```bash adb shell ls -Z /sys/class/radio # 查看文件安全上下文 adb shell ps -Z | grep radio_service # 查看进程安全上下文 ``` 3. **策略调试开关** ```bash adb shell setsebool -P debug_seclabel 1 # 启用详细调试 ```
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值