All of lore.kernel.org
 help / color / mirror / Atom feed
From: Joshua Brindle <jbrindle@tresys.com>
To: gyurdiev@redhat.com
Cc: Daniel J Walsh <dwalsh@redhat.com>,
	"Christopher J. PeBenito" <cpebenito@tresys.com>,
	James Morris <jmorris@redhat.com>,
	Casey Schaufler <casey@schaufler-ca.com>,
	Karl MacMillan <kmacmillan@tresys.com>,
	selinux@tycho.nsa.gov
Subject: Re: Iptables discussion
Date: Mon, 25 Jul 2005 18:42:18 -0400	[thread overview]
Message-ID: <42E56ACA.9080200@tresys.com> (raw)
In-Reply-To: <1122321195.2997.126.camel@celtics.boston.redhat.com>

Ivan Gyurdiev wrote:

>>>type netif_eth0_t, netif_type;
>>>netifcon eth0 system_u:object_r:netif_eth0_t 
>>>system_u:object_r:unlabeled_t
>>>allow httpd_t netif_eth0_t:netif { tcp_recv tcp_send rawip_send 
>>>rawip_recv };
>>>allow named_t netif_eth0_t:netif { udp_recv udp_send tcp_recv tcp_send 
>>>rawip_send rawip_recv };
>>>      
>>>
>
>Those seem reasonable.
>
>  
>
rawip_* isn't necessary and should not be added

>>IMHO, I think that we _cannot_ add code to iptables to manage policy. 
>>This is a bad idea for a number of reasons that I've talked about in 
>>other emails.
>>    
>>
>
>I haven't seen any of those, can you point me somewhere?
>
>  
>
earlier in this thread, the consistency arguments (iptables having a 
run-time state vs. a persistant state, contrary to the persistant state 
of the selinux policy)

>>This functionality should be put in system-config-security to set up the 
>>firewall iptables rules and manage a subset of the network related 
>>policy rules. 
>>    
>>
>
>I don't understand why we have two sets of rules to manage the same
>thing.
>
>  
>
there will always be 2 sets, we are trying to keep them consistent. 
Also, iptables can state alot more than the policy currently supports. 
Adding this to iptables means defining certain types of 'supported' 
rules to add to the policy. Rather than do that this should be done from 
the interface that already limits what kind of rules you can do and 
simplifies them for the user (system-config-network{,-tui}

>>This should leverage the module system so that 
>>system-config-security essentially owns a module that it can put it's 
>>rules in, remove them, etc. We can later use the policy server to limit 
>>this applications policy actions to just those under the primary network 
>>type.
>>    
>>
>
>Good idea...
>
>  
>
>>The interfaces to do this work should be exported through libsemanage to 
>>do it seamlessly regardless of policy backend. The labels will have to 
>>(unfortunatly) be part of some configutation file, which is policy 
>>specific. 
>>    
>>
>
>The labels can be inferred from the card name, if necessary.
>
>  
>
no, implicit labeling considered harmful. This destroys the concept of 
equivalence classes (which is what types are). You should be able to 
make 2 interfaces equivalent without having a set of rules for each of them.

>>Also the other issue with allow-by-default firewalls and deny rules, 
>>which can't be addresssed in policy at all (and I think it's a very bad 
>>idea for some network config app to recurse the entire policy looking 
>>for rules that might violate it's internal settings).
>>    
>>
>
>Deny rules could possibly be ... denied :) on an selinux-enabled system.
>
>  
>
that means the app needs to get a full copy of the policy and try to 
find allow rules that could violate the deny state of the iptables rule, 
this is bad

--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

  reply	other threads:[~2005-07-25 22:47 UTC|newest]

Thread overview: 64+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-21 17:40 [ libsepol 2/6] Ports Ivan Gyurdiev
2005-07-21 18:04 ` Joshua Brindle
2005-07-21 18:06   ` Ivan Gyurdiev
2005-07-21 18:27   ` Ivan Gyurdiev
2005-07-21 19:35     ` Karl MacMillan
2005-07-21 19:38       ` Ivan Gyurdiev
2005-07-21 20:30         ` Karl MacMillan
2005-07-21 20:47           ` Ivan Gyurdiev
2005-07-21 21:06             ` Joshua Brindle
2005-07-21 21:06               ` Ivan Gyurdiev
2005-07-21 21:15                 ` Joshua Brindle
2005-07-21 21:25                   ` Ivan Gyurdiev
2005-07-21 23:34                     ` Joshua Brindle
2005-07-22 11:53                       ` Iptables discussion Ivan Gyurdiev
2005-07-22 12:31                         ` Daniel J Walsh
2005-07-22 12:46                           ` Karl MacMillan
2005-07-22 13:44                             ` Ivan Gyurdiev
2005-07-22 14:19                               ` Karl MacMillan
2005-07-22 14:24                                 ` Ivan Gyurdiev
2005-07-22 15:28                                   ` Karl MacMillan
2005-07-22 18:18                                     ` Ivan Gyurdiev
2005-07-22 18:40                                       ` Karl MacMillan
2005-07-22 19:01                                         ` Ivan Gyurdiev
2005-07-22 14:42                                 ` Daniel J Walsh
2005-07-22 15:28                                   ` Karl MacMillan
2005-07-22 14:51                                 ` Joshua Brindle
2005-07-22 14:51                               ` Joshua Brindle
2005-07-22 15:39                                 ` Ivan Gyurdiev
2005-07-22 15:57                                   ` Karl MacMillan
2005-07-22 16:14                                     ` Ivan Gyurdiev
2005-07-22 16:31                                       ` Karl MacMillan
2005-07-22 17:59                                         ` Ivan Gyurdiev
2005-07-22 16:28                                     ` Ivan Gyurdiev
2005-07-22 17:28                                   ` Jason Tang
2005-07-22 17:54                                     ` Ivan Gyurdiev
2005-07-22 18:28                                       ` Jason Tang
2005-07-22 18:32                                         ` Ivan Gyurdiev
2005-07-22 19:19                                   ` Joshua Brindle
2005-07-22 19:44                                     ` Ivan Gyurdiev
2005-07-22 19:56                                       ` Joshua Brindle
2005-07-22 20:18                                         ` Ivan Gyurdiev
2005-07-22 20:56                                           ` Ivan Gyurdiev
2005-07-22 15:46                             ` Casey Schaufler
2005-07-22 15:54                               ` Joshua Brindle
2005-07-22 16:11                               ` Frank Mayer
2005-07-22 18:56                                 ` Casey Schaufler
2005-07-24  5:25                           ` James Morris
2005-07-24 15:28                             ` Casey Schaufler
2005-07-25  4:24                               ` James Morris
2005-07-25 15:37                                 ` Daniel J Walsh
2005-07-25 18:24                                   ` Christopher J. PeBenito
2005-07-25 18:28                                     ` Ivan Gyurdiev
2005-07-25 18:43                                       ` Ivan Gyurdiev
2005-07-25 18:55                                         ` Daniel J Walsh
2005-07-25 19:01                                           ` Joshua Brindle
2005-07-25 19:53                                             ` Ivan Gyurdiev
2005-07-25 22:42                                               ` Joshua Brindle [this message]
2005-07-26  0:07                                                 ` Ivan Gyurdiev
2005-07-26  0:13                                                   ` Joshua Brindle
2005-07-22 12:37                         ` Karl MacMillan
  -- strict thread matches above, loose matches on Subject: below --
2005-07-22 14:54 Chad Hanson
2005-07-24  5:08 ` James Morris
2005-07-25 21:00 Chad Hanson
2005-07-25 21:04 Chad Hanson

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=42E56ACA.9080200@tresys.com \
    --to=jbrindle@tresys.com \
    --cc=casey@schaufler-ca.com \
    --cc=cpebenito@tresys.com \
    --cc=dwalsh@redhat.com \
    --cc=gyurdiev@redhat.com \
    --cc=jmorris@redhat.com \
    --cc=kmacmillan@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.