Closed njaard closed 6 years ago
Maybe a function Http::bind_with_permissions
could be used to atomically bind and chmod?
POSIX doesn't offer an atomic "bind and chmod" for unix domain sockets, and I think a more generalized solution of "let me access the low level object" is warranted.
Such as an as_raw_fd
function on Server
?
After I call
Http::bind()
, I need to be able to chmod the file descriptor appropriately.In theory, something like this:
But this isn't possible because
s.listener
is notpub
.