From 1a4c4c8731a6410546dff2577600dd15156a59590df429ef9792ce16f5151622 Mon Sep 17 00:00:00 2001 From: "Dr. Werner Fink" Date: Thu, 24 Feb 2022 10:07:30 +0000 Subject: [PATCH] libseccomp sandboxing OBS-URL: https://build.opensuse.org/package/show/Base:System/file?expand=0&rev=234 --- file-rpmlintrc | 1 - file.changes | 7 ++++++- file.spec | 6 +++--- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/file-rpmlintrc b/file-rpmlintrc index 08be22c..a124502 100644 --- a/file-rpmlintrc +++ b/file-rpmlintrc @@ -1,3 +1,2 @@ -addFilter(".*W:.*no-dependency-on file.*/file-libs/libfile.*") addFilter(".*W:.*name-repeated-in-summary.*") addFilter(".*:.*shlib-fixed-dependency.*") diff --git a/file.changes b/file.changes index f507d5e..cd2448e 100644 --- a/file.changes +++ b/file.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Feb 24 10:05:17 UTC 2022 - Dr. Werner Fink + +- Reenable libseccomp sandboxing + ------------------------------------------------------------------- Thu Feb 24 08:41:32 UTC 2022 - Dominique Leuenberger @@ -16,7 +21,7 @@ Mon Feb 21 17:09:56 UTC 2022 - Dominique Leuenberger ------------------------------------------------------------------- Thu Oct 21 06:24:35 UTC 2021 - Dr. Werner Fink -- Remove file-5.38-allow-readlinkat.dif as already doen in latest +- Remove file-5.38-allow-readlinkat.dif as already done in latest file 5.41 ------------------------------------------------------------------- diff --git a/file.spec b/file.spec index 3d76f0a..d63dcfc 100644 --- a/file.spec +++ b/file.spec @@ -22,9 +22,10 @@ Name: file BuildRequires: bash >= 4.0 BuildRequires: libtool -BuildRequires: zlib-devel BuildRequires: pkgconfig(bzip2) BuildRequires: pkgconfig(liblzma) +BuildRequires: pkgconfig(libseccomp) +BuildRequires: pkgconfig(zlib) URL: http://www.darwinsys.com/file/ # bug437293 %ifarch ppc64 @@ -135,10 +136,9 @@ export LC_ALL=POSIX rm -f Magdir/*,v Magdir/*~ rm -f ltcf-c.sh ltconfig ltmain.sh autoreconf -fiv -export CFLAGS="%{optflags} -DHOWMANY=69632 -fPIE" +export CFLAGS="%{optflags} -DHOWMANY=69632 -fPIE $(pkg-config libseccomp --cflags)" %configure --disable-silent-rules --datadir=%{_miscdir} \ --disable-static \ - --disable-libseccomp \ --enable-fsect-man5 make %{?_smp_mflags} pkgdatadir='$(datadir)' LDFLAGS="-pie"