blob: 2af8e94bb79dc0d845474d989f0833f1a4e35295 [file] [log] [blame]
Stephen Smalley2dd4e512012-01-04 12:33:27 -05001# ueventd seclabel is specified in init.rc since
2# it lives in the rootfs and has no unique file type.
3type ueventd, domain;
4tmpfs_domain(ueventd)
William Roberts85c5fc22013-10-06 15:36:11 -04005write_klog(ueventd)
6security_access_policy(ueventd)
7relabelto_domain(ueventd)
Stephen Smalley2dd4e512012-01-04 12:33:27 -05008allow ueventd rootfs:file entrypoint;
William Roberts85c5fc22013-10-06 15:36:11 -04009allow ueventd init:process sigchld;
10allow ueventd self:capability { chown mknod net_admin setgid fsetid sys_rawio dac_override fowner };
11allow ueventd device:file create_file_perms;
12allow ueventd device:chr_file rw_file_perms;
13allow ueventd sysfs:file rw_file_perms;
14allow ueventd sysfs:file setattr;
15allow ueventd sysfs_type:file { relabelfrom relabelto };
Nick Kralevich967f39a2013-10-30 14:12:21 -070016allow ueventd sysfs_devices_system_cpu:file rw_file_perms;
William Roberts85c5fc22013-10-06 15:36:11 -040017allow ueventd tmpfs:chr_file rw_file_perms;
18allow ueventd dev_type:dir create_dir_perms;
19allow ueventd dev_type:lnk_file { create unlink };
20allow ueventd dev_type:chr_file { create setattr unlink };
21allow ueventd dev_type:blk_file { create setattr unlink };
22allow ueventd self:netlink_kobject_uevent_socket *;
23allow ueventd efs_file:dir search;
24allow ueventd efs_file:file r_file_perms;