Dobby 3.0
Dobby “Docker based Thingy” is a tool for managing and running OCI containers using crun
Loading...
Searching...
No Matches
IDbusPackageEntitlements.h
1/*
2* If not stated otherwise in this file or this component's LICENSE file the
3* following copyright and licenses apply:
4*
5* Copyright 2020 Sky UK
6*
7* Licensed under the Apache License, Version 2.0 (the "License");
8* you may not use this file except in compliance with the License.
9* You may obtain a copy of the License at
10*
11* http://www.apache.org/licenses/LICENSE-2.0
12*
13* Unless required by applicable law or agreed to in writing, software
14* distributed under the License is distributed on an "AS IS" BASIS,
15* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16* See the License for the specific language governing permissions and
17* limitations under the License.
18*/
19/*
20 * IDbusPackageEntitlements.h
21 *
22 * Created on: 19 Sep 2018
23 */
24
25#ifndef IPCSERVICE_LIB_INCLUDE_IDBUSPACKAGEENTITLEMENTS_H_
26#define IPCSERVICE_LIB_INCLUDE_IDBUSPACKAGEENTITLEMENTS_H_
27
28#include <sys/types.h>
29#include <string>
30
31namespace AI_IPC
32{
34{
35public:
36 virtual bool isAllowed( uid_t userId, const std::string& service, const std::string& interface ) = 0;
37 virtual void applicationStopped(uid_t userId) = 0;
38 virtual bool isInterfaceWhiteListed(const std::string& interface) const = 0;
39
40 virtual ~IDbusPackageEntitlements() = default;
41};
42
43}
44
45
46
47#endif /* IPCSERVICE_LIB_INCLUDE_IDBUSPACKAGEENTITLEMENTS_H_ */
Definition IDbusPackageEntitlements.h:34