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 - -