Skip to content

Commit

Permalink
lxc: remove apparmor dependency
Browse files Browse the repository at this point in the history
asking for "unconfined" apparmor profile causes a crash with kernels
that don't have apparmor support enabled.

Closes anbox#1852.
  • Loading branch information
necessarily-equal committed Jul 8, 2021
1 parent 04ac697 commit 71fb271
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/anbox/container/lxc_container.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -390,8 +390,6 @@ void LxcContainer::start(const Configuration &configuration) {
// anbox-support interface. The container manager itself runs within a
// child profile snap.anbox.container-manager//lxc too.
set_config_item("lxc.apparmor.profile", "snap.anbox.container-manager//container");
#else
set_config_item(lxc_config_apparmor_profile_key, "unconfined");
#endif

if (!privileged_)
Expand Down

0 comments on commit 71fb271

Please sign in to comment.