Home | History | Annotate | Download | only in sepolicy
      1 # ueventd seclabel is specified in init.rc since
      2 # it lives in the rootfs and has no unique file type.
      3 type ueventd, domain;
      4 tmpfs_domain(ueventd)
      5 write_klog(ueventd)
      6 security_access_policy(ueventd)
      7 allow ueventd init:process sigchld;
      8 allow ueventd self:capability { chown mknod net_admin setgid fsetid sys_rawio dac_override fowner };
      9 allow ueventd device:file create_file_perms;
     10 allow ueventd device:chr_file rw_file_perms;
     11 allow ueventd sysfs:file rw_file_perms;
     12 allow ueventd sysfs_type:{ file lnk_file } { relabelfrom relabelto setattr getattr };
     13 allow ueventd sysfs_type:dir { relabelfrom relabelto setattr r_dir_perms };
     14 allow ueventd sysfs_devices_system_cpu:file rw_file_perms;
     15 allow ueventd tmpfs:chr_file rw_file_perms;
     16 allow ueventd dev_type:dir create_dir_perms;
     17 allow ueventd dev_type:lnk_file { create unlink };
     18 allow ueventd dev_type:chr_file { create setattr unlink };
     19 allow ueventd dev_type:blk_file { create setattr unlink };
     20 allow ueventd self:netlink_kobject_uevent_socket create_socket_perms;
     21 allow ueventd efs_file:dir search;
     22 allow ueventd efs_file:file r_file_perms;
     23 
     24 # Use setfscreatecon() to label /dev directories and files.
     25 allow ueventd self:process setfscreate;
     26