From a81a8f188af11b2b4fbf296fe61ce6d7fc418b73 Mon Sep 17 00:00:00 2001 From: kpcyrd Date: Fri, 27 Oct 2023 18:59:20 +0200 Subject: [PATCH] Writing to /etc from data_files is not allowed anymore --- setup.py | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/setup.py b/setup.py index 1151a35f..001fdcf3 100644 --- a/setup.py +++ b/setup.py @@ -74,25 +74,6 @@ def create_mo_files(): if files: datafiles.append((root, [os.path.join(root, f) for f in files])) -# disable shipping apparmor profiles until they work in ubuntu (#128) -if distro != "Ubuntu": - if not hasattr(sys, "real_prefix"): - # we're not in a virtualenv, so we can probably write to /etc - datafiles += [ - ( - "/etc/apparmor.d/", - ["apparmor/torbrowser.Browser.firefox", "apparmor/torbrowser.Tor.tor"], - ), - ( - "/etc/apparmor.d/local/", - [ - "apparmor/local/torbrowser.Browser.firefox", - "apparmor/local/torbrowser.Tor.tor", - ], - ), - ("/etc/apparmor.d/tunables/", ["apparmor/tunables/torbrowser"]), - ] - datafiles += [(os.path.dirname(f), [f]) for f in create_mo_files()] setup(