From: James Antill <jantill@redhat.com>
To: Joshua Brindle <jbrindle@tresys.com>
Cc: SE Linux <selinux@tycho.nsa.gov>
Subject: Re: ipsec, netlabels, secmark- How about a little usability?
Date: Thu, 14 Sep 2006 12:02:57 -0400 [thread overview]
Message-ID: <1158249777.8442.13.camel@code.and.org> (raw)
In-Reply-To: <45095E10.2020205@tresys.com>
[-- Attachment #1: Type: text/plain, Size: 1614 bytes --]
On Thu, 2006-09-14 at 09:50 -0400, Joshua Brindle wrote:
> Daniel J Walsh wrote:
> > 1. By default httpd has to be able to talk to itself in order to do
> > gracefull shutdown,
> > service httpd graceful.
> >
> > So I end up adding a rule allowing httpd to name_connect to the
> > httpd_port_t. But I really only want to allow this for localhost.
> > IE I don't want to allow my httpd to name_connect to other machines
> > httpd ports? I can't do this now.
> >
> you can with secmark can't you?
> iptables -I -p tcp -d localhost -s localhost -i lo --dport 80 -j SECMARK
> --selctx system_u:object_r:httpd_client_packet_t
This one rule, both allows httpd_t to connect to localhost:80 and
disallows it from connecting to anything-else:80 ?
From the documentation --selctx just sets the "SELinux security
context" ... so you presumably _also_ need some bit of policy code that
says "httpd_t can only name_bind(?) with httpd_client_packet_t"?
> > 2. I as a sysadm have setup a apache web site that allows connections
> > from the outside and needs to connect to three mysql servers on my
> > internal network. So I need to allow it to connect to those three
> > machines on the internal network only. How am I as the Sysadm going
> > to set this up.
> >
> again, secmark
Err, no. The requirement here is that:
1. httpd_t on one machine is only allowed to connect to mysqld_t(?) on
one of these 3 machines.
...AIUI secmark doesn't know the label of the proc. on the other
machines, even when using ipsec/netlabel.
--
James Antill <jantill@redhat.com>
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2006-09-14 16:03 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-14 12:52 ipsec, netlabels, secmark- How about a little usability? Daniel J Walsh
2006-09-14 13:50 ` Joshua Brindle
2006-09-14 13:55 ` Joshua Brindle
2006-09-14 14:43 ` Stephen Smalley
2006-09-15 15:36 ` Daniel J Walsh
2006-09-14 16:02 ` James Antill [this message]
2006-09-14 16:49 ` Stephen Smalley
2006-09-14 17:24 ` James Antill
2006-09-14 19:45 ` Stephen Smalley
2006-09-19 20:13 ` Karl MacMillan
2006-09-19 20:35 ` Christopher J. PeBenito
2006-09-19 21:12 ` Karl MacMillan
2006-09-19 20:47 ` Karl MacMillan
2006-09-20 13:30 ` Christopher J. PeBenito
2006-09-20 13:45 ` James Morris
2006-09-20 14:27 ` Christopher J. PeBenito
2006-09-20 14:45 ` James Morris
-- strict thread matches above, loose matches on Subject: below --
2006-09-14 14:52 Stuart James
2006-09-14 22:52 Venkat Yekkirala
2006-09-15 9:00 ` Stuart James
2006-09-19 21:19 Venkat Yekkirala
2006-09-20 1:35 ` Joshua Brindle
2006-09-20 13:02 Venkat Yekkirala
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=1158249777.8442.13.camel@code.and.org \
--to=jantill@redhat.com \
--cc=jbrindle@tresys.com \
--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.