blob: 0cd98b7974ac7ce6400b964757feb14e4e882b76 [file] [log] [blame]
allow kernel self:capability { mknod sys_admin };
allow kernel self:perf_event cpu;
dontaudit kernel self:capability { dac_override dac_read_search };
allow kernel block_device:dir search;
allow kernel device:dir { add_name create write remove_name rmdir };
allow kernel device:chr_file { create setattr getattr unlink };
dontaudit kernel device:blk_file create;
r_dir_file(kernel, efs_file);
allow kernel app_efs_file:dir create_dir_perms;
allow kernel app_efs_file:file create_file_perms;
r_dir_file(kernel, sysfs_sec_key);