From: Russell Coker <russell@coker.com.au>
To: Erich Schubert <erich@debian.org>
Cc: selinux@tycho.nsa.gov
Subject: Re: Additional rule files
Date: Sun, 5 Sep 2004 20:27:34 +1000 [thread overview]
Message-ID: <200409052027.34499.russell@coker.com.au> (raw)
In-Reply-To: <1094260356.29689.44.camel@wintermute.xmldesign.de>
[-- Attachment #1: Type: text/plain, Size: 1145 bytes --]
On Sat, 4 Sep 2004 11:12, Erich Schubert <erich@debian.org> wrote:
> The next two rule sets are for the statistic tools "bindgraph" and
> "mailgraph". The first parses bind query logs and does nice graphs out
> of them, the second does the same for postfix+amavis logs.
can_exec_any(http_request_t)
The above line in bindgraph.te is bad. The policy for program A should not
grant significant permissions to program B to access the rest of the system.
Allowing program B to access program A files, to run programs in the domain
for program A, and to kill such programs may be OK (depending on what your
goals are). But allowing some wide access to unrelated parts of the system
risks breakage.
In this case it may do no harm, but if nothing else it sets a bad precedent.
I have attached a modified version of bindgraph. I removed the entire fnord
section (see my next message).
--
http://www.coker.com.au/selinux/ My NSA Security Enhanced Linux packages
http://www.coker.com.au/bonnie++/ Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/ Postal SMTP/POP benchmark
http://www.coker.com.au/~russell/ My home page
[-- Attachment #2: bindgraph.te --]
[-- Type: text/plain, Size: 1040 bytes --]
#DESC BINDGRAPH - bind statistics graph tool
# Authors: Erich Schubert <erich@debian.org>
# X-Debian-Packages: bindgraph
#
daemon_domain(bindgraph)
daemon_domain(bindgraph_cgi)
# lib is for the RRD files (data gathered)
type bindgraph_lib_t, file_type, sysadmfile;
# the cache is storing generated images
type bindgraph_cache_t, file_type, sysadmfile;
# maybe the same pid file removal rule is needed as for mailgraph?
# read log files
r_dir_file(bindgraph_t, var_log_t)
# write own lib files (RRD files)
allow bindgraph_t var_lib_t:dir search;
create_dir_file(bindgraph_t, bindgraph_lib_t)
# the cgi may only read the RRD files
r_dir_file(bindgraph_cgi_t, bindgraph_lib_t)
# cgi can write in cache
create_dir_file(bindgraph_cgi_t, bindgraph_cache_t)
allow bindgraph_cgi_t var_lib_t:dir search;
# perl behaviour
allow { bindgraph_t bindgraph_cgi_t } { bin_t sbin_t }:dir { search getattr };
r_dir_file({ bindgraph_t bindgraph_cgi_t }, usr_t)
allow { bindgraph_t bindgraph_cgi_t } { random_device_t urandom_device_t }:chr_file read;
next prev parent reply other threads:[~2004-09-05 10:27 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-04 1:12 Additional rule files Erich Schubert
2004-09-05 10:19 ` Russell Coker
2004-09-06 17:12 ` Erich Schubert
2004-09-13 22:52 ` Erich Schubert
2004-09-19 10:02 ` Russell Coker
2004-10-02 23:37 ` Erich Schubert
2004-09-05 10:27 ` Russell Coker [this message]
2004-09-05 10:31 ` Russell Coker
2004-09-05 13:54 ` Erich Schubert
2004-09-05 17:34 ` Luke Kenneth Casson Leighton
2004-09-05 17:38 ` Erich Schubert
2004-09-05 18:50 ` Luke Kenneth Casson Leighton
2004-09-05 10:45 ` log file names (was Additional rule files) Russell Coker
[not found] ` <00ab01c4933f$c66e32f0$0a01a8c0@huey>
2004-09-05 12:52 ` Is anyone using Selinux for VOIP applications? Russell Coker
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=200409052027.34499.russell@coker.com.au \
--to=russell@coker.com.au \
--cc=erich@debian.org \
--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.