xserver doesn't stop all connections to localhost
X.Org Bugzilla #23329: http://bugs.freedesktop.org/show_bug.cgi?id=23329 Patch #28648: http://bugs.freedesktop.org/attachment.cgi?id=28648 I noticed in xserver at os/access.c that xorg tries to stop connections to localhost by checking against the address 127.0.0.1. However, RFC 3330 defines the localhost network as 127.0.0.0/8. This means that any IPv4 address that starts with 127 is just another name for localhost.
This commit is contained in:
parent
2d34eace13
commit
75b9383d8a
|
@ -415,8 +415,7 @@ DefineSelf (int fd)
|
|||
*/
|
||||
if (family == FamilyInternet &&
|
||||
!(len == 4 &&
|
||||
((addr[0] == 127 && addr[1] == 0 &&
|
||||
addr[2] == 0 && addr[3] == 1) ||
|
||||
((addr[0] == 127) ||
|
||||
(addr[0] == 0 && addr[1] == 0 &&
|
||||
addr[2] == 0 && addr[3] == 0)))
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue
Block a user