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.

	Failed to start container: Failed to start container: Failed to set config item lxc.apparmor.profile

Closes anbox#1852.
  • Loading branch information
necessarily-equal committed Jul 14, 2022
1 parent 84f0268 commit aa0222d
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 aa0222d

Please sign in to comment.