Add null byte guard from mainline
parent
02ac20a43c
commit
b040cdc0c9
|
@ -120,6 +120,7 @@ class PatchedForkServer(ForkServer):
|
||||||
with socket.socket(socket.AF_UNIX) as listener:
|
with socket.socket(socket.AF_UNIX) as listener:
|
||||||
address = connection.arbitrary_address('AF_UNIX')
|
address = connection.arbitrary_address('AF_UNIX')
|
||||||
listener.bind(address)
|
listener.bind(address)
|
||||||
|
if not util.is_abstract_socket_namespace(address):
|
||||||
os.chmod(address, 0o600)
|
os.chmod(address, 0o600)
|
||||||
listener.listen()
|
listener.listen()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue