[arch-commits] Commit in osbuild/trunk (PKGBUILD no-selinux-distro-fix.patch)
Jelle van der Waa
jelle at gemini.archlinux.org
Wed Apr 13 13:52:32 UTC 2022
Date: Wednesday, April 13, 2022 @ 13:52:31
Author: jelle
Revision: 1186047
upgpkg: osbuild 54-1
Modified:
osbuild/trunk/PKGBUILD
Deleted:
osbuild/trunk/no-selinux-distro-fix.patch
-----------------------------+
PKGBUILD | 4 ++--
no-selinux-distro-fix.patch | 42 ------------------------------------------
2 files changed, 2 insertions(+), 44 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-04-13 13:10:57 UTC (rev 1186046)
+++ PKGBUILD 2022-04-13 13:52:31 UTC (rev 1186047)
@@ -3,7 +3,7 @@
pkgname=osbuild
pkgdesc='Build Pipelines for Operating System Artifacts'
-pkgver=53
+pkgver=54
pkgrel=1
url="https://www.osbuild.org"
arch=(any)
@@ -13,7 +13,7 @@
optdepends=('dnf: build rpm/dnf images'
'pacman: build pacman images')
source=($pkgname-$pkgver.tar.gz::https://github.com/osbuild/osbuild/archive/refs/tags/v${pkgver}.tar.gz)
-sha256sums=('a7d4faa09feeab993b97bf37b80c665b01c472f7d3c965c9256e385ff04b3053')
+sha256sums=('60397199ffda7b66deb960abf3f2ae98fb9c994a3b95dd520252ac87283723ee')
prepare() {
cd $pkgname-$pkgver
Deleted: no-selinux-distro-fix.patch
===================================================================
--- no-selinux-distro-fix.patch 2022-04-13 13:10:57 UTC (rev 1186046)
+++ no-selinux-distro-fix.patch 2022-04-13 13:52:31 UTC (rev 1186047)
@@ -1,42 +0,0 @@
-From 5cde83a7f8ec29f3aa8c214c6e74921cd734a387 Mon Sep 17 00:00:00 2001
-From: Christian Kellner <christian at kellner.me>
-Date: Thu, 17 Mar 2022 15:22:12 +0100
-Subject: [PATCH] stages/selinux: directly call setfilecon
-
-Instead of using `chcon`, directly call `selinux.setfilecon`. On
-systems without SELinux support, i.e. coreutils was built without
-<selinux.h> present, `chcon` will return `ENOTSUP` for all selinux
-related calls like `setfilecon` even if the selinux libraries are
-later installed. Therefore we directly call the library function
-which should ensure that we don't error out as long as the library
-is present. The only other thing `chcon` is doing besides a cal to
-the `setfilecon` method is to convert the context string to a
-`contex_t` and back to validate it. This should not be needed since
-the kernel will do this for us. On system without SELinux support
-`context_new` will also not validate the context.
----
- stages/org.osbuild.selinux | 4 +++-
- 1 file changed, 3 insertions(+), 1 deletion(-)
-
-diff --git a/stages/org.osbuild.selinux b/stages/org.osbuild.selinux
-index 2ca277e7a..64d4fb66f 100755
---- a/stages/org.osbuild.selinux
-+++ b/stages/org.osbuild.selinux
-@@ -25,6 +25,8 @@ import pathlib
- import subprocess
- import sys
-
-+import selinux
-+
- import osbuild.api
-
-
-@@ -60,7 +62,7 @@ def main(tree, options):
-
- for path, label in labels.items():
- fullpath = os.path.join(tree, path.lstrip("/"))
-- subprocess.run(["chcon", "-v", label, fullpath], check=True)
-+ selinux.setfilecon(fullpath, label)
-
- if options.get("force_autorelabel", False):
- stamp = pathlib.Path(tree, ".autorelabel")
More information about the arch-commits
mailing list