This repository has been archived on 2024-11-28. You can view files and clone it, but cannot push or open issues or pull requests.
Oreon-Lime-R2/selinux-policy/selinux-policy-d9f4a2b/selinux-policy-d9f4a2bbeb91fd95d0c35a90936efb9ea99d2455/policy/modules/contrib/publicfile.te

35 lines
761 B
Text
Raw Normal View History

policy_module(publicfile, 1.2.0)
########################################
#
# Declarations
#
type publicfile_t;
type publicfile_exec_t;
init_daemon_domain(publicfile_t, publicfile_exec_t)
type publicfile_content_t;
files_type(publicfile_content_t)
########################################
#
# Local policy
#
allow publicfile_t self:capability { dac_read_search setgid setuid sys_chroot };
allow publicfile_t publicfile_content_t:dir list_dir_perms;
allow publicfile_t publicfile_content_t:file read_file_perms;
allow publicfile_t publicfile_content_t:lnk_file read_lnk_file_perms;
files_search_var(publicfile_t)
optional_policy(`
daemontools_ipc_domain(publicfile_t)
')
optional_policy(`
ucspitcp_service_domain(publicfile_t, publicfile_exec_t)
')