container: specifiy correct path to seccomp profile
This commit is contained in:
parent
af1c42c24d
commit
0f63d0e7d8
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue