gentoo policy for stunnel
Hi,
attached you'll find the policy we use for stunnel [1]
[1] http://www.stunnel.org
Stunnel is a program that allows you to encrypt arbitrary TCP connections inside SSL (Secure Sockets Layer) available on both Unix and Windows. Stunnel can allow you to secure non-SSL aware daemons and protocols (like POP, IMAP, LDAP, etc) by having Stunnel provide the encryption, requiring no
changes to the daemon's code.
bye,
peter
Signature · 4 lines
petre rodan <[email protected]> Developer, Hardened Gentoo Linux
/usr/sbin/stunnel -- system_u:object_r:stunnel_exec_t
/etc/stunnel(/.*)? system_u:object_r:stunnel_etc_t
/var/run/stunnel(/.*)? system_u:object_r:stunnel_var_run_t
# DESC: selinux policy for stunnel
#
# Author: petre rodan <[email protected]>
#
type stunnel_port_t, port_type;
daemon_domain(stunnel, `, privlog')
can_network(stunnel_t)
type stunnel_etc_t, file_type, sysadmfile;
allow stunnel_t self:capability { setgid setuid sys_chroot }; allow stunnel_t self:fifo_file { read write }; allow stunnel_t self:tcp_socket { read write }; allow stunnel_t self:unix_stream_socket { connect create };
allow stunnel_t stunnel_port_t:tcp_socket { name_bind };
r_dir_file(stunnel_t, stunnel_etc_t)r_dir_file(stunnel_t, etc_t)
Quoted 7 lines · petre rodan
Hi,
attached you'll find the policy we use for stunnel [1]
type
stunnel_port_t,port_type;
Are there any default ports for stunnel? If yes, can you provide a patch to net_contexts? If no, it would be nice to have a line like "to use stunnel for IMAP, add the following line to net_contexts..." and so on.
Thomas
Signature · 2 lines
http://www.cip.ifi.lmu.de/~bleher/selinux/ - my SELinux pages GPG-Fingerprint: BC4F BB16 30D6 F253 E3EA D09E C562 2BAE B2F4 ABE7
Hi,
Quoted 1 line · Thomas Bleher
* petre rodan <[email protected]> [2004-11-15 17:51]:
[..]
Quoted 4 lines
Quoted 1 line
type
stunnel_port_t,port_type;Are there any default ports for stunnel? If yes, can you provide a patch to
net_contexts? If no, it would be nice to have a line like "to use stunnel for IMAP, add the following line tonet_contexts..." and so on.
as you have correctly guessed, there is no default port whatsoever for this daemon.
since it's up to the user to assign the label to his particular port net_contexts might contain a #ifdef(stunnel.te', portcon tcp xxxx system_u:object_r:stunnel_port_t')
bye,
peter
Signature · 4 lines
petre rodan <[email protected]> Developer, Hardened Gentoo Linux
Added.
I also removed the duplicate stunnel specification in inetd.fc.
By the way, the privlog attribute comes free of charge with the daemon_core_rules macro (which is used by daemon_domain macro).
Quoted 10 lines · petre rodan
Hi,
attached you'll find the policy we use for stunnel [1]
[1] http://www.stunnel.org
Stunnel is a program that allows you to encrypt arbitrary TCP connections inside SSL (Secure Sockets Layer) available on both Unix and Windows. Stunnel can allow you to secure non-SSL aware daemons and protocols (like POP, IMAP, LDAP, etc) by having Stunnel provide the encryption, requiring no
changes to the daemon's code.bye,
peter
Signature · 7 lines
James Carter <[email protected]> National Security Agency -- 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.