From 67d43ff3597fa84f129b12fd0d09aa64a139c833 Mon Sep 17 00:00:00 2001 From: Eric Torres Date: Tue, 12 Mar 2019 13:17:53 -0700 Subject: [PATCH] Update AppArmor profiles to include $XDG_CACHE_HOME/aurutils/sync --- PKGBUILD | 2 +- misc/apparmor/usr.bin.addpkg | 6 ++++-- misc/apparmor/usr.bin.delpkg | 7 +++++-- setup.py | 2 +- 4 files changed, 11 insertions(+), 6 deletions(-) diff --git a/PKGBUILD b/PKGBUILD index b89b0d2..3aeb262 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,6 +1,6 @@ # Maintainer: Eric Torres pkgname=packaging-scripts -pkgver=1.1.2 +pkgver=1.1.3 pkgrel=1 pkgdesc="A set of helper scripts for handling Arch Linux packages" arch=('any') diff --git a/misc/apparmor/usr.bin.addpkg b/misc/apparmor/usr.bin.addpkg index 18300b5..8b87422 100644 --- a/misc/apparmor/usr.bin.addpkg +++ b/misc/apparmor/usr.bin.addpkg @@ -16,6 +16,8 @@ # Home permissions are really touchy # Since PKGBUILD files exist only on # the top level of each package anyways - /home/*/{Packages,Projects} r, - /home/*/{Packages,Projects}/** rw, + owner /home/*/{Packages,Projects} r, + owner /home/*/{Packages,Projects}/** rw, + owner /home/*/.cache/aurutils/* r, + owner /home/*/.cache/aurutils/** rw, } diff --git a/misc/apparmor/usr.bin.delpkg b/misc/apparmor/usr.bin.delpkg index 43dce84..643e95e 100644 --- a/misc/apparmor/usr.bin.delpkg +++ b/misc/apparmor/usr.bin.delpkg @@ -6,6 +6,7 @@ #include /usr/bin/delpkg mrix, + /usr/bin/repo-add Ux, /usr/bin/repo-remove Ux, /etc/pacman.conf r, @@ -17,6 +18,8 @@ # Home permissions are really touchy # Since PKGBUILD files exist only on # the top level of each package anyways - /home/*/{Packages,Projects} r, - /home/*/{Packages,Projects}/** rw, + owner /home/*/{Packages,Projects}/ r, + owner /home/*/{Packages,Projects}/** rw, + owner /home/*/.cache/aurutils/* r, + owner /home/*/.cache/aurutils/** rw, } diff --git a/setup.py b/setup.py index 30f0875..7d96725 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ with open("README.rst", "r") as fh: setuptools.setup( name="packaging_scripts", - version="1.1.2", + version="1.1.3", author="Eric Russel Torres", author_email="erictorres4@protonmail.com", description="A set of helpers for automating borg interaction",