spec: Take ownership of /var/log/lastlog
Based on Fedora commits: *f97cf5817a
*238e8e0e64
Resolves: #2044984
This commit is contained in:
parent
d4f3415740
commit
5b2321d1b0
@ -529,6 +529,8 @@ mkdir -p %{buildroot}%{system_unit_dir}/dbus.target.wants
|
|||||||
mkdir -p %{buildroot}%{system_unit_dir}/syslog.target.wants
|
mkdir -p %{buildroot}%{system_unit_dir}/syslog.target.wants
|
||||||
mkdir -p %{buildroot}/run
|
mkdir -p %{buildroot}/run
|
||||||
mkdir -p %{buildroot}%{_localstatedir}/log
|
mkdir -p %{buildroot}%{_localstatedir}/log
|
||||||
|
touch %{buildroot}%{_localstatedir}/log/lastlog
|
||||||
|
chmod 0664 %{buildroot}%{_localstatedir}/log/lastlog
|
||||||
touch %{buildroot}/run/utmp
|
touch %{buildroot}/run/utmp
|
||||||
touch %{buildroot}%{_localstatedir}/log/{w,b}tmp
|
touch %{buildroot}%{_localstatedir}/log/{w,b}tmp
|
||||||
|
|
||||||
@ -625,6 +627,7 @@ python3 %{SOURCE2} %buildroot <<EOF
|
|||||||
%ghost %attr(0664,root,utmp) /run/utmp
|
%ghost %attr(0664,root,utmp) /run/utmp
|
||||||
%ghost %attr(0664,root,utmp) /var/log/wtmp
|
%ghost %attr(0664,root,utmp) /var/log/wtmp
|
||||||
%ghost %attr(0600,root,utmp) /var/log/btmp
|
%ghost %attr(0600,root,utmp) /var/log/btmp
|
||||||
|
%ghost %attr(0664,root,utmp) %verify(not md5 size mtime) /var/log/lastlog
|
||||||
%ghost %config(noreplace) /etc/hostname
|
%ghost %config(noreplace) /etc/hostname
|
||||||
%ghost %config(noreplace) /etc/localtime
|
%ghost %config(noreplace) /etc/localtime
|
||||||
%ghost %config(noreplace) /etc/locale.conf
|
%ghost %config(noreplace) /etc/locale.conf
|
||||||
|
Loading…
Reference in New Issue
Block a user