26 #include <RdkPluginBase.h>
28 #include <sys/types.h>
29 #include <netinet/in.h>
44 IpcPlugin(std::shared_ptr<rt_dobby_schema>& containerConfig,
45 const std::shared_ptr<DobbyRdkPluginUtils> &utils,
46 const std::string &rootfsPath);
49 inline std::string
name()
const override
65 const std::string& rootfsPath,
66 std::shared_ptr<rt_dobby_schema> containerConfig,
68 const std::string &socketPath,
69 const std::string &envVar)
const;
74 const std::string mName;
75 std::shared_ptr<rt_dobby_schema> mContainerConfig;
76 const std::string mRootfsPath;
77 const std::shared_ptr<DobbyRdkPluginUtils> mUtils;
79 const std::string mDbusRunDir;
81 const std::string mDbusSystemSocketPath;
82 const std::string mDbusSessionSocketPath;
83 const std::string mDbusDebugSocketPath;
85 const std::string mDbusSystemEnvVar;
86 const std::string mDbusSessionEnvVar;
87 const std::string mDbusDebugEnvVar;
IPC Plugin.
Definition: IpcPlugin.h:42
IpcPlugin(std::shared_ptr< rt_dobby_schema > &containerConfig, const std::shared_ptr< DobbyRdkPluginUtils > &utils, const std::string &rootfsPath)
Constructor - called when plugin is loaded by PluginLauncher.
Definition: IpcPlugin.cpp:42
std::string socketPathFromAddressSimple(const std::string &address) const
Utility function to extract the socket path from the dbus address string.
Definition: IpcPlugin.cpp:300
std::string name() const override
Should return the name of the plugin.
Definition: IpcPlugin.h:49
bool addSocketAndEnv(const std::shared_ptr< DobbyRdkPluginUtils > utils, const std::string &rootfsPath, std::shared_ptr< rt_dobby_schema > containerConfig, std::string busStr, const std::string &socketPath, const std::string &envVar) const
Adds the bind mount of the socket.
Definition: IpcPlugin.cpp:200
std::vector< std::string > getDependencies() const override
Should return the names of the plugins this plugin depends on.
Definition: IpcPlugin.cpp:176
bool postInstallation() override
OCI Hook - Run in host namespace.
Definition: IpcPlugin.cpp:81
unsigned hookHints() const override
Set the bit flags for which hooks we're going to use.
Definition: IpcPlugin.cpp:70
Basic object that provides the default overrides for a plugin.
Definition: RdkPluginBase.h:34