Significance of the level on a port configuration
Can someone give me a quick overview of the significance (i.e., the MLS behavior) of the port level for SELinux.
I am attempting to have two connection from untrusted hosts that are statically labeled (with netlabelctl) one at high (s0) and one at low (s1). Both connections will be made over the same port number. The service accepting the connections runs at SystemHigh on Fedora 9 with MLS policy. What difference does the level of the port make ? Assume all TE rules are satisfied for the context of my question.
Thanks,
Andy
Quoted 10 lines · Andy Warner
Can someone give me a quick overview of the significance (i.e., the MLS behavior) of the port level for SELinux.
I am attempting to have two connection from untrusted hosts that are statically labeled (with netlabelctl) one at high (s0) and one at low (s1). Both connections will be made over the same port number. The service accepting the connections runs at SystemHigh on Fedora 9 with MLS policy. What difference does the level of the port make ? Assume all TE rules are satisfied for the context of my question.
I don't think the port level should make any difference. Are there any MLS constraints defined on any of the permission checks that are based on port contexts?
Quoted 1 line
Signature · 8 lines
Stephen Smalley 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.
Quoted 11 lines · Stephen Smalley
Quoted 9 lines · Andy Warner
Can someone give me a quick overview of the significance (i.e., the MLS behavior) of the port level for SELinux.
I am attempting to have two connection from untrusted hosts that are statically labeled (with netlabelctl) one at high (s0) and one at low (s1). Both connections will be made over the same port number. The service accepting the connections runs at SystemHigh on Fedora 9 with MLS policy. What difference does the level of the port make ? Assume all TE rules are satisfied for the context of my question.
Quoted 3 lines
I don't think the port level should make any difference. Are there any MLS constraints defined on any of the permission checks that are based on port contexts?
Using the new network access controls there is no specific check against the port label, only the network interface and node (both of which just recently had the MLS constraints added).
Signature · 8 lines
paul moore linux @ 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.
Quoted 12 lines · Paul Moore
Quoted 11 lines · Stephen Smalley
Quoted 9 lines · Andy Warner
Can someone give me a quick overview of the significance (i.e., the MLS behavior) of the port level for SELinux.
I am attempting to have two connection from untrusted hosts that are statically labeled (with netlabelctl) one at high (s0) and one at low (s1). Both connections will be made over the same port number. The service accepting the connections runs at SystemHigh on Fedora 9 with MLS policy. What difference does the level of the port make ? Assume all TE rules are satisfied for the context of my question.
Quoted 7 lines
Quoted 3 lines
I don't think the port level should make any difference. Are there any MLS constraints defined on any of the permission checks that are based on port contexts?
Using the new network access controls there is no specific check against the port label, only the network interface and node (both of which just recently had the MLS constraints added).
name_bind/name_connect are still port-based, but there are no MLS constraints on them.
The older per-packet send_msg/recv_msg checks are only applied if compat_net=1. send_msg has no MLS constraint. recv_msg is included in the socket "read" ops MLS constraint for reasons unclear to me; that seems like a mistake.
Signature · 8 lines
Stephen Smalley 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.
Quoted 17 lines · Stephen Smalley
Quoted 16 lines · Paul Moore
Quoted 14 lines · Stephen Smalley
Quoted 9 lines · Andy Warner
Can someone give me a quick overview of the significance (i.e., the MLS behavior) of the port level for SELinux.
I am attempting to have two connection from untrusted hosts that are statically labeled (with netlabelctl) one at high (s0) and one at low (s1). Both connections will be made over the same port number. The service accepting the connections runs at SystemHigh on Fedora 9 with MLS policy. What difference does the level of the port make ? Assume all TE rules are satisfied for the context of my question.
I don't think the port level should make any difference. Are there any MLS constraints defined on any of the permission checks that are based on port contexts?
Quoted 6 lines
Quoted 3 lines
Using the new network access controls there is no specific check against the port label, only the network interface and node (both of which just recently had the MLS constraints added).
name_bind/name_connect are still port-based, but there are no MLS constraints on them.
I got the impression that Andy was interested in port based MLS constraints in the context of per-packet access control.
Quoted 4 lines
The older per-packet send_msg/recv_msg checks are only applied if compat_net=1.
send_msghas no MLS constraint.recv_msgis included in the socket "read" ops MLS constraint for reasons unclear to me; that seems like a mistake.
I don't know of the reasoning behind that decision either, but this will be less of an issue in the future as the compat_net code will be going away soon.
Signature · 8 lines
paul moore linux @ 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.