From 28a69fc8cf190ebad4699b9656ff1cbc027f6269f041619a2cb013b3dac243ae Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Mon, 14 Mar 2022 21:10:30 +0000 Subject: [PATCH] Accepting request 961741 from home:gmbr3:Active - Add tmpfiles.d conf for /run/pam_mount OBS-URL: https://build.opensuse.org/request/show/961741 OBS-URL: https://build.opensuse.org/package/show/Linux-PAM/pam_mount?expand=0&rev=77 --- pam_mount.changes | 5 +++++ pam_mount.spec | 4 ++++ pam_mount.tmpfiles | 2 ++ 3 files changed, 11 insertions(+) create mode 100644 pam_mount.tmpfiles diff --git a/pam_mount.changes b/pam_mount.changes index 437950e..106f21a 100644 --- a/pam_mount.changes +++ b/pam_mount.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sat Mar 12 19:35:38 UTC 2022 - Callum Farmer + +- Add tmpfiles.d conf for /run/pam_mount + ------------------------------------------------------------------- Wed Jan 12 16:09:44 UTC 2022 - Josef Möllers diff --git a/pam_mount.spec b/pam_mount.spec index fd686b8..f174ed3 100644 --- a/pam_mount.spec +++ b/pam_mount.spec @@ -29,6 +29,7 @@ Source: http://downloads.sf.net/pam-mount/%name-%version.tar.xz Source9: http://downloads.sf.net/pam-mount/%name-%version.tar.asc Source1: convert_pam_mount_conf.pl Source2: convert_keyhash.pl +Source3: pam_mount.tmpfiles Source5: baselibs.conf Source6: %name.keyring Patch1: pam_mount-0.47-enable-logout-kill.dif @@ -122,9 +123,11 @@ ln -s /usr/sbin/umount.crypt "$b/sbin" ln -s /usr/sbin/mount.crypt_LUKS "$b/sbin" ln -s /usr/sbin/umount.crypt_LUKS "$b/sbin" %endif +install -Dm0644 %SOURCE3 "$b/%_tmpfilesdir/%name.conf" %fdupes %buildroot/%_prefix %post +%tmpfiles_create %_tmpfilesdir/%name.conf if [ -e etc/security/pam_mount.conf ] then cp etc/security/pam_mount.conf.xml %_docdir/%name/examples/ @@ -148,6 +151,7 @@ fi %files %_docdir/%name %{_pam_moduledir}/pam_mount*.so +%_tmpfilesdir/%name.conf %_sbindir/mount.* %_sbindir/umount.* %_sbindir/pmvarrun diff --git a/pam_mount.tmpfiles b/pam_mount.tmpfiles new file mode 100644 index 0000000..43277ea --- /dev/null +++ b/pam_mount.tmpfiles @@ -0,0 +1,2 @@ +#Type Path Mode User Group Age Argument +d /run/pam_mount 0755 root root - -