mirror of
https://github.com/Kicksecure/security-misc.git
synced 2024-12-23 01:03:35 +07:00
refactoring environment variables loading mechanism
This commit is contained in:
parent
358e4226f1
commit
fa820e8978
2
debian/security-misc.links
vendored
Normal file
2
debian/security-misc.links
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
/etc/profile.d/security-misc.sh /etc/zprofile.d/security-misc.sh
|
||||
/etc/profile.d/security-misc.sh /etc/X11/Xsession.d/security-misc.sh
|
3
debian/security-misc.maintscript
vendored
3
debian/security-misc.maintscript
vendored
@ -40,3 +40,6 @@ rm_conffile /etc/security/limits.d/disable-coredumps.conf
|
||||
|
||||
## moved to separate package ram-wipe
|
||||
rm_conffile /etc/default/grub.d/40_cold_boot_attack_defense.cfg
|
||||
|
||||
rm_conffile /etc/X11/Xsession.d/50panic_on_oops
|
||||
rm_conffile /etc/X11/Xsession.d/50security-misc
|
||||
|
@ -1,9 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
## Copyright (C) 2012 - 2023 ENCRYPTED SUPPORT LP <adrelanos@whonix.org>
|
||||
## See the file COPYING for copying conditions.
|
||||
|
||||
if [ -z "$XDG_CONFIG_DIRS" ]; then
|
||||
XDG_CONFIG_DIRS=/etc/xdg
|
||||
fi
|
||||
export XDG_CONFIG_DIRS=/usr/share/security-misc/:$XDG_CONFIG_DIRS
|
@ -3,6 +3,11 @@
|
||||
## Copyright (C) 2019 - 2023 ENCRYPTED SUPPORT LP <adrelanos@whonix.org>
|
||||
## See the file COPYING for copying conditions.
|
||||
|
||||
if [ -z "$XDG_CONFIG_DIRS" ]; then
|
||||
XDG_CONFIG_DIRS=/etc/xdg
|
||||
fi
|
||||
export XDG_CONFIG_DIRS=/usr/share/security-misc/:$XDG_CONFIG_DIRS
|
||||
|
||||
if [ -x /usr/libexec/security-misc/panic-on-oops ]; then
|
||||
sudo --non-interactive /usr/libexec/security-misc/panic-on-oops
|
||||
fi
|
Loading…
Reference in New Issue
Block a user