36c356
policy_module(systemd_hs,0.0.1)
36c356
36c356
# systemd overrides for 247
36c356
gen_require(`
36c356
	type avahi_t;
36c356
	type init_t;
36c356
	type init_var_run_t;
36c356
	type kmsg_device_t;
36c356
	type policykit_auth_t;
36c356
	type policykit_t;
36c356
	type proc_kmsg_t;
36c356
	type system_dbusd_t;
36c356
	type systemd_hostnamed_t;
36c356
	type systemd_localed_t;
36c356
	type systemd_logind_t;
36c356
	type systemd_machined_t;
36c356
	type security_t;
36c356
	type syslogd_t;
36c356
	type user_tmp_t;
36c356
	type xdm_t;
36c356
')
36c356
36c356
allow avahi_t init_var_run_t:dir read;
36c356
allow init_t kmsg_device_t:chr_file mounton;
36c356
allow init_t proc_kmsg_t:file { getattr mounton };
36c356
allow init_t systemd_machined_t:unix_stream_socket connectto;
36c356
allow policykit_auth_t init_var_run_t:dir read;
36c356
allow policykit_auth_t systemd_machined_t:unix_stream_socket connectto;
36c356
allow policykit_t systemd_machined_t:unix_stream_socket connectto;
36c356
allow syslogd_t user_tmp_t:lnk_file read;
36c356
allow system_dbusd_t systemd_machined_t:unix_stream_socket connectto;
36c356
allow systemd_hostnamed_t security_t:file map;
36c356
allow systemd_localed_t security_t:file map;
36c356
allow systemd_logind_t self:netlink_selinux_socket create;
36c356
allow systemd_logind_t self:netlink_selinux_socket bind;
36c356
allow systemd_logind_t security_t:file map;
36c356
allow systemd_logind_t systemd_machined_t:unix_stream_socket connectto;
36c356
allow systemd_machined_t init_var_run_t:sock_file create;
36c356
allow xdm_t systemd_machined_t:unix_stream_socket connectto;