From 0f63d0e7d82a7a8f88e2b1b078f4d56c59e5e2b5 Mon Sep 17 00:00:00 2001 From: Simon Fels Date: Tue, 12 Jun 2018 09:52:43 +0200 Subject: [PATCH] container: specifiy correct path to seccomp profile --- src/anbox/container/lxc_container.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/anbox/container/lxc_container.cpp b/src/anbox/container/lxc_container.cpp index 24370fd..f8dcf83 100644 --- a/src/anbox/container/lxc_container.cpp +++ b/src/anbox/container/lxc_container.cpp @@ -277,6 +277,9 @@ void LxcContainer::start(const Configuration &configuration) { #if 0 set_config_item("lxc.apparmor.profile", "anbox-container"); + + const auto seccomp_profile_path = fs::path(utils::get_env_value("SNAP", "/etc/anbox")) / "seccomp" / "anbox.sc"; + set_config_item("lxc.seccomp.profile", seccomp_profile_path.string().c_str()); #else set_config_item("lxc.apparmor.profile", "unconfined"); #endif