From 566ad0a7101a22298b760162b431863bd1fc42edb646abe37a10cde36cc4ea16 Mon Sep 17 00:00:00 2001 From: Sebastian Wagner Date: Mon, 28 Feb 2022 19:39:03 +0000 Subject: [PATCH] - add fix-internet-access.patch to fix boo#1196542 OBS-URL: https://build.opensuse.org/package/show/Virtualization/firejail?expand=0&rev=44 --- firejail.changes | 5 +++++ firejail.spec | 3 +++ fix-internet-access.patch | 22 ++++++++++++++++++++++ 3 files changed, 30 insertions(+) create mode 100644 fix-internet-access.patch diff --git a/firejail.changes b/firejail.changes index 9360781..fe241fa 100644 --- a/firejail.changes +++ b/firejail.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Feb 28 19:38:38 UTC 2022 - Sebastian Wagner + +- add fix-internet-access.patch to fix boo#1196542 + ------------------------------------------------------------------- Sun Feb 6 21:09:00 UTC 2022 - Sebastian Wagner diff --git a/firejail.spec b/firejail.spec index d7ad8dd..c16030a 100644 --- a/firejail.spec +++ b/firejail.spec @@ -27,6 +27,8 @@ Source0: https://github.com/netblue30/%{name}/releases/download/%{version Source1: https://github.com/netblue30/%{name}/releases/download/%{version}/%{name}-%{version}.tar.xz.asc # https://firejail.wordpress.com/download-2/ Source2: %{name}.keyring +# PATCH-FIX-UPSTREAM fix-internet-access.patch -- from https://github.com/netblue30/firejail/commit/bb334a8fd4f0911a8dfa1538d02fbd0574b81333.patch +Patch0: fix-internet-access.patch BuildRequires: fdupes BuildRequires: gcc-c++ BuildRequires: libapparmor-devel @@ -65,6 +67,7 @@ Optional dependency offering zsh completion for firejail %prep %setup -q sed -i '1s/^#!\/usr\/bin\/env /#!\/usr\/bin\//' contrib/fj-mkdeb.py contrib/fjclip.py contrib/fjdisplay.py contrib/fjresize.py contrib/sort.py contrib/fix_private-bin.py contrib/jail_prober.py +%patch0 -p1 %build %configure --docdir=%{_docdir}/%{name} \ diff --git a/fix-internet-access.patch b/fix-internet-access.patch new file mode 100644 index 0000000..7b08547 --- /dev/null +++ b/fix-internet-access.patch @@ -0,0 +1,22 @@ +From bb334a8fd4f0911a8dfa1538d02fbd0574b81333 Mon Sep 17 00:00:00 2001 +From: netblue30 +Date: Tue, 22 Feb 2022 09:32:46 -0500 +Subject: [PATCH] openSUSE Leap - whitelist-run-common.inc (#4954) + +--- + RELNOTES | 1 + + etc/inc/whitelist-run-common.inc | 1 + + 2 files changed, 2 insertions(+) + +diff --git a/etc/inc/whitelist-run-common.inc b/etc/inc/whitelist-run-common.inc +index d74655a087..26160a10b9 100644 +--- a/etc/inc/whitelist-run-common.inc ++++ b/etc/inc/whitelist-run-common.inc +@@ -7,6 +7,7 @@ whitelist /run/cups/cups.sock + whitelist /run/dbus/system_bus_socket + whitelist /run/media + whitelist /run/resolvconf/resolv.conf ++whitelist /run/netconfig/resolv.conf # openSUSE Leap + whitelist /run/shm + whitelist /run/systemd/journal/dev-log + whitelist /run/systemd/journal/socket