Package: tor
Version: 0.4.7.3-alpha-1
Severity: minor
Tags: patch

Hi,

obfs4proxy more recent than the one in Debian, such as 0.0.11, needs
read access to /sys/kernel/mm/transparent_hugepage/hpage_pmd_size.
The attached patch grants such access.

Thanks in advance!

>From e5711ee98c5115cc24fe61b7346de92473b65199 Mon Sep 17 00:00:00 2001
From: intrigeri <intrig...@boum.org>
Date: Wed, 19 Jan 2022 10:28:03 +0000
Subject: [PATCH] AppArmor: allow access to
 /sys/kernel/mm/transparent_hugepage/hpage_pmd_size

obfs4proxy 0.0.11 needs this.
---
 debian/tor.apparmor-profile.abstraction | 1 +
 1 file changed, 1 insertion(+)

diff --git a/debian/tor.apparmor-profile.abstraction b/debian/tor.apparmor-profile.abstraction
index f2fe3c4e46..8271db63df 100644
--- a/debian/tor.apparmor-profile.abstraction
+++ b/debian/tor.apparmor-profile.abstraction
@@ -19,6 +19,7 @@
 
   # Needed by obfs4proxy
   /proc/sys/net/core/somaxconn r,
+  /sys/kernel/mm/transparent_hugepage/hpage_pmd_size r,
 
   /proc/sys/kernel/random/uuid r,
   /sys/devices/system/cpu/ r,
-- 
2.34.1

Reply via email to