mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-03-13 04:06:33 -04:00
De-corrupt the new_mode permission-hardener statoverride database too
This commit is contained in:
parent
396372c129
commit
a0f81958df
2
debian/security-misc.postinst
vendored
2
debian/security-misc.postinst
vendored
@ -49,7 +49,9 @@ migrate_permission_hardener_state() {
|
||||
mkdir --parents '/var/lib/security-misc/do_once'
|
||||
|
||||
mkdir --parents '/var/lib/permission-hardener-v2/existing_mode'
|
||||
mkdir --parents '/var/lib/permission-hardener-v2/new_mode'
|
||||
cp --verbose '/usr/share/security-misc/permission-hardener-existing-mode-legacy-hardcoded' '/var/lib/permission-hardener-v2/existing_mode/statoverride'
|
||||
cp --verbose '/usr/share/security-misc/permission-hardener-new-mode-legacy-hardcoded' '/var/lib/permission-hardener-v2/new_mode/statoverride'
|
||||
|
||||
touch "/var/lib/security-misc/do_once/${FUNCNAME[0]}_version_1"
|
||||
}
|
||||
|
@ -0,0 +1,23 @@
|
||||
root root 700 /etc/cron.monthly
|
||||
root root 700 /etc/sudoers.d
|
||||
root shadow 744 /usr/bin/expiry
|
||||
root root 755 /usr/bin/umount
|
||||
root root 744 /usr/bin/gpasswd
|
||||
root root 700 /usr/lib/modules
|
||||
root root 744 /usr/bin/newgrp
|
||||
root root 700 /etc/cron.weekly
|
||||
root root 744 /usr/bin/su
|
||||
root root 700 /etc/cron.daily
|
||||
root root 644 /etc/motd
|
||||
root _ssh 744 /usr/bin/ssh-agent
|
||||
root root 700 /boot
|
||||
root shadow 744 /usr/bin/chage
|
||||
root root 744 /usr/lib/openssh/ssh-keysign
|
||||
root root 744 /usr/bin/chsh
|
||||
root root 755 /usr/bin/passwd
|
||||
root root 744 /usr/bin/chfn
|
||||
root root 600 /etc/permission-hardener.d
|
||||
root root 700 /usr/src
|
||||
root root 755 /usr/bin/mount
|
||||
root root 644 /etc/issue
|
||||
root root 700 /etc/cron.d
|
Loading…
x
Reference in New Issue
Block a user