From 41aede9bbed0c052869b2b0d6ccdfae9667ecca6 Mon Sep 17 00:00:00 2001 From: shenmo Date: Wed, 22 Oct 2025 12:58:04 +0800 Subject: [PATCH] 1.0.7.1 ubuntu fix --- .lock | 0 src/DEBIAN/control | 2 +- src/DEBIAN/postinst | 1 + src/etc/apparmor.d/apm | 9 +++++++++ 4 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 .lock create mode 100644 src/etc/apparmor.d/apm diff --git a/.lock b/.lock new file mode 100644 index 0000000..e69de29 diff --git a/src/DEBIAN/control b/src/DEBIAN/control index 538194f..01c15b3 100755 --- a/src/DEBIAN/control +++ b/src/DEBIAN/control @@ -1,6 +1,6 @@ Package: apm Source: amber-ce -Version: 1.0.7 +Version: 1.0.7.1 Architecture: amd64 Maintainer: shenmo Installed-Size: 49036 diff --git a/src/DEBIAN/postinst b/src/DEBIAN/postinst index 2e83b14..a8b2c6a 100755 --- a/src/DEBIAN/postinst +++ b/src/DEBIAN/postinst @@ -10,6 +10,7 @@ systemctl enable gxde-apm-fixer systemctl enable apm-daily-update systemctl start gxde-apm-fixer systemctl start apm-daily-update +systemctl restart apparmor.service || true if [ -f /usr/lib/sysctl.d/apm.conf ];then sysctl -p /usr/lib/sysctl.d/apm.conf diff --git a/src/etc/apparmor.d/apm b/src/etc/apparmor.d/apm new file mode 100644 index 0000000..b0a5354 --- /dev/null +++ b/src/etc/apparmor.d/apm @@ -0,0 +1,9 @@ +abi , +include + +profile bwrap /usr/bin/bwrap flags=(unconfined) { + userns, + + # Site-specific additions and overrides. See local/README for details. + include if exists +} \ No newline at end of file