2008-07-23 21:38:39 +00:00
|
|
|
policy_module(publicfile, 1.1.0)
|
2006-01-16 18:30:14 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Declarations
|
|
|
|
#
|
|
|
|
|
|
|
|
type publicfile_t;
|
|
|
|
type publicfile_exec_t;
|
2008-07-23 21:38:39 +00:00
|
|
|
init_daemon_domain(publicfile_t, publicfile_exec_t)
|
2006-01-16 18:30:14 +00:00
|
|
|
|
|
|
|
type publicfile_content_t;
|
|
|
|
files_type(publicfile_content_t)
|
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Local policy
|
|
|
|
#
|
|
|
|
|
|
|
|
allow publicfile_t self:capability { dac_override setgid setuid sys_chroot };
|
2006-12-12 20:08:08 +00:00
|
|
|
allow publicfile_t publicfile_content_t:dir list_dir_perms;
|
|
|
|
allow publicfile_t publicfile_content_t:file read_file_perms;
|
2006-01-16 18:30:14 +00:00
|
|
|
|
|
|
|
files_search_var(publicfile_t)
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2006-01-16 18:30:14 +00:00
|
|
|
daemontools_ipc_domain(publicfile_t)
|
|
|
|
')
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2006-01-16 18:30:14 +00:00
|
|
|
ucspitcp_service_domain(publicfile_t, publicfile_exec_t)
|
|
|
|
')
|
|
|
|
|
|
|
|
#allow publicfile_t initrc_t:tcp_socket { read write };
|