Skip to contentSkip to conversation

Refpolicy: Add rawip_socket to the recvfrom MLS constraints

PATCH In review Paul Moore 2 participants 2 messages Feb 28, 2007 – Mar 9, 2007 SELinux security module

lore
Share & tools
lore

Paul Moore

author
#0 lore raw

PATCH 1/1 Refpolicy: Add rawip_socket to the recvfrom MLS constraints

It was just pointed out to me that the raw IP socket class is missing from the recvfrom MLS constraint.

---
 policy/mls |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
policy/mls +1 -1
Index: refpolicy/policy/mls
===================================================================
@@ -183,7 +183,7 @@ mlsconstrain { socket tcp_socket udp_soc
 	 ( t1 == mlsnetwrite ));
 
 # used by netlabel to restrict normal domains to same level connections
-mlsconstrain { tcp_socket udp_socket } recvfrom
+mlsconstrain { tcp_socket udp_socket rawip_socket } recvfrom
 	(( l1 eq l2 ) or
 	 (( t1 == mlsnetreadtoclr ) and ( h1 dom l2 )) or
 	 ( t1 == mlsnetread ));

--
paul moore
linux security @ hp

--
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 5 lines · Paul Moore

plain text document attachment (mls-netlabel_rawip_support)
It was just pointed out to me that the raw IP socket class is missing from the recvfrom MLS constraint.

Merged.

Quoted 27 lines
---
 policy/mls |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: refpolicy/policy/mls
===================================================================

policy/mls +1 -2
@@ -183,7 +183,7 @@ mlsconstrain { socket tcp_socket udp_soc
 	 ( t1 == mlsnetwrite ));
 
 # used by netlabel to restrict normal domains to same level connections
-mlsconstrain { tcp_socket udp_socket } recvfrom
+mlsconstrain { tcp_socket udp_socket rawip_socket } recvfrom
 	(( l1 eq l2 ) or
 	 (( t1 == mlsnetreadtoclr ) and ( h1 dom l2 )) or
 	 ( t1 == mlsnetread ));
 
--

paul moore
linux security @ hp

--
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.

Signature · 9 lines
Chris PeBenito
Tresys Technology, LLC
(410) 290-1411 x150


--
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.