blob: 1562c0e883c1640699af51ce78e165d29db2b926 [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;
repo sync50e37b92013-05-14 21:02:55 -07004permissive ueventd;
Stephen Smalley2dd4e512012-01-04 12:33:27 -05005tmpfs_domain(ueventd)
William Roberts85c5fc22013-10-06 15:36:11 -04006write_klog(ueventd)
7security_access_policy(ueventd)
8relabelto_domain(ueventd)
Stephen Smalley2dd4e512012-01-04 12:33:27 -05009allow ueventd rootfs:file entrypoint;
William Roberts85c5fc22013-10-06 15:36:11 -040010allow ueventd init:process sigchld;
11allow ueventd self:capability { chown mknod net_admin setgid fsetid sys_rawio dac_override fowner };
12allow ueventd device:file create_file_perms;
13allow ueventd device:chr_file rw_file_perms;
14allow ueventd sysfs:file rw_file_perms;
15allow ueventd sysfs:file setattr;
16allow ueventd sysfs_type:file { relabelfrom relabelto };
17allow 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;