Skip to content

Commit 87c47f5

Browse files
committed
fix: add tmpfiles for faillock dirs
Ref VMS-231 Signed-off-by: Luca Di Maio <[email protected]>
1 parent 632ff00 commit 87c47f5

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

linux-pam.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package:
22
name: linux-pam
33
version: "1.7.1"
4-
epoch: 2
4+
epoch: 3
55
description: Linux PAM (Pluggable Authentication Modules for Linux)
66
copyright:
77
- license: BSD-3-Clause
@@ -58,6 +58,10 @@ pipeline:
5858
# Don't ship /var/run
5959
rm -r ${{targets.destdir}}/var/run
6060
61+
# Copy tmpfile template
62+
mkdir -p ${{targets.destdir}}/usr/lib/tmpfiles.d/
63+
mv pam-faillock.conf ${{targets.destdir}}/usr/lib/tmpfiles.d/
64+
6165
subpackages:
6266
- name: linux-pam-dev
6367
pipeline:

linux-pam/pam-faillock.conf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Create faillock directory with correct SELinux context
2+
d /var/log/faillock 0700 root root - -
3+
Z /var/log/faillock - - - - -

0 commit comments

Comments
 (0)