All pastes #912414 Raw Edit

Mine

public text v1 · immutable
·published 2008-02-21 11:20 UTC
rendered paste body
## <summary>
##	Allow the specified domain to write
##	JBoss log files.
## </summary>
## <param name="domain">
##	<summary>
##	Domain allowed access.
##	</summary>
## </param>
## <rolecap/>
#
interface(`jboss_write_log',`
	gen_require(`
		type jboss_log_t;
	')

	logging_search_logs($1)
	allow $1 jboss_log_t:dir list_dir_perms;
        allow $1 jboss_log_t:file { read_file_perms write_file_perms };
	write_files_pattern($1,jboss_log_t,jboss_log_t)
')