What's "name_bind " permission and difference with "bind" permission?
A message that is not in the archive (sent off-list or not yet received): 1068080280.1084.2.camel@sonata
Quoted 6 lines · Yuan ChunYang
hi, in selinux ,there is "
name_bind" permission check inselinux_socket_bindpermission. It's said that "IfPF_INET, checkname_bindpermission for the port" .
Can somebody tell me what'sname_bindpermission 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.