Skip to contentSkip to conversation

ssh policy

DISCUSSION Russell Coker 2 participants 2 messages Oct 23, 2002 SELinux security module

lore
Share & tools
lore
#0 lore raw

# Proxy openlogging.
allow $1_ssh_t http_cache_port_t:tcp_socket name_bind;

The above has just appeared in the new policy. I suggest that it be in the policy commented out at the most.

This allows any ssh user (IE any user) to potentially subvert the web cache if they can cause it to crash.

I don't think I'll include this in my policy tree.

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 10 lines · Russell Coker

# Proxy openlogging.
allow $1_ssh_t http_cache_port_t:tcp_socket name_bind;

The above has just appeared in the new policy. I suggest that it be in the policy commented out at the most.

This allows any ssh user (IE any user) to potentially subvert the web cache if they can cause it to crash.

I don't think I'll include this in my policy tree.

Ok, removed. Patch attached and committed to the updated sf CVS tree.

--
Stephen D. Smalley, NAI Labs
[email protected]

Index: selinux/policy/macros/program/ssh_macros.te
===================================================================
RCS file: /cvsroot/selinux/nsa/selinux/policy/macros/program/ssh_macros.te,v retrieving revision 1.8

policy/macros/program/ssh_macros.te +0 -3
diff -u -r1.8 ssh_macros.te
@@ -22,9 +22,6 @@
 # Derived domain based on the calling user domain and the program.
 type $1_ssh_t, domain, privlog;
 
-# Proxy openlogging.
-allow $1_ssh_t http_cache_port_t:tcp_socket name_bind;
-
 # Transition from the user domain to the derived domain.
 domain_auto_trans($1_t, ssh_exec_t, $1_ssh_t)