Skip to content

Commit 225fa74

Browse files
committed
2 parents 1990de3 + 94eb39c commit 225fa74

File tree

6 files changed

+85
-80
lines changed

6 files changed

+85
-80
lines changed

systemd-selinux/.SRCINFO

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
pkgbase = systemd-selinux
2-
pkgver = 256.7
2+
pkgver = 257.1
33
pkgrel = 1
44
url = https://www.github.com/systemd/systemd
55
arch = x86_64
@@ -57,7 +57,7 @@ pkgbase = systemd-selinux
5757
makedepends = linux-headers
5858
makedepends = libselinux
5959
conflicts = mkinitcpio<38-1
60-
source = git+https://github.com/systemd/systemd#tag=v256.7?signed
60+
source = git+https://github.com/systemd/systemd#tag=v257.1?signed
6161
source = 0001-Use-Arch-Linux-device-access-groups.patch
6262
source = arch.conf
6363
source = loader.conf
@@ -70,6 +70,7 @@ pkgbase = systemd-selinux
7070
source = 30-systemd-daemon-reload-system.hook
7171
source = 30-systemd-daemon-reload-user.hook
7272
source = 30-systemd-hwdb.hook
73+
source = 30-systemd-restart-marked.hook
7374
source = 30-systemd-sysctl.hook
7475
source = 30-systemd-tmpfiles.hook
7576
source = 30-systemd-udev-reload.hook
@@ -78,19 +79,20 @@ pkgbase = systemd-selinux
7879
validpgpkeys = A9EA9081724FFAE0484C35A1A81CEA22BC8C7E2E
7980
validpgpkeys = 9A774DB5DB996C154EBBFBFDA0099A18E29326E1
8081
validpgpkeys = 5C251B5FC54EB2F80F407AAAC54CA336CFEB557E
81-
sha512sums = 468f772b3dfa83483da75516499c50159206dc5f8e26d7a62fc08437c93a4e536c0b27ee7fa5ac11fb1bc27a9c0e41315261751e5cc7428629a30849aeb23386
82-
sha512sums = 3ccf783c28f7a1c857120abac4002ca91ae1f92205dcd5a84aff515d57e706a3f9240d75a0a67cff5085716885e06e62597baa86897f298662ec36a940cf410e
82+
sha512sums = 53b14cfadf301a44fdfcaa2fe4b9d2371c85581544093b88e5afcee4e45c5bd8668aaae9dd6663363c24f3b610f9b0d6eb61f00df71d588bce8f6264424203e4
83+
sha512sums = 78065bde708118b7d6e4ed492e096c763e4679a1c54bd98750d5d609d8cc2f1373023f308880f14fc923ae7f9fea34824917ef884c0f996b1f43d08ef022c0fb
8384
sha512sums = 61032d29241b74a0f28446f8cf1be0e8ec46d0847a61dadb2a4f096e8686d5f57fe5c72bcf386003f6520bc4b5856c32d63bf3efe7eb0bc0deefc9f68159e648
8485
sha512sums = c416e2121df83067376bcaacb58c05b01990f4614ad9de657d74b6da3efa441af251d13bf21e3f0f71ddcb4c9ea658b81da3d915667dc5c309c87ec32a1cb5a5
8586
sha512sums = 5a1d78b5170da5abe3d18fdf9f2c3a4d78f15ba7d1ee9ec2708c4c9c2e28973469bc19386f70b3cf32ffafbe4fcc4303e5ebbd6d5187a1df3314ae0965b25e75
8687
sha512sums = b90c99d768dc2a4f020ba854edf45ccf1b86a09d2f66e475de21fe589ff7e32c33ef4aa0876d7f1864491488fd7edb2682fc0d68e83a6d4890a0778dc2d6fe19
87-
sha512sums = 9835dbb46a3942e89774dd26f295af30ed9eb2cf7ba574e3016b0b4357536a102eb58d72b3add0ea7fd2a56d46b097f273dd02f68840b7a0211c9dbd2b0b7c29
88+
sha512sums = 81baa1ae439b0f4d1f09371a82c02db06a97a4fc35545fc2654f7905b4422fc8cf085f70304919a4323f39e662df1e05aa8d977d1dde73507527abe3072c386b
8889
sha512sums = 299dcc7094ce53474521356647bdd2fb069731c08d14a872a425412fcd72da840727a23664b12d95465bf313e8e8297da31259508d1c62cc2dcea596160e21c5
8990
sha512sums = 0d6bc3d928cfafe4e4e0bc04dbb95c5d2b078573e4f9e0576e7f53a8fab08a7077202f575d74a3960248c4904b5f7f0661bf17dbe163c524ab51dd30e3cb80f7
9091
sha512sums = 2b50b25e8680878f7974fa9d519df7e141ca11c4bfe84a92a5d01bb193f034b1726ea05b3c0030bad1fbda8dbb78bf1dc7b73859053581b55ba813c39b27d9dc
9192
sha512sums = a436d3f5126c6c0d6b58c6865e7bd38dbfbfb7babe017eeecb5e9d162c21902cbf4e0a68cf3ac2f99815106f9fa003b075bd2b4eb5d16333fa913df6e2f3e32a
9293
sha512sums = 190112e38d5a5c0ca91b89cd58f95595262a551530a16546e1d84700fc9644aa2ca677953ffff655261e8a7bff6e6af4e431424df5f13c00bc90b77c421bc32d
9394
sha512sums = a1661ab946c6cd7d3c6251a2a9fd68afe231db58ce33c92c42594aedb5629be8f299ba08a34713327b373a3badd1554a150343d8d3e5dfb102999c281bd49154
95+
sha512sums = f6b154fdc612916d7788720cf703e34255b43ba2d19413de5f3f63f07508f4ce561ca138f987c2118c7128e1dfb01976b0ac7d5efee4d9ebaadd180e70fa013e
9496
sha512sums = 9426829605bbb9e65002437e02ed54e35c20fdf94706770a3dc1049da634147906d6b98bf7f5e7516c84068396a12c6feaf72f92b51bdf19715e0f64620319de
9597
sha512sums = da7a97d5d3701c70dd5388b0440da39006ee4991ce174777931fea2aa8c90846a622b2b911f02ae4d5fffb92680d9a7e211c308f0f99c04896278e2ee0d9a4dc
9698
sha512sums = a50d202a9c2e91a4450b45c227b295e1840cc99a5e545715d69c8af789ea3dd95a03a30f050d52855cabdc9183d4688c1b534eaa755ebe93616f9d192a855ee3
@@ -103,7 +105,7 @@ pkgname = systemd-selinux
103105
license = CC0-1.0
104106
license = GPL-2.0-or-later
105107
license = MIT-0
106-
depends = systemd-libs-selinux=256.7
108+
depends = systemd-libs-selinux=257.1
107109
depends = acl
108110
depends = libacl.so
109111
depends = bash
@@ -151,9 +153,9 @@ pkgname = systemd-selinux
151153
optdepends = libp11-kit: support PKCS#11
152154
optdepends = tpm2-tss: unlocking LUKS2 volumes with TPM2
153155
provides = nss-myhostname
154-
provides = systemd-tools=256.7
155-
provides = udev=256.7
156-
provides = systemd=256.7-1
156+
provides = systemd-tools=257.1
157+
provides = udev=257.1
158+
provides = systemd=257.1-1
157159
conflicts = nss-myhostname
158160
conflicts = systemd-tools
159161
conflicts = udev
@@ -194,37 +196,37 @@ pkgname = systemd-libs-selinux
194196
provides = libsystemd.so
195197
provides = libudev.so
196198
provides = libsystemd-selinux
197-
provides = systemd-libs=256.7-1
199+
provides = systemd-libs=257.1-1
198200
conflicts = libsystemd
199201
conflicts = libsystemd-selinux
200202
conflicts = systemd-libs
201203
replaces = libsystemd-selinux
202204

203205
pkgname = systemd-resolvconf-selinux
204206
pkgdesc = systemd resolvconf replacement with SELinux support (for use with systemd-resolved)
205-
depends = systemd-selinux=256.7
207+
depends = systemd-selinux=257.1
206208
provides = openresolv
207209
provides = resolvconf
208-
provides = systemd-resolvconf=256.7-1
210+
provides = systemd-resolvconf=257.1-1
209211
conflicts = resolvconf
210-
conflicts = systemd-resolvconf=256.7-1
212+
conflicts = systemd-resolvconf=257.1-1
211213

212214
pkgname = systemd-sysvcompat-selinux
213215
pkgdesc = sysvinit compat for systemd with SELinux support
214-
depends = systemd-selinux=256.7
215-
provides = systemd-sysvcompat=256.7-1
216-
provides = selinux-systemd-sysvcompat=256.7-1
216+
depends = systemd-selinux=257.1
217+
provides = systemd-sysvcompat=257.1-1
218+
provides = selinux-systemd-sysvcompat=257.1-1
217219
conflicts = sysvinit
218220
conflicts = systemd-sysvcompat
219221
conflicts = selinux-systemd-sysvcompat
220222

221223
pkgname = systemd-ukify-selinux
222224
pkgdesc = Combine kernel and initrd into a signed Unified Kernel Image with SELinux support
223-
depends = systemd-selinux=256.7
225+
depends = systemd-selinux=257.1
224226
depends = binutils
225227
depends = python-cryptography
226228
depends = python-pefile
227229
optdepends = python-pillow: Show the size of splash image
228230
optdepends = sbsigntools: Sign the embedded kernel
229231
provides = ukify
230-
provides = systemd-ukify=256.7-1
232+
provides = systemd-ukify=257.1-1

systemd-selinux/0001-Use-Arch-Linux-device-access-groups.patch

Lines changed: 13 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
1-
From 0e8c18bc2639da328274d02d9222ee2c1f6bf696 Mon Sep 17 00:00:00 2001
1+
From dfdd57b81916ac4c9a69b4c4400a9145d9746e9f Mon Sep 17 00:00:00 2001
22
From: "Jan Alexander Steffens (heftig)" <[email protected]>
33
Date: Tue, 6 Mar 2018 23:39:47 +0100
44
Subject: [PATCH] Use Arch Linux' device access groups
5-
MIME-Version: 1.0
6-
Content-Type: text/plain; charset=UTF-8
7-
Content-Transfer-Encoding: 8bit
85

96
cdrom → optical
107
dialout → uucp
@@ -17,10 +14,10 @@ Content-Transfer-Encoding: 8bit
1714
4 files changed, 19 insertions(+), 19 deletions(-)
1815

1916
diff --git a/meson.build b/meson.build
20-
index 76ad51d3fb..5cf679b088 100644
17+
index d392610625..ab8689da68 100644
2118
--- a/meson.build
2219
+++ b/meson.build
23-
@@ -915,19 +915,19 @@ conf.set_quoted('NOBODY_GROUP_NAME', nobody_group)
20+
@@ -940,19 +940,19 @@ conf.set_quoted('NOBODY_GROUP_NAME', nobody_group)
2421
static_ugids = []
2522
foreach option : ['adm-gid',
2623
'audio-gid',
@@ -44,10 +41,10 @@ index 76ad51d3fb..5cf679b088 100644
4441
'wheel-gid',
4542
'systemd-journal-gid',
4643
diff --git a/meson_options.txt b/meson_options.txt
47-
index 814f340840..253a77ecb3 100644
44+
index 78ec25bfa3..0ac81db762 100644
4845
--- a/meson_options.txt
4946
+++ b/meson_options.txt
50-
@@ -257,10 +257,6 @@ option('adm-gid', type : 'integer', value : 0,
47+
@@ -287,10 +287,6 @@ option('adm-gid', type : 'integer', value : 0,
5148
description : 'soft-static allocation for the "adm" group')
5249
option('audio-gid', type : 'integer', value : 0,
5350
description : 'soft-static allocation for the "audio" group')
@@ -58,7 +55,7 @@ index 814f340840..253a77ecb3 100644
5855
option('disk-gid', type : 'integer', value : 0,
5956
description : 'soft-static allocation for the "disk" group')
6057
option('input-gid', type : 'integer', value : 0,
61-
@@ -271,18 +267,22 @@ option('kvm-gid', type : 'integer', value : 0,
58+
@@ -301,18 +297,22 @@ option('kvm-gid', type : 'integer', value : 0,
6259
description : 'soft-static allocation for the "kvm" group')
6360
option('lp-gid', type : 'integer', value : 0,
6461
description : 'soft-static allocation for the "lp" group')
@@ -84,19 +81,19 @@ index 814f340840..253a77ecb3 100644
8481
description : 'soft-static allocation for the "video" group')
8582
option('wheel-gid', type : 'integer', value : 0,
8683
diff --git a/rules.d/50-udev-default.rules.in b/rules.d/50-udev-default.rules.in
87-
index 843bdaf9ce..a192f091df 100644
84+
index 6f80feeecf..40c1bf3dbc 100644
8885
--- a/rules.d/50-udev-default.rules.in
8986
+++ b/rules.d/50-udev-default.rules.in
90-
@@ -26,7 +26,7 @@ SUBSYSTEM=="tty", KERNEL=="sclp_line[0-9]*", GROUP="tty", MODE="0620"
91-
SUBSYSTEM=="tty", KERNEL=="ttysclp[0-9]*", GROUP="tty", MODE="0620"
92-
SUBSYSTEM=="tty", KERNEL=="3270/tty[0-9]*", GROUP="tty", MODE="0620"
87+
@@ -39,7 +39,7 @@ SUBSYSTEM=="tty", KERNEL=="ptmx", GROUP="tty", MODE="0666"
88+
SUBSYSTEM=="tty", KERNEL=="tty", GROUP="tty", MODE="0666"
89+
SUBSYSTEM=="tty", KERNEL=="tty[0-9]*|hvc[0-9]*|sclp_line[0-9]*|ttysclp[0-9]*|3270/tty[0-9]*", GROUP="tty", MODE="0620"
9390
SUBSYSTEM=="vc", KERNEL=="vcs*|vcsa*", GROUP="tty"
9491
-KERNEL=="tty[A-Z]*[0-9]|ttymxc[0-9]*|pppox[0-9]*|ircomm[0-9]*|noz[0-9]*|rfcomm[0-9]*", GROUP="dialout"
9592
+KERNEL=="tty[A-Z]*[0-9]|ttymxc[0-9]*|pppox[0-9]*|ircomm[0-9]*|noz[0-9]*|rfcomm[0-9]*", GROUP="uucp"
9693

9794
SUBSYSTEM=="mem", KERNEL=="mem|kmem|port", GROUP="kmem", MODE="0640"
9895

99-
@@ -72,13 +72,13 @@ KERNEL=="irlpt[0-9]*", GROUP="lp"
96+
@@ -86,13 +86,13 @@ KERNEL=="irlpt[0-9]*", GROUP="lp"
10097
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ENV{ID_USB_INTERFACES}=="*:0701??:*", GROUP="lp"
10198

10299
SUBSYSTEM=="block", GROUP="disk"
@@ -117,10 +114,10 @@ index 843bdaf9ce..a192f091df 100644
117114
KERNEL=="qft[0-9]*|nqft[0-9]*|zqft[0-9]*|nzqft[0-9]*|rawqft[0-9]*|nrawqft[0-9]*", GROUP="disk"
118115
KERNEL=="loop-control", GROUP="disk", OPTIONS+="static_node=loop-control"
119116
diff --git a/sysusers.d/basic.conf.in b/sysusers.d/basic.conf.in
120-
index a602b872e4..8d38febb6a 100644
117+
index 992af346ca..86e622e5dd 100644
121118
--- a/sysusers.d/basic.conf.in
122119
+++ b/sysusers.d/basic.conf.in
123-
@@ -23,17 +23,17 @@ g utmp {{UTMP_GID }} - -
120+
@@ -24,17 +24,17 @@ g utmp {{UTMP_GID }} - -
124121

125122
# Physical and virtual hardware access groups
126123
g audio {{AUDIO_GID }} - -
@@ -141,41 +138,3 @@ index a602b872e4..8d38febb6a 100644
141138
g video {{VIDEO_GID }} - -
142139

143140
# Default group for normal users
144-
145-
From 9e2987a7b4d09d7b554141e9ef2c911cb3fda570 Mon Sep 17 00:00:00 2001
146-
From: Christian Hesse <[email protected]>
147-
Date: Mon, 27 Dec 2021 23:32:42 +0100
148-
Subject: [PATCH] generate tmpfiles.d/legacy.conf
149-
150-
---
151-
tmpfiles.d/legacy.conf.in | 3 ---
152-
tmpfiles.d/meson.build | 2 +-
153-
2 files changed, 1 insertion(+), 4 deletions(-)
154-
155-
diff --git a/tmpfiles.d/legacy.conf.in b/tmpfiles.d/legacy.conf.in
156-
index 4f2c0d7c43..62e2ae0986 100644
157-
--- a/tmpfiles.d/legacy.conf.in
158-
+++ b/tmpfiles.d/legacy.conf.in
159-
@@ -12,9 +12,6 @@
160-
161-
d /run/lock 0755 root root -
162-
L /var/lock - - - - ../run/lock
163-
-{% if CREATE_LOG_DIRS %}
164-
-L /var/log/README - - - - ../..{{DOC_DIR}}/README.logs
165-
-{% endif %}
166-
167-
# /run/lock/subsys is used for serializing SysV service execution, and
168-
# hence without use on SysV-less systems.
169-
diff --git a/tmpfiles.d/meson.build b/tmpfiles.d/meson.build
170-
index ca1abbf3fe..25e2b53402 100644
171-
--- a/tmpfiles.d/meson.build
172-
+++ b/tmpfiles.d/meson.build
173-
@@ -29,7 +29,7 @@ foreach pair : files
174-
endforeach
175-
176-
in_files = [['etc.conf', ''],
177-
- ['legacy.conf', 'HAVE_SYSV_COMPAT'],
178-
+ ['legacy.conf', ''],
179-
['static-nodes-permissions.conf', ''],
180-
['systemd.conf', ''],
181-
['var.conf', ''],
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[Trigger]
2+
Type = Path
3+
Operation = Upgrade
4+
Target = usr/lib/systemd/system/*
5+
6+
[Action]
7+
Description = Restarting marked services...
8+
When = PostTransaction
9+
Exec = /usr/share/libalpm/scripts/systemd-hook restart-marked

systemd-selinux/PKGBUILD

Lines changed: 27 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,21 @@
66
# This PKGBUILD is maintained on https://github.com/archlinuxhardened/selinux.
77
# If you want to help keep it up to date, please open a Pull Request there.
88

9+
# ➡️ Pushing pre-releases to [core-testing] can cause havoc, especially
10+
# as all [core] packages are built there, and may be moved before.
11+
# Anyway, pre-release packages may be available in my personal testing
12+
# repository. Brave souls add it with:
13+
# [eworm-testing]
14+
# SigLevel = Required
15+
# Server = https://pkgbuild.com/~eworm/$repo/$arch/
16+
917
pkgbase=systemd-selinux
1018
pkgname=('systemd-selinux'
1119
'systemd-libs-selinux'
1220
'systemd-resolvconf-selinux'
1321
'systemd-sysvcompat-selinux'
1422
'systemd-ukify-selinux')
15-
_tag='256.7'
23+
_tag='257.1'
1624
# Upstream versioning is incompatible with pacman's version comparisons, one
1725
# way or another. So we replace dashes and tildes with the empty string to
1826
# make sure pacman's version comparing does the right thing for rc versions:
@@ -51,23 +59,25 @@ source=("git+https://github.com/systemd/systemd#tag=v${_tag}?signed"
5159
'30-systemd-daemon-reload-system.hook'
5260
'30-systemd-daemon-reload-user.hook'
5361
'30-systemd-hwdb.hook'
62+
'30-systemd-restart-marked.hook'
5463
'30-systemd-sysctl.hook'
5564
'30-systemd-tmpfiles.hook'
5665
'30-systemd-udev-reload.hook'
5766
'30-systemd-update.hook')
58-
sha512sums=('468f772b3dfa83483da75516499c50159206dc5f8e26d7a62fc08437c93a4e536c0b27ee7fa5ac11fb1bc27a9c0e41315261751e5cc7428629a30849aeb23386'
59-
'3ccf783c28f7a1c857120abac4002ca91ae1f92205dcd5a84aff515d57e706a3f9240d75a0a67cff5085716885e06e62597baa86897f298662ec36a940cf410e'
67+
sha512sums=('53b14cfadf301a44fdfcaa2fe4b9d2371c85581544093b88e5afcee4e45c5bd8668aaae9dd6663363c24f3b610f9b0d6eb61f00df71d588bce8f6264424203e4'
68+
'78065bde708118b7d6e4ed492e096c763e4679a1c54bd98750d5d609d8cc2f1373023f308880f14fc923ae7f9fea34824917ef884c0f996b1f43d08ef022c0fb'
6069
'61032d29241b74a0f28446f8cf1be0e8ec46d0847a61dadb2a4f096e8686d5f57fe5c72bcf386003f6520bc4b5856c32d63bf3efe7eb0bc0deefc9f68159e648'
6170
'c416e2121df83067376bcaacb58c05b01990f4614ad9de657d74b6da3efa441af251d13bf21e3f0f71ddcb4c9ea658b81da3d915667dc5c309c87ec32a1cb5a5'
6271
'5a1d78b5170da5abe3d18fdf9f2c3a4d78f15ba7d1ee9ec2708c4c9c2e28973469bc19386f70b3cf32ffafbe4fcc4303e5ebbd6d5187a1df3314ae0965b25e75'
6372
'b90c99d768dc2a4f020ba854edf45ccf1b86a09d2f66e475de21fe589ff7e32c33ef4aa0876d7f1864491488fd7edb2682fc0d68e83a6d4890a0778dc2d6fe19'
64-
'9835dbb46a3942e89774dd26f295af30ed9eb2cf7ba574e3016b0b4357536a102eb58d72b3add0ea7fd2a56d46b097f273dd02f68840b7a0211c9dbd2b0b7c29'
73+
'81baa1ae439b0f4d1f09371a82c02db06a97a4fc35545fc2654f7905b4422fc8cf085f70304919a4323f39e662df1e05aa8d977d1dde73507527abe3072c386b'
6574
'299dcc7094ce53474521356647bdd2fb069731c08d14a872a425412fcd72da840727a23664b12d95465bf313e8e8297da31259508d1c62cc2dcea596160e21c5'
6675
'0d6bc3d928cfafe4e4e0bc04dbb95c5d2b078573e4f9e0576e7f53a8fab08a7077202f575d74a3960248c4904b5f7f0661bf17dbe163c524ab51dd30e3cb80f7'
6776
'2b50b25e8680878f7974fa9d519df7e141ca11c4bfe84a92a5d01bb193f034b1726ea05b3c0030bad1fbda8dbb78bf1dc7b73859053581b55ba813c39b27d9dc'
6877
'a436d3f5126c6c0d6b58c6865e7bd38dbfbfb7babe017eeecb5e9d162c21902cbf4e0a68cf3ac2f99815106f9fa003b075bd2b4eb5d16333fa913df6e2f3e32a'
6978
'190112e38d5a5c0ca91b89cd58f95595262a551530a16546e1d84700fc9644aa2ca677953ffff655261e8a7bff6e6af4e431424df5f13c00bc90b77c421bc32d'
7079
'a1661ab946c6cd7d3c6251a2a9fd68afe231db58ce33c92c42594aedb5629be8f299ba08a34713327b373a3badd1554a150343d8d3e5dfb102999c281bd49154'
80+
'f6b154fdc612916d7788720cf703e34255b43ba2d19413de5f3f63f07508f4ce561ca138f987c2118c7128e1dfb01976b0ac7d5efee4d9ebaadd180e70fa013e'
7181
'9426829605bbb9e65002437e02ed54e35c20fdf94706770a3dc1049da634147906d6b98bf7f5e7516c84068396a12c6feaf72f92b51bdf19715e0f64620319de'
7282
'da7a97d5d3701c70dd5388b0440da39006ee4991ce174777931fea2aa8c90846a622b2b911f02ae4d5fffb92680d9a7e211c308f0f99c04896278e2ee0d9a4dc'
7383
'a50d202a9c2e91a4450b45c227b295e1840cc99a5e545715d69c8af789ea3dd95a03a30f050d52855cabdc9183d4688c1b534eaa755ebe93616f9d192a855ee3'
@@ -78,6 +88,7 @@ _meson_vcs_tag='false'
7888
_meson_mode='release'
7989
_meson_compile=()
8090
_meson_install=()
91+
_systemd_src_dir="${pkgbase/-selinux}"
8192

8293
if ((_systemd_UPSTREAM)); then
8394
_meson_version="${pkgver}"
@@ -91,14 +102,24 @@ if ((_systemd_UPSTREAM)); then
91102
fi
92103
fi
93104

105+
# Some heuristics to detect that we are building on OBS, with no network access. Skip
106+
# git verification, and use the OBS-provided tarball instead. The sources will be
107+
# unpacked by OBS in $package-$version/
108+
# SELinux package maintenance note: ignore this, as skipping any form of validation is dangerous
109+
#if [ -f /.build/build.dist ] && [ -d /usr/src/packages/SOURCES ] && [ -d /usr/src/packages/BUILD ] && [ -d /usr/src/packages/OTHER ]; then
110+
# source[0]="${pkgbase}-${pkgver}.tar.gz"
111+
# sha512sums[0]='SKIP'
112+
# _systemd_src_dir="${pkgbase}-${pkgver}"
113+
#fi
114+
94115
_backports=(
95116
)
96117

97118
_reverts=(
98119
)
99120

100121
prepare() {
101-
cd "${pkgbase/-selinux}"
122+
cd "${_systemd_src_dir}"
102123

103124
local _c _l
104125
for _c in "${_backports[@]}"; do
@@ -176,7 +197,7 @@ build() {
176197
-Dsbat-distro-url="https://aur.archlinux.org/packages/${pkgname}/"
177198
)
178199

179-
arch-meson "${pkgbase/-selinux}" build "${_meson_options[@]}" $MESON_EXTRA_CONFIGURE_OPTIONS
200+
arch-meson "${_systemd_src_dir}" build "${_meson_options[@]}" $MESON_EXTRA_CONFIGURE_OPTIONS
180201

181202
meson compile -C build "${_meson_compile[@]}"
182203
}

systemd-selinux/systemd-hook

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ case "$op" in
4141
;;
4242
daemon-reload-user)
4343
systemd_live
44-
/usr/bin/systemctl kill --kill-whom='main' --signal='SIGHUP' 'user@*.service'
44+
/usr/bin/systemctl reload 'user@*.service'
4545
;;
4646
hwdb)
4747
/usr/bin/systemd-hwdb --usr update
@@ -68,6 +68,12 @@ case "$op" in
6868
fi
6969
;;
7070

71+
# marked with 'systemctl set-property ... Markers=needs-restart'
72+
restart-marked)
73+
systemd_live
74+
/usr/bin/systemctl reload-or-restart --marked
75+
;;
76+
7177
# For use by other packages
7278
reload)
7379
systemd_live

systemd-selinux/systemd.install

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,16 @@ post_upgrade() {
3333
post_common "$@"
3434

3535
if sd_booted; then
36+
# reexec systemd system instance
3637
systemctl --system daemon-reexec
37-
systemctl kill --kill-whom='main' --signal='SIGRTMIN+25' 'user@*.service'
38+
39+
# reexec systemd user instances
40+
systemctl reload 'user@*.service'
41+
42+
# mark systemd services for later restart
43+
for UNIT in $(systemctl list-units --state=running --plain --quiet 'systemd-*.service' | cut -d' ' -f1 | grep -Ev '^systemd-(logind|networkd)\.service$'); do
44+
systemctl set-property --runtime "${UNIT}" Markers=needs-restart
45+
done
3846
fi
3947

4048
# show for feature release: 255 -> 256 -> 257 -> ...

0 commit comments

Comments
 (0)