Skip to contentSkip to conversation

can_network()

DISCUSSION Russell Coker 2 participants 2 messages Nov 4, 2002 SELinux security module

lore
Share & tools
lore
#0 lore raw

It's difficult to imagine a program that needs can_network() access but which does not need to read /etc/resolv.conf.

Currently every time we write policy for such programs we have separate config lines for resolv_conf_t and can_network. This makes policy files longer and more difficult to read, and when requirements change and entries are to be removed from a policy file then it's more likely that something will be missed.

I think that we should either include a statement granting access to resolv_conf_t in the can_network() macro, or we should have a separate macro which calls can_network() and also grants access to resolv_conf_t.

I also suspect that access to etc_t files will be necessary for such a macro too, but in the few minutes I've been thinking about this I haven't determined a suitable case to prove this.

Signature · 10 lines
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


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
#1 lore raw
Quoted 2 lines · Russell Coker

It's difficult to imagine a program that needs can_network() access but which does not need to read /etc/resolv.conf.

speaking of that, shouldn't there be an every_domain_except_network domain? I'd love to use every_domain instead of all the lower macros, but it includes can_network(), which I don't want.

Signature · 8 lines
PGP/GPG key: http://web.lemuria.org/pubkey.html
pub  1024D/2D7A04F5 2002-05-16 Tom Vogt <[email protected]>
     Key fingerprint = C731 64D1 4BCF 4C20 48A4  29B2 BF01 9FA1 2D7A 04F5

--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.