Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] runit-void: load apparmor profiles from symlinks in /etc/apparmor.d
@ 2025-01-02 16:49 el-remph
  2025-01-02 19:30 ` [PR REVIEW] " classabbyamp
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: el-remph @ 2025-01-02 16:49 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 744 bytes --]

There is a new pull request by el-remph against master on the void-packages repository

https://github.com/el-remph/void-packages apparmor-load-symlinks
https://github.com/void-linux/void-packages/pull/53812

runit-void: load apparmor profiles from symlinks in /etc/apparmor.d
#### Testing the changes
- I tested the changes in this PR: **YES**

Fixes: the existing script doesn't load apparmor profiles from symlinks, so eg. if you symlink to one of the /usr/share/apparmor/extra-profiles/, that will be silently skipped

This also doesn't rely on shell whitespace splitting (ot that there should be whitespace anywhere in these filenames anyway)

A patch file from https://github.com/void-linux/void-packages/pull/53812.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-apparmor-load-symlinks-53812.patch --]
[-- Type: text/x-diff, Size: 1493 bytes --]

From 790a4aece7b3f0f644dd966c940a875b1afc4ef7 Mon Sep 17 00:00:00 2001
From: remph <lhr@disroot.org>
Date: Tue, 24 Dec 2024 14:37:03 +0000
Subject: [PATCH] runit-void: load apparmor profiles from symlinks in
 /etc/apparmor.d

---
 srcpkgs/runit-void/files/09-apparmor.sh | 2 +-
 srcpkgs/runit-void/template             | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/runit-void/files/09-apparmor.sh b/srcpkgs/runit-void/files/09-apparmor.sh
index 1d24b4e349cd2b..e2c87a6b6225fd 100644
--- a/srcpkgs/runit-void/files/09-apparmor.sh
+++ b/srcpkgs/runit-void/files/09-apparmor.sh
@@ -18,7 +18,7 @@ if [ -n "$APPARMOR" ]; then
 	[ "$APPARMOR" = "complain" ] && AACOMPLAIN="-C"
 
 	if [ -d /etc/apparmor.d -a -x /usr/bin/apparmor_parser ]; then
-		apparmor_parser -a $AACOMPLAIN $(find /etc/apparmor.d -maxdepth 1 -type f ! -name '*.new-*_*')
+		find -L /etc/apparmor.d -maxdepth 1 -type f ! -name '*.new-*_*' -exec apparmor_parser -a $AACOMPLAIN -- {} +
 	else
 		printf '! AppArmor installation problem - ensure you have installed apparmor package\n'
 	fi
diff --git a/srcpkgs/runit-void/template b/srcpkgs/runit-void/template
index dc74a41785cab0..a11b567d43e2c6 100644
--- a/srcpkgs/runit-void/template
+++ b/srcpkgs/runit-void/template
@@ -1,7 +1,7 @@
 # Template file for 'runit-void'
 pkgname=runit-void
 version=20231124
-revision=5
+revision=6
 build_style=gnu-makefile
 short_desc="Void Linux runit scripts"
 maintainer="Enno Boland <gottox@voidlinux.org>"

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PR REVIEW] runit-void: load apparmor profiles from symlinks in /etc/apparmor.d
  2025-01-02 16:49 [PR PATCH] runit-void: load apparmor profiles from symlinks in /etc/apparmor.d el-remph
@ 2025-01-02 19:30 ` classabbyamp
  2025-01-07 14:55 ` [PR PATCH] [Updated] " el-remph
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: classabbyamp @ 2025-01-02 19:30 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 244 bytes --]

New review comment by classabbyamp on void-packages repository

https://github.com/void-linux/void-packages/pull/53812#discussion_r1901196143

Comment:
please rebase (revision should go to 7 because of 6067b38ec7f54d949290e5c98915dad812d097b1)

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PR PATCH] [Updated] runit-void: load apparmor profiles from symlinks in /etc/apparmor.d
  2025-01-02 16:49 [PR PATCH] runit-void: load apparmor profiles from symlinks in /etc/apparmor.d el-remph
  2025-01-02 19:30 ` [PR REVIEW] " classabbyamp
@ 2025-01-07 14:55 ` el-remph
  2025-01-07 14:56 ` [PR REVIEW] " el-remph
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: el-remph @ 2025-01-07 14:55 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 749 bytes --]

There is an updated pull request by el-remph against master on the void-packages repository

https://github.com/el-remph/void-packages apparmor-load-symlinks
https://github.com/void-linux/void-packages/pull/53812

runit-void: load apparmor profiles from symlinks in /etc/apparmor.d
#### Testing the changes
- I tested the changes in this PR: **YES**

Fixes: the existing script doesn't load apparmor profiles from symlinks, so eg. if you symlink to one of the /usr/share/apparmor/extra-profiles/, that will be silently skipped

This also doesn't rely on shell whitespace splitting (ot that there should be whitespace anywhere in these filenames anyway)

A patch file from https://github.com/void-linux/void-packages/pull/53812.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-apparmor-load-symlinks-53812.patch --]
[-- Type: text/x-diff, Size: 1493 bytes --]

From 509572dc829024b2be28814996d86b2e142b2eaf Mon Sep 17 00:00:00 2001
From: remph <lhr@disroot.org>
Date: Tue, 24 Dec 2024 14:37:03 +0000
Subject: [PATCH] runit-void: load apparmor profiles from symlinks in
 /etc/apparmor.d

---
 srcpkgs/runit-void/files/09-apparmor.sh | 2 +-
 srcpkgs/runit-void/template             | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/runit-void/files/09-apparmor.sh b/srcpkgs/runit-void/files/09-apparmor.sh
index 1d24b4e349cd2b..e2c87a6b6225fd 100644
--- a/srcpkgs/runit-void/files/09-apparmor.sh
+++ b/srcpkgs/runit-void/files/09-apparmor.sh
@@ -18,7 +18,7 @@ if [ -n "$APPARMOR" ]; then
 	[ "$APPARMOR" = "complain" ] && AACOMPLAIN="-C"
 
 	if [ -d /etc/apparmor.d -a -x /usr/bin/apparmor_parser ]; then
-		apparmor_parser -a $AACOMPLAIN $(find /etc/apparmor.d -maxdepth 1 -type f ! -name '*.new-*_*')
+		find -L /etc/apparmor.d -maxdepth 1 -type f ! -name '*.new-*_*' -exec apparmor_parser -a $AACOMPLAIN -- {} +
 	else
 		printf '! AppArmor installation problem - ensure you have installed apparmor package\n'
 	fi
diff --git a/srcpkgs/runit-void/template b/srcpkgs/runit-void/template
index a11b567d43e2c6..20625f8100fa18 100644
--- a/srcpkgs/runit-void/template
+++ b/srcpkgs/runit-void/template
@@ -1,7 +1,7 @@
 # Template file for 'runit-void'
 pkgname=runit-void
 version=20231124
-revision=6
+revision=7
 build_style=gnu-makefile
 short_desc="Void Linux runit scripts"
 maintainer="Enno Boland <gottox@voidlinux.org>"

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PR REVIEW] runit-void: load apparmor profiles from symlinks in /etc/apparmor.d
  2025-01-02 16:49 [PR PATCH] runit-void: load apparmor profiles from symlinks in /etc/apparmor.d el-remph
  2025-01-02 19:30 ` [PR REVIEW] " classabbyamp
  2025-01-07 14:55 ` [PR PATCH] [Updated] " el-remph
@ 2025-01-07 14:56 ` el-remph
  2025-04-08  2:06 ` github-actions
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: el-remph @ 2025-01-07 14:56 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 153 bytes --]

New review comment by el-remph on void-packages repository

https://github.com/void-linux/void-packages/pull/53812#discussion_r1905578842

Comment:
done

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: runit-void: load apparmor profiles from symlinks in /etc/apparmor.d
  2025-01-02 16:49 [PR PATCH] runit-void: load apparmor profiles from symlinks in /etc/apparmor.d el-remph
                   ` (2 preceding siblings ...)
  2025-01-07 14:56 ` [PR REVIEW] " el-remph
@ 2025-04-08  2:06 ` github-actions
  2025-04-09 18:07 ` [PR PATCH] [Updated] " el-remph
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: github-actions @ 2025-04-08  2:06 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 305 bytes --]

New comment by github-actions[bot] on void-packages repository

https://github.com/void-linux/void-packages/pull/53812#issuecomment-2785044197

Comment:
Pull Requests become stale 90 days after last activity and are closed 14 days after that.  If this pull request is still relevant bump it or assign it.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PR PATCH] [Updated] runit-void: load apparmor profiles from symlinks in /etc/apparmor.d
  2025-01-02 16:49 [PR PATCH] runit-void: load apparmor profiles from symlinks in /etc/apparmor.d el-remph
                   ` (3 preceding siblings ...)
  2025-04-08  2:06 ` github-actions
@ 2025-04-09 18:07 ` el-remph
  2025-04-09 23:25 ` el-remph
  2025-04-22 16:17 ` [PR PATCH] [Merged]: " classabbyamp
  6 siblings, 0 replies; 8+ messages in thread
From: el-remph @ 2025-04-09 18:07 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 749 bytes --]

There is an updated pull request by el-remph against master on the void-packages repository

https://github.com/el-remph/void-packages apparmor-load-symlinks
https://github.com/void-linux/void-packages/pull/53812

runit-void: load apparmor profiles from symlinks in /etc/apparmor.d
#### Testing the changes
- I tested the changes in this PR: **YES**

Fixes: the existing script doesn't load apparmor profiles from symlinks, so eg. if you symlink to one of the /usr/share/apparmor/extra-profiles/, that will be silently skipped

This also doesn't rely on shell whitespace splitting (ot that there should be whitespace anywhere in these filenames anyway)

A patch file from https://github.com/void-linux/void-packages/pull/53812.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-apparmor-load-symlinks-53812.patch --]
[-- Type: text/x-diff, Size: 1493 bytes --]

From f324c77ed9dfd1e0856889dd9ca82354e1332bd8 Mon Sep 17 00:00:00 2001
From: remph <lhr@disroot.org>
Date: Tue, 24 Dec 2024 14:37:03 +0000
Subject: [PATCH] runit-void: load apparmor profiles from symlinks in
 /etc/apparmor.d

---
 srcpkgs/runit-void/files/09-apparmor.sh | 2 +-
 srcpkgs/runit-void/template             | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/runit-void/files/09-apparmor.sh b/srcpkgs/runit-void/files/09-apparmor.sh
index 1d24b4e349cd2b..e2c87a6b6225fd 100644
--- a/srcpkgs/runit-void/files/09-apparmor.sh
+++ b/srcpkgs/runit-void/files/09-apparmor.sh
@@ -18,7 +18,7 @@ if [ -n "$APPARMOR" ]; then
 	[ "$APPARMOR" = "complain" ] && AACOMPLAIN="-C"
 
 	if [ -d /etc/apparmor.d -a -x /usr/bin/apparmor_parser ]; then
-		apparmor_parser -a $AACOMPLAIN $(find /etc/apparmor.d -maxdepth 1 -type f ! -name '*.new-*_*')
+		find -L /etc/apparmor.d -maxdepth 1 -type f ! -name '*.new-*_*' -exec apparmor_parser -a $AACOMPLAIN -- {} +
 	else
 		printf '! AppArmor installation problem - ensure you have installed apparmor package\n'
 	fi
diff --git a/srcpkgs/runit-void/template b/srcpkgs/runit-void/template
index 090ba93f6a231c..f4665ee18435d6 100644
--- a/srcpkgs/runit-void/template
+++ b/srcpkgs/runit-void/template
@@ -1,7 +1,7 @@
 # Template file for 'runit-void'
 pkgname=runit-void
 version=20250212
-revision=1
+revision=2
 build_style=gnu-makefile
 short_desc="Void Linux runit scripts"
 maintainer="Enno Boland <gottox@voidlinux.org>"

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: runit-void: load apparmor profiles from symlinks in /etc/apparmor.d
  2025-01-02 16:49 [PR PATCH] runit-void: load apparmor profiles from symlinks in /etc/apparmor.d el-remph
                   ` (4 preceding siblings ...)
  2025-04-09 18:07 ` [PR PATCH] [Updated] " el-remph
@ 2025-04-09 23:25 ` el-remph
  2025-04-22 16:17 ` [PR PATCH] [Merged]: " classabbyamp
  6 siblings, 0 replies; 8+ messages in thread
From: el-remph @ 2025-04-09 23:25 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 219 bytes --]

New comment by el-remph on void-packages repository

https://github.com/void-linux/void-packages/pull/53812#issuecomment-2791185010

Comment:
Still relevant; have rebased onto current master and updated revision number

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PR PATCH] [Merged]: runit-void: load apparmor profiles from symlinks in /etc/apparmor.d
  2025-01-02 16:49 [PR PATCH] runit-void: load apparmor profiles from symlinks in /etc/apparmor.d el-remph
                   ` (5 preceding siblings ...)
  2025-04-09 23:25 ` el-remph
@ 2025-04-22 16:17 ` classabbyamp
  6 siblings, 0 replies; 8+ messages in thread
From: classabbyamp @ 2025-04-22 16:17 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 576 bytes --]

There's a merged pull request on the void-packages repository

runit-void: load apparmor profiles from symlinks in /etc/apparmor.d
https://github.com/void-linux/void-packages/pull/53812

Description:
#### Testing the changes
- I tested the changes in this PR: **YES**

Fixes: the existing script doesn't load apparmor profiles from symlinks, so eg. if you symlink to one of the /usr/share/apparmor/extra-profiles/, that will be silently skipped

This also doesn't rely on shell whitespace splitting (ot that there should be whitespace anywhere in these filenames anyway)

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2025-04-22 16:17 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-01-02 16:49 [PR PATCH] runit-void: load apparmor profiles from symlinks in /etc/apparmor.d el-remph
2025-01-02 19:30 ` [PR REVIEW] " classabbyamp
2025-01-07 14:55 ` [PR PATCH] [Updated] " el-remph
2025-01-07 14:56 ` [PR REVIEW] " el-remph
2025-04-08  2:06 ` github-actions
2025-04-09 18:07 ` [PR PATCH] [Updated] " el-remph
2025-04-09 23:25 ` el-remph
2025-04-22 16:17 ` [PR PATCH] [Merged]: " classabbyamp

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).