2012-01-04 09:33:27 -08:00
|
|
|
# ueventd seclabel is specified in init.rc since
|
|
|
|
# it lives in the rootfs and has no unique file type.
|
|
|
|
type ueventd, domain;
|
|
|
|
tmpfs_domain(ueventd)
|
2013-10-06 12:36:11 -07:00
|
|
|
write_klog(ueventd)
|
|
|
|
security_access_policy(ueventd)
|
|
|
|
relabelto_domain(ueventd)
|
2012-01-04 09:33:27 -08:00
|
|
|
allow ueventd rootfs:file entrypoint;
|
2013-10-06 12:36:11 -07:00
|
|
|
allow ueventd init:process sigchld;
|
|
|
|
allow ueventd self:capability { chown mknod net_admin setgid fsetid sys_rawio dac_override fowner };
|
|
|
|
allow ueventd device:file create_file_perms;
|
|
|
|
allow ueventd device:chr_file rw_file_perms;
|
|
|
|
allow ueventd sysfs:file rw_file_perms;
|
|
|
|
allow ueventd sysfs:file setattr;
|
|
|
|
allow ueventd sysfs_type:file { relabelfrom relabelto };
|
2013-10-30 14:12:21 -07:00
|
|
|
allow ueventd sysfs_devices_system_cpu:file rw_file_perms;
|
2013-10-06 12:36:11 -07:00
|
|
|
allow ueventd tmpfs:chr_file rw_file_perms;
|
|
|
|
allow ueventd dev_type:dir create_dir_perms;
|
|
|
|
allow ueventd dev_type:lnk_file { create unlink };
|
|
|
|
allow ueventd dev_type:chr_file { create setattr unlink };
|
|
|
|
allow ueventd dev_type:blk_file { create setattr unlink };
|
2014-02-24 12:06:11 -08:00
|
|
|
allow ueventd self:netlink_kobject_uevent_socket create_socket_perms;
|
2013-10-06 12:36:11 -07:00
|
|
|
allow ueventd efs_file:dir search;
|
|
|
|
allow ueventd efs_file:file r_file_perms;
|