Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] apparmor: fix dhcpcd profile for dhcpcd version 9
@ 2020-04-08 10:49 the-antz
  2020-04-08 11:29 ` [PR PATCH] [Updated] [NOMERGE] " the-antz
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: the-antz @ 2020-04-08 10:49 UTC (permalink / raw)
  To: ml

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

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

https://github.com/the-antz/void-packages apparmor
https://github.com/void-linux/void-packages/pull/20752

apparmor: fix dhcpcd profile for dhcpcd version 9
Some filename changes introduced by dhcpcd 9 seem unintended, like using
```
/run/pid
/run/sock
/run/unpriv.sock
```
instead of
```
/run/dhcpcd{-*,}.pid
/run/dhcpcd.sock
/run/dhcpcd.unpriv.sock
```
but the profile works for now.

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

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

From cbf8d09b8cc93c608e50f9fd4d2bea0b5de7a0f8 Mon Sep 17 00:00:00 2001
From: Antz <antzz@protonmail.ch>
Date: Wed, 8 Apr 2020 12:40:03 +0200
Subject: [PATCH] apparmor: fix dhcpcd profile for dhcpcd version 9

---
 srcpkgs/apparmor/files/profiles/usr.bin.dhcpcd | 15 ++++++++++++---
 srcpkgs/apparmor/template                      |  2 +-
 2 files changed, 13 insertions(+), 4 deletions(-)

diff --git a/srcpkgs/apparmor/files/profiles/usr.bin.dhcpcd b/srcpkgs/apparmor/files/profiles/usr.bin.dhcpcd
index 65c3970ab15..30f5b712e75 100644
--- a/srcpkgs/apparmor/files/profiles/usr.bin.dhcpcd
+++ b/srcpkgs/apparmor/files/profiles/usr.bin.dhcpcd
@@ -7,9 +7,15 @@ profile dhcpcd /{usr/,}bin/dhcpcd {
   #include <abstractions/nameservice>
 
   capability chown,
+  capability fowner,
+  capability fsetid,
+  capability kill,
   capability net_admin,
   capability net_raw,
+  capability setuid,
+  capability setgid,
   capability sys_admin,
+  capability sys_chroot,
 
   network packet dgram,
   network inet raw,
@@ -26,9 +32,12 @@ profile dhcpcd /{usr/,}bin/dhcpcd {
   /proc/sys/net/ipv{4,6}/neigh/*/retrans_time_ms w,
   /proc/sys/net/ipv{4,6}/neigh/*/base_reachable_time_ms w,
 
-  /{var/,}run/dhcpcd{-*,}.pid rwk,
-  /{var/,}run/dhcpcd.sock rw,
-  /{var/,}run/dhcpcd.unpriv.sock rw,
+  #/{var/,}run/dhcpcd{-*,}.pid rwk,
+  #/{var/,}run/dhcpcd.sock rw,
+  #/{var/,}run/dhcpcd.unpriv.sock rw,
+  /{var/,}run/pid rwk,
+  /{var/,}run/sock w,
+  /{var/,}run/unpriv.sock w,
   /{var/,}run/udev/data/* r,
 
   /sys/devices/**/net/*/uevent r,
diff --git a/srcpkgs/apparmor/template b/srcpkgs/apparmor/template
index a0e04bf6a61..cd7073fdcfb 100644
--- a/srcpkgs/apparmor/template
+++ b/srcpkgs/apparmor/template
@@ -1,7 +1,7 @@
 # Template file for 'apparmor'
 pkgname=apparmor
 version=2.13.4
-revision=1
+revision=2
 wrksrc="${pkgname}-v${version}"
 build_wrksrc=libraries/libapparmor
 build_style=gnu-configure

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

end of thread, other threads:[~2020-04-13 17:32 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-08 10:49 [PR PATCH] apparmor: fix dhcpcd profile for dhcpcd version 9 the-antz
2020-04-08 11:29 ` [PR PATCH] [Updated] [NOMERGE] " the-antz
2020-04-09  2:22 ` LamaRaz
2020-04-09 14:54 ` the-antz
2020-04-09 15:37 ` LamaRaz
2020-04-09 17:59 ` the-antz
2020-04-09 18:26 ` LamaRaz
2020-04-09 18:37 ` the-antz
2020-04-11 15:44 ` [PR PATCH] [Updated] " the-antz
2020-04-11 15:44 ` the-antz
2020-04-11 16:58 ` CameronNemo
2020-04-13 17:27 ` CameronNemo
2020-04-13 17:32 ` [PR PATCH] [Merged]: " xtraeme

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).