Lines Matching full:ueventd
1 # ueventd seclabel is specified in init.rc since
3 type ueventd, domain;
6 allow ueventd kmsg_device:chr_file rw_file_perms;
8 allow ueventd self:global_capability_class_set { chown mknod net_admin setgid fsetid sys_rawio dac_…
9 allow ueventd device:file create_file_perms;
11 r_dir_file(ueventd, rootfs)
13 # ueventd needs write access to files in /sys to regenerate uevents
14 allow ueventd sysfs_type:file w_file_perms;
15 r_dir_file(ueventd, sysfs_type)
16 allow ueventd sysfs_type:{ file lnk_file } { relabelfrom relabelto setattr };
17 allow ueventd sysfs_type:dir { relabelfrom relabelto setattr };
18 allow ueventd tmpfs:chr_file rw_file_perms;
19 allow ueventd dev_type:dir create_dir_perms;
20 allow ueventd dev_type:lnk_file { create unlink };
21 allow ueventd dev_type:chr_file { getattr create setattr unlink };
22 allow ueventd dev_type:blk_file { getattr relabelfrom relabelto create setattr unlink };
23 allow ueventd self:netlink_kobject_uevent_socket create_socket_perms_no_ioctl;
24 allow ueventd efs_file:dir search;
25 allow ueventd efs_file:file r_file_perms;
28 r_dir_file(ueventd, selinuxfs)
30 # Access for /vendor/ueventd.rc and /vendor/firmware
31 r_dir_file(ueventd, { vendor_file_type -vendor_app_file -vendor_overlay_file })
34 allow ueventd file_contexts_file:file r_file_perms;
37 allow ueventd self:process setfscreate;
39 # Allow ueventd to read androidboot.android_dt_dir from kernel cmdline.
40 allow ueventd proc_cmdline:file r_file_perms;
46 # ueventd must never set properties, otherwise deadlocks may occur.
49 neverallow ueventd property_socket:sock_file write;
50 neverallow ueventd init:unix_stream_socket connectto;
51 neverallow ueventd property_type:property_service set;
53 # Restrict ueventd access on block devices to maintenence operations.
54 neverallow ueventd dev_type:blk_file ~{ getattr relabelfrom relabelto create setattr unlink };
57 neverallow ueventd { kmem_device port_device }:chr_file ~{ getattr create setattr unlink relabelto …