Skip to contentSkip to conversation

What's "name_bind " permission and difference with "bind" permission?

DISCUSSION James Morris 1 participant 1 message Nov 6, 2003 1 message not in the archive SELinux security module

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive
Quoted 6 lines · Yuan ChunYang

hi, in selinux ,there is "name_bind" permission check in selinux_socket_bind permission. It's said that "If PF_INET, check name_bind permission for the port" .
Can somebody tell me what's name_bind permission and difference with "bind" permission?
thanx!

The bind permission is used to control whether a socket is allowed to have bind(3) called on it.

The name_bind permission is a further check between a socket and the port it is being bound to, if the port is outside the local port range (determined by the sysctl net.ipv4.ip_local_port_range) and/or is a protected port.

See http://www.nsa.gov/selinux/doc/module/x2042.html, and policy examples.

- James

Signature · 9 lines
James Morris
<[email protected]>



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