rendered paste bodypolicy_module(jboss,1.1.1)
########################################
#
# Declarations
#
type jboss_t;
type jboss_exec_t;
domain_type(jboss_t)
init_daemon_domain(jboss_t, jboss_exec_t)
#require {
# type sysadm_javaplugin_t;
# class lnk_file read;
# class file write;
#}
type jboss_log_t;
logging_log_file(jboss_log_t)
type jboss_tmp_t;
files_tmp_file(jboss_tmp_t)
type jboss_opt_t;
type jboss_var_run_t;
type jboss_rw_t;
files_type(jboss_rw_t)
########################################
#
# jboss local policy
#
# Init script handling
domain_use_interactive_fds(jboss_t)
## internal communication is often done using fifo and unix sockets.
allow jboss_t self:fifo_file rw_file_perms;
allow jboss_t self:unix_stream_socket create_stream_socket_perms;
#allow jboss_t jboss_tmp_t:file manage_file_perms;
#allow jboss_t jboss_tmp_t:dir create_dir_perms;
#files_pid_filetrans(jboss_t,jboss_tmp_t, { file dir })
allow jboss_t jboss_rw_t:file manage_file_perms;
allow jboss_t jboss_rw_t:dir create_dir_perms;
files_pid_filetrans(jboss_t,jboss_rw_t, { file dir })
sysnet_dns_name_resolve(jboss_t)
corenet_all_recvfrom_unlabeled(jboss_t)
allow jboss_t self:tcp_socket create_stream_socket_perms;
corenet_tcp_sendrecv_all_if(jboss_t)
corenet_tcp_sendrecv_all_nodes(jboss_t)
corenet_tcp_sendrecv_all_ports(jboss_t)
corenet_tcp_bind_all_nodes(jboss_t)
corenet_tcp_bind_http_cache_port(jboss_t)
#============= sysadm_javaplugin_t ==============
#allow sysadm_javaplugin_t jboss_log_t:file write;