blob: 34e07fd0d6fc861b3074f9962209c54daaac7314 [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)
5allow ueventd rootfs:file r_file_perms;
6allow ueventd rootfs:file entrypoint;
7allow ueventd init:process sigchld;
8allow ueventd self:capability { chown mknod net_admin setgid fsetid };
9allow ueventd kernel:fd use;
10allow ueventd device:file create_file_perms;
11allow ueventd device:chr_file rw_file_perms;
12allow ueventd sysfs:file rw_file_perms;
13allow ueventd sysfs:file setattr;
14allow ueventd tmpfs:chr_file rw_file_perms;
15allow ueventd dev_type:dir create_dir_perms;
16allow ueventd dev_type:lnk_file { create unlink };
17allow ueventd dev_type:chr_file { create setattr unlink };
18allow ueventd dev_type:blk_file { create setattr unlink };
19allow ueventd self:netlink_kobject_uevent_socket *;