[lxc-devel] [lxc/master] [aa-profile] Deny access to /proc/acpi/**

P-EB on Github lxc-bot at linuxcontainers.org
Sat Aug 10 20:08:56 UTC 2019


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 318 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20190810/2c2d1d97/attachment.bin>
-------------- next part --------------
From 84597151581f798d74322cdcf5fcc4b1d0fc0948 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Pierre-Elliott=20B=C3=A9cue?= <becue at crans.org>
Date: Sat, 10 Aug 2019 22:07:42 +0200
Subject: [PATCH] [aa-profile] Deny access to /proc/acpi/**

---
 config/apparmor/abstractions/container-base.in | 1 +
 1 file changed, 1 insertion(+)

diff --git a/config/apparmor/abstractions/container-base.in b/config/apparmor/abstractions/container-base.in
index 1a3ead89ad..2606fb64c6 100644
--- a/config/apparmor/abstractions/container-base.in
+++ b/config/apparmor/abstractions/container-base.in
@@ -73,6 +73,7 @@
   # block some other dangerous paths
   deny @{PROC}/kcore rwklx,
   deny @{PROC}/sysrq-trigger rwklx,
+  deny @{PROC}/acpi/** rwklx,
 
   # deny writes in /sys except for /sys/fs/cgroup, also allow
   # fusectl, securityfs and debugfs to be mounted there (read-only)


More information about the lxc-devel mailing list