Fork Vasum on GitHub Official Vasum Wiki on Tizen.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
setup-userns.hpp
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2015 Samsung Electronics Co., Ltd All Rights Reserved
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License version 2.1 as published by the Free Software Foundation.
7  *
8  * This library is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11  * Lesser General Public License for more details.
12  *
13  * You should have received a copy of the GNU Lesser General Public
14  * License along with this library; if not, write to the Free Software
15  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16  */
17 
24 #ifndef LXCPP_COMMANDS_SETUP_USERNS_HPP
25 #define LXCPP_COMMANDS_SETUP_USERNS_HPP
26 
29 
30 
31 namespace lxcpp {
32 
33 
34 class SetupUserNS final: Command {
35 public:
41  SetupUserNS(UserNSConfig &userNSConfig, pid_t initPid);
42  ~SetupUserNS();
43 
44  void execute();
45 
46 private:
48  pid_t mInitPid;
49 };
50 
51 
52 } // namespace lxcpp
53 
54 
55 #endif // LXCPP_COMMANDS_SETUP_USERNS_HPP
Definition: setup-userns.hpp:34
Command interface definition.
Definition: userns-config.hpp:37
~SetupUserNS()
Definition: setup-userns.cpp:42
UserNSConfig & mUserNSConfig
Definition: setup-userns.hpp:47
SetupUserNS(UserNSConfig &userNSConfig, pid_t initPid)
Setups the user namespace by filling UID/GID mappings.
Definition: setup-userns.cpp:36
void execute()
Definition: setup-userns.cpp:46
Definition: command.hpp:29
pid_t mInitPid
Definition: setup-userns.hpp:48
A definition of a ContainerConfig struct.