allow $1 sysfs_t:dir getattr_dir_perms;
')
+########################################
+## <summary>
+## Set the attributes of sysfs directories.
+## </summary>
+## <param name="domain">
+## <summary>
+## Domain allowed access.
+## </summary>
+## </param>
+#
+interface(`dev_setattr_sysfs_dirs',`
+ gen_require(`
+ type sysfs_t;
+ ')
+
+ allow $1 sysfs_t:dir setattr_dir_perms;
+')
+
########################################
## <summary>
## Search the sysfs directories.
allow mock_t mock_var_lib_t:dir relabel_dir_perms;
allow mock_t mock_var_lib_t:file relabel_file_perms;
-
kernel_list_proc(mock_t)
kernel_read_irq_sysctls(mock_t)
kernel_read_system_state(mock_t)
dev_read_urand(mock_t)
dev_read_sysfs(mock_t)
+dev_setattr_sysfs_dirs(mock_t)
domain_read_all_domains_state(mock_t)
domain_use_interactive_fds(mock_t)