client: pass permission mask to constructor

Prepare for per-listener permissions.
This commit is contained in:
Max Kellermann
2018-07-13 18:20:47 +02:00
parent 524a7f4560
commit 8aa2c57413
3 changed files with 15 additions and 6 deletions

View File

@@ -20,6 +20,7 @@
#include "config.h"
#include "Listener.hxx"
#include "Client.hxx"
#include "Permission.hxx"
#include "net/UniqueSocketDescriptor.hxx"
#include "net/SocketAddress.hxx"
@@ -28,5 +29,6 @@ ClientListener::OnAccept(UniqueSocketDescriptor fd,
SocketAddress address, int uid) noexcept
{
client_new(GetEventLoop(), partition,
std::move(fd), address, uid);
std::move(fd), address, uid,
getDefaultPermissions());
}