From 918e19238a07b58336f3a8b50695a66b51de7e92 Mon Sep 17 00:00:00 2001 From: Cameron Nemo Date: Tue, 9 Oct 2018 12:39:24 -0700 Subject: [PATCH] rc.apparmor.functions: skip XBPS conffile artifacts --- parser/rc.apparmor.functions | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/parser/rc.apparmor.functions b/parser/rc.apparmor.functions index cc531f1bf..516edf11d 100644 --- a/parser/rc.apparmor.functions +++ b/parser/rc.apparmor.functions @@ -117,7 +117,7 @@ skip_profile() { "${profile%\~}" != "${profile}" ] ; then return 1 fi - # Silently ignore the dpkg and pacman files + # Silently ignore the dpkg, pacman, and xbps files if [ "${profile%.dpkg-new}" != "${profile}" -o \ "${profile%.dpkg-old}" != "${profile}" -o \ "${profile%.dpkg-dist}" != "${profile}" -o \ @@ -127,6 +127,9 @@ skip_profile() { "${profile%.pacnew}" != "${profile}" ] ; then return 2 fi + if echo "${profile}" | egrep -q '^.+\.new-[0-9\.]+_[0-9]+$'; then + return 2 ;; + fi return 0 }