- add fix-internet-access.patch to fix boo#1196542

OBS-URL: https://build.opensuse.org/package/show/Virtualization/firejail?expand=0&rev=44
This commit is contained in:
Sebastian Wagner 2022-02-28 19:39:03 +00:00 committed by Git OBS Bridge
parent 48b9cccdb4
commit 566ad0a710
3 changed files with 30 additions and 0 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Feb 28 19:38:38 UTC 2022 - Sebastian Wagner <sebix+novell.com@sebix.at>
- add fix-internet-access.patch to fix boo#1196542
-------------------------------------------------------------------
Sun Feb 6 21:09:00 UTC 2022 - Sebastian Wagner <sebix+novell.com@sebix.at>

View File

@ -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} \

22
fix-internet-access.patch Normal file
View File

@ -0,0 +1,22 @@
From bb334a8fd4f0911a8dfa1538d02fbd0574b81333 Mon Sep 17 00:00:00 2001
From: netblue30 <netblue30@protonmail.com>
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