forked from pool/aaa_base
Accepting request 53326 from home:lnussel:fscaps
OBS-URL: https://build.opensuse.org/request/show/53326 OBS-URL: https://build.opensuse.org/package/show/Base:System/aaa_base?expand=0&rev=169
This commit is contained in:
parent
5f5e51b089
commit
b0010b211b
@ -23,7 +23,7 @@ addFilter("hidden-file-or-dir.*/root/.exrc")
|
|||||||
# perhaps should be configurable later...
|
# perhaps should be configurable later...
|
||||||
addFilter("non-etc-or-var-file-marked-as-conffile.*/sbin/quick_halt")
|
addFilter("non-etc-or-var-file-marked-as-conffile.*/sbin/quick_halt")
|
||||||
# confirmed - but standard
|
# confirmed - but standard
|
||||||
addFilter("non-root-group-log-file.*/var/log/lastlog.*tty")
|
addFilter("non-root-group-log-file /var/log/wtmp utmp")
|
||||||
# the following init script don't need to be reloaded -
|
# the following init script don't need to be reloaded -
|
||||||
# even after an update
|
# even after an update
|
||||||
addFilter("no-reload-entry.*/etc/init.d/README")
|
addFilter("no-reload-entry.*/etc/init.d/README")
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Nov 18 10:26:44 UTC 2010 - lnussel@suse.de
|
||||||
|
|
||||||
|
- own /var/log/wtmp, /var/run/utmp, /var/log/faillog and /var/log/btmp
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Nov 17 15:55:09 CET 2010 - ro@suse.de
|
Wed Nov 17 15:55:09 CET 2010 - ro@suse.de
|
||||||
|
|
||||||
|
@ -148,31 +148,19 @@ touch /etc/mtab
|
|||||||
if test ! -d /var/log ; then
|
if test ! -d /var/log ; then
|
||||||
mkdir -p /var/log
|
mkdir -p /var/log
|
||||||
fi
|
fi
|
||||||
if test ! -e /var/log/faillog ; then
|
|
||||||
touch /var/log/faillog
|
while read file owner mode; do
|
||||||
chmod 600 /var/log/faillog
|
test -e "$file" || touch "$file"
|
||||||
chown root:root /var/log/faillog
|
chmod "$mode" "$file"
|
||||||
fi
|
chown "$owner" "$file"
|
||||||
if test ! -e /root/.bash_history ; then
|
done <<EOT
|
||||||
touch /root/.bash_history
|
/root/.bash_history root:root 600
|
||||||
chmod 600 /root/.bash_history
|
/var/log/lastlog root:root 644
|
||||||
fi
|
/var/log/faillog root:root 600
|
||||||
if test ! -e /var/log/lastlog ; then
|
/var/log/wtmp root:utmp 664
|
||||||
touch /var/log/lastlog
|
/var/log/btmp root:root 600
|
||||||
chmod 644 /var/log/lastlog
|
/var/run/utmp root:utmp 664
|
||||||
chown root:utmp /var/log/lastlog
|
EOT
|
||||||
fi
|
|
||||||
if test ! -e /var/log/wtmp ; then
|
|
||||||
touch /var/log/wtmp
|
|
||||||
chmod 664 /var/log/wtmp
|
|
||||||
chown root:utmp /var/log/wtmp
|
|
||||||
fi
|
|
||||||
# The group ownership of the following files has changed for openSUSE 11.4
|
|
||||||
# update it:
|
|
||||||
chgrp utmp /var/log/wtmp /var/log/lastlog
|
|
||||||
if test -e /var/run/utmp ; then
|
|
||||||
chgrp utmp /var/run/utmp
|
|
||||||
fi
|
|
||||||
|
|
||||||
if test -e /usr/sbin/usrdel.local -a ! -e /usr/sbin/userdel.local ; then
|
if test -e /usr/sbin/usrdel.local -a ! -e /usr/sbin/userdel.local ; then
|
||||||
cp /usr/sbin/usrdel.local /usr/sbin/userdel.local
|
cp /usr/sbin/usrdel.local /usr/sbin/userdel.local
|
||||||
|
@ -155,7 +155,13 @@ rm -f /root/.gnupg/secring.gpg.aaa_save
|
|||||||
%ghost /var/adm/fillup-templates/group.aaa_base
|
%ghost /var/adm/fillup-templates/group.aaa_base
|
||||||
%ghost /var/adm/fillup-templates/gshadow.aaa_base
|
%ghost /var/adm/fillup-templates/gshadow.aaa_base
|
||||||
%ghost /var/adm/fillup-templates/shadow.aaa_base
|
%ghost /var/adm/fillup-templates/shadow.aaa_base
|
||||||
%ghost %attr(0644,root,utmp) %verify(not md5 size mtime) /var/log/lastlog
|
# don't forget to also change aaa_base.post, boot.cleanup
|
||||||
|
# and /etc/permissions!
|
||||||
|
%ghost %attr(0644,root,root) %verify(not md5 size mtime) /var/log/lastlog
|
||||||
|
%ghost %attr(0600,root,root) %verify(not md5 size mtime) /var/log/faillog
|
||||||
|
%ghost %attr(0664,root,utmp) %verify(not md5 size mtime) /var/log/wtmp
|
||||||
|
%ghost %attr(0600,root,root) %verify(not md5 size mtime) /var/log/btmp
|
||||||
|
%ghost %attr(0664,root,utmp) %verify(not md5 size mtime) /var/run/utmp
|
||||||
/etc/cron.daily/suse.de-clean-tmp
|
/etc/cron.daily/suse.de-clean-tmp
|
||||||
/etc/hushlogins
|
/etc/hushlogins
|
||||||
/etc/init.d/boot.cleanup
|
/etc/init.d/boot.cleanup
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:208c58153b03b693632eabf10ceb5b238d37b9e7a1db5523ace198b22c003f1c
|
oid sha256:0b98cd1ab6781638425c7371fbe046c6abfebb2e56a19419bf8ba37fb1baaeba
|
||||||
size 81479
|
size 81520
|
||||||
|
Loading…
Reference in New Issue
Block a user