Compare commits

..

No commits in common. "3e0dca86a7cf51b47894b4db749f4823e06bd714" and "8668e84263cf4579a7ddbc1581684f7c8c0230aa" have entirely different histories.

4 changed files with 6 additions and 25 deletions

View File

@ -60,7 +60,7 @@ CONFIG_CHECK="
~TMPFS_XATTR ~TMPFS_XATTR
" "
PATCHES=( ""${FILESDIR}"/no_bundled_sdbus.patch" ""${FILESDIR}"/lxc.patch" ) PATCHES=( ""${FILESDIR}"/no_bundled_sdbus.patch" )
pkg_pretend() { pkg_pretend() {
if use !systemd; then if use !systemd; then
@ -95,8 +95,7 @@ src_install() {
cmake_src_install cmake_src_install
newbin "${FILESDIR}"/anbox-launch.sh anbox-launch newbin "${FILESDIR}"/anbox-launch.sh anbox-launch
if use systemd; then if use systemd; then
systemd_dounit "${FILESDIR}"/anbox-{container-manager.service,bridge.net{dev,work}} systemd_dounit "${FILESDIR}"/anbox-{{container,session}-manager.service,bridge.net{dev,work}}
systemd_douserunit "${FILESDIR}"/anbox-session-manager.service
else else
exeinto /usr/share/anbox exeinto /usr/share/anbox
doexe "scripts/anbox-bridge.sh" doexe "scripts/anbox-bridge.sh"

View File

@ -60,7 +60,7 @@ CONFIG_CHECK="
~TMPFS_XATTR ~TMPFS_XATTR
" "
PATCHES=( ""${FILESDIR}"/no_bundled_sdbus-r1.patch" ""${FILESDIR}"/lxc.patch" ) PATCHES=( ""${FILESDIR}"/no_bundled_sdbus-r1.patch" )
pkg_pretend() { pkg_pretend() {
if use !systemd; then if use !systemd; then
@ -97,8 +97,7 @@ src_install() {
cmake_src_install cmake_src_install
newbin "${FILESDIR}"/anbox-launch.sh anbox-launch newbin "${FILESDIR}"/anbox-launch.sh anbox-launch
if use systemd; then if use systemd; then
systemd_dounit "${FILESDIR}"/anbox-{container-manager.service,bridge.net{dev,work}} systemd_dounit "${FILESDIR}"/anbox-{{container,session}-manager.service,bridge.net{dev,work}}
systemd_douserunit "${FILESDIR}"/anbox-session-manager.service
else else
exeinto /usr/share/anbox exeinto /usr/share/anbox
doexe "scripts/anbox-bridge.sh" doexe "scripts/anbox-bridge.sh"

View File

@ -60,7 +60,7 @@ CONFIG_CHECK="
~TMPFS_XATTR ~TMPFS_XATTR
" "
PATCHES=( ""${FILESDIR}"/no_bundled_sdbus-r1.patch" ""${FILESDIR}"/lxc.patch" ) PATCHES=( ""${FILESDIR}"/no_bundled_sdbus-r1.patch" )
pkg_pretend() { pkg_pretend() {
if use !systemd; then if use !systemd; then
@ -97,8 +97,7 @@ src_install() {
cmake_src_install cmake_src_install
newbin "${FILESDIR}"/anbox-launch.sh anbox-launch newbin "${FILESDIR}"/anbox-launch.sh anbox-launch
if use systemd; then if use systemd; then
systemd_dounit "${FILESDIR}"/anbox-{container-manager.service,bridge.net{dev,work}} systemd_dounit "${FILESDIR}"/anbox-{{container,session}-manager.service,bridge.net{dev,work}}
systemd_douserunit "${FILESDIR}"/anbox-session-manager.service
else else
exeinto /usr/share/anbox exeinto /usr/share/anbox
doexe "scripts/anbox-bridge.sh" doexe "scripts/anbox-bridge.sh"

View File

@ -1,16 +0,0 @@
https://github.com/anbox/anbox/pull/1827
--- a/src/anbox/container/lxc_container.cpp
+++ b/src/anbox/container/lxc_container.cpp
@@ -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, "");