add tmfiles.d config for create /run structure

This commit is contained in:
akdengi 2013-12-09 21:14:15 +04:00
parent bca163d299
commit 2738d731ab
2 changed files with 9 additions and 1 deletions

View file

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

3
pamtmp.conf Normal file
View file

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