From: Russell Coker <rcoker@redhat.com>
To: Thomas Bleher <bleher@informatik.uni-muenchen.de>
Cc: SELinux ML <selinux@tycho.nsa.gov>
Subject: Re: [patch] policy for nrpe
Date: Tue, 25 May 2004 12:41:22 +1000 [thread overview]
Message-ID: <200405251241.22708.rcoker@redhat.com> (raw)
In-Reply-To: <20040524090907.GA15439@thebe.cip.ifi.lmu.de>
[-- Attachment #1: Type: text/plain, Size: 569 bytes --]
On Mon, 24 May 2004 19:09, Thomas Bleher <bleher@informatik.uni-muenchen.de>
wrote:
> > We currently have a netsaint.te in the policy, should we change that to
> > nagios.te?
>
> Yes, I think it would be best to change the name.
OK, I've attached nagios.te and nagios.fc to replace netsaint.te and
netsaint.fc. I have not made any changes other than the renaming. I have
not put in typealias rules because I don't believe that my netsaint policy
got enough use to make compatibility an issue.
--
http://apac.redhat.com/disclaimer
See above URL for disclaimer.
[-- Attachment #2: nagios.fc --]
[-- Type: text/plain, Size: 400 bytes --]
# netsaint - network monitoring server
/usr/sbin/netsaint -- system_u:object_r:nagios_exec_t
#/var/run/netsaint(/.*)? system_u:object_r:nagios_var_run_t
/etc/netsaint(/.*)? system_u:object_r:nagios_etc_t
/var/log/netsaint(/.*)? system_u:object_r:nagios_log_t
/usr/lib(64)?/netsaint/plugins(/.*)? system_u:object_r:bin_t
/usr/lib(64)?/cgi-bin/netsaint/.+ -- system_u:object_r:nagios_cgi_exec_t
[-- Attachment #3: nagios.te --]
[-- Type: text/plain, Size: 2678 bytes --]
#DESC Net Saint / NAGIOS - network monitoring server
#
# Author: Russell Coker <russell@coker.com.au>
# X-Debian-Packages: netsaint, nagios
# Depends: mta.te
#
#################################
#
# Rules for the nagios_t domain.
#
# nagios_exec_t is the type of the netsaint/nagios executable.
#
daemon_domain(nagios, `, privmail')
etcdir_domain(nagios)
typealias nagios_etc_t alias etc_nagios_t;
logdir_domain(nagios)
allow nagios_t nagios_log_t:fifo_file create_file_perms;
allow initrc_t nagios_log_t:dir rw_dir_perms;
tmp_domain(nagios)
allow system_mail_t nagios_tmp_t:file { getattr read };
# for open file handles
dontaudit system_mail_t nagios_etc_t:file read;
dontaudit system_mail_t nagios_log_t:fifo_file read;
# Use the network.
allow nagios_t self:fifo_file rw_file_perms;
allow nagios_t self:unix_stream_socket create_socket_perms;
allow nagios_t self:unix_dgram_socket create_socket_perms;
# Use capabilities
allow nagios_t self:capability { dac_override setgid setuid };
allow nagios_t self:process setpgid;
allow nagios_t { bin_t sbin_t }:dir search;
allow nagios_t bin_t:lnk_file read;
can_exec(nagios_t, { shell_exec_t bin_t })
allow nagios_t proc_t:file { getattr read };
can_network(nagios_t)
# read config files
allow nagios_t { etc_t etc_runtime_t }:file { getattr read };
allow nagios_t etc_t:lnk_file read;
allow nagios_t etc_t:dir r_dir_perms;
# for ps
r_dir_file(nagios_t, domain)
allow nagios_t boot_t:dir search;
allow nagios_t system_map_t:file { getattr read };
# for who
allow nagios_t initrc_var_run_t:file { getattr read lock };
system_domain(nagios_cgi)
allow nagios_cgi_t device_t:dir search;
r_dir_file(nagios_cgi_t, nagios_etc_t)
allow nagios_cgi_t var_log_t:dir search;
r_dir_file(nagios_cgi_t, nagios_log_t)
allow nagios_cgi_t self:process { fork signal_perms };
allow nagios_cgi_t self:fifo_file rw_file_perms;
allow nagios_cgi_t bin_t:dir search;
can_exec(nagios_cgi_t, bin_t)
read_locale(nagios_cgi_t)
# for ps
allow nagios_cgi_t { etc_runtime_t etc_t }:file { getattr read };
r_dir_file(nagios_cgi_t, { proc_t self nagios_t })
allow nagios_cgi_t boot_t:dir search;
allow nagios_cgi_t system_map_t:file { getattr read };
dontaudit nagios_cgi_t domain:dir getattr;
allow nagios_cgi_t self:unix_stream_socket create_socket_perms;
ifdef(`apache.te', `
r_dir_file(httpd_t, nagios_etc_t)
domain_auto_trans({ httpd_t httpd_suexec_t }, nagios_cgi_exec_t, nagios_cgi_t)
allow nagios_cgi_t httpd_log_t:file append;
')
ifdef(`ping.te', `
domain_auto_trans(nagios_t, ping_exec_t, ping_t)
allow nagios_t ping_t:process { sigkill signal };
dontaudit ping_t nagios_etc_t:file read;
dontaudit ping_t nagios_log_t:fifo_file read;
')
next prev parent reply other threads:[~2004-05-25 2:49 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-23 21:44 [patch] policy for nrpe Thomas Bleher
2004-05-24 0:56 ` Russell Coker
2004-05-24 9:09 ` Thomas Bleher
2004-05-25 2:41 ` Russell Coker [this message]
2004-05-25 2:48 ` Russell Coker
2004-05-25 9:03 ` Thomas Bleher
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200405251241.22708.rcoker@redhat.com \
--to=rcoker@redhat.com \
--cc=bleher@informatik.uni-muenchen.de \
--cc=selinux@tycho.nsa.gov \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.