Skip to content

Commit

Permalink
Fix typo in lxc.cgroup config breaking lxc >= 4.0.9
Browse files Browse the repository at this point in the history
Closes anbox#1801
  • Loading branch information
pabloyoyoista committed Jun 12, 2021
1 parent ad377ff commit a5e7d1a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/anbox/container/lxc_container.cpp
Expand Up @@ -343,8 +343,10 @@ void LxcContainer::start(const Configuration &configuration) {
set_config_item(lxc_config_tty_max_key, "0");
set_config_item(lxc_config_uts_name_key, "anbox");

set_config_item("lxc.group.devices.deny", "");
set_config_item("lxc.group.devices.allow", "");
set_config_item("lxc.cgroup.devices.deny", "");
set_config_item("lxc.cgroup.devices.allow", "");
set_config_item("lxc.cgroup2.devices.deny", "");
set_config_item("lxc.cgroup2.devices.allow", "");

// We can't move bind-mounts, so don't use /dev/lxc/
set_config_item(lxc_config_tty_dir_key, "");
Expand Down

0 comments on commit a5e7d1a

Please sign in to comment.