/*
- * Copyright (c) 2016-2017 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2016-2020 Samsung Electronics Co., Ltd All Rights Reserved
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
#include <sys/un.h>
#include <unistd.h>
-#include <access_provider.h>
+#include <app_context.h>
#include <cynara_helpers_creds.h>
#include <dpl/test/test_runner.h>
#include <label_generator.h>
void udsServer(SynchronizationPipe &pipe, const struct sockaddr_un &sockaddr,
const struct ProcessCredentials &peerCredentials) {
- SecurityServer::AccessProvider ap(peerCredentials.label());
- ap.applyAndSwithToUser(peerCredentials.uid(), peerCredentials.gid());
+ AppContext ctx(peerCredentials.label());
+ ctx.apply(peerCredentials.uid(), peerCredentials.gid());
pipe.claimChildEp();
int sock = UDSHelpers::createServer(&sockaddr);