From 2738d731aba0445a18acff1d1c412d5c89fbd7d2 Mon Sep 17 00:00:00 2001 From: akdengi Date: Mon, 9 Dec 2013 21:14:15 +0400 Subject: [PATCH] add tmfiles.d config for create /run structure --- pam.spec | 7 ++++++- pamtmp.conf | 3 +++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 pamtmp.conf diff --git a/pam.spec b/pam.spec index 989c4df..3b16f0a 100644 --- a/pam.spec +++ b/pam.spec @@ -19,7 +19,7 @@ Epoch: 1 Summary: A security tool which provides authentication for applications Name: pam Version: 1.1.4 -Release: 16 +Release: 17 # The library is BSD licensed with option to relicense as GPLv2+ - this option is redundant # as the BSD license allows that anyway. pam_timestamp and pam_console modules are GPLv2+, License: BSD and GPLv2+ @@ -38,6 +38,7 @@ Source9: system-auth.5 Source10: config-util.5 Source11: postlogin.pamd Source12: postlogin.5 +Source13: pamtmp.conf #add missing documentation Source501: pam_tty_audit.8 Source502: README @@ -239,6 +240,10 @@ rm -f %{buildroot}/%{_lib}/*.la #Set suid bit for /sbin/unix_chkpwd (bug #3169) chmod u+s %{buildroot}/sbin/unix_chkpwd +# Install the file for autocreation of /var/run subdirectories on boot +mkdir -p %{buildroot}%{_prefix}/lib/tmfiles.d/ +install -m644 -D %{SOURCE13} %{buildroot}%{_prefix}/lib/tmpfiles.d/pam.conf + %find_lang Linux-PAM %check diff --git a/pamtmp.conf b/pamtmp.conf new file mode 100644 index 0000000..61f4c3e --- /dev/null +++ b/pamtmp.conf @@ -0,0 +1,3 @@ +d /var/run/console 0755 root root - +d /var/run/faillock 0755 root root - +d /var/run/sepermit 0755 root root -