mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-11-27 10:40:23 -05:00
Fix XDG handling, replace Xfce with LXQt where appropriate, make USBGuard configuration work
This commit is contained in:
parent
37c0bc0c5d
commit
df8a323d03
4 changed files with 11 additions and 2 deletions
4
debian/security-misc.postinst
vendored
4
debian/security-misc.postinst
vendored
|
|
@ -89,6 +89,10 @@ case "$1" in
|
|||
|
||||
## migrate permission_hardener state to v2 if applicable
|
||||
migrate_permission_hardener_state
|
||||
|
||||
## Fix usbguard config permissions, this seemingly can't be done
|
||||
## during the unpack stage
|
||||
chmod 0600 /etc/usbguard/rules.d/30_security-misc.conf
|
||||
;;
|
||||
|
||||
abort-upgrade|abort-remove|abort-deconfigure)
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
## See the file COPYING for copying conditions.
|
||||
|
||||
if [ -z "$XDG_CONFIG_DIRS" ]; then
|
||||
XDG_CONFIG_DIRS="/etc/xdg"
|
||||
XDG_CONFIG_DIRS="/etc:/etc/xdg:/usr/share"
|
||||
fi
|
||||
if ! printf '%s\n' "$XDG_CONFIG_DIRS" | grep -- "/usr/share/security-misc/" >/dev/null 2>/dev/null ; then
|
||||
export XDG_CONFIG_DIRS="/usr/share/security-misc/:$XDG_CONFIG_DIRS"
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@
|
|||
## relies solely on the calling user's UID and GID, though this could require
|
||||
## further review.)
|
||||
##
|
||||
## Without this, Xfce fails to start with a dbus-launch error.
|
||||
## Without this, LXQt fails to start with a dbus-launch error.
|
||||
##
|
||||
## TODO: audit pam-tmpdir-helper
|
||||
pam-tmpdir-helper matchwhitelist
|
||||
|
|
|
|||
|
|
@ -0,0 +1,5 @@
|
|||
## Copyright (C) 2025 - 2025 ENCRYPTED SUPPORT LLC <adrelanos@whonix.org>
|
||||
## See the file COPYING for copying conditions.
|
||||
|
||||
[Unit]
|
||||
ConditionPathExists=/sys/bus/usb
|
||||
Loading…
Add table
Add a link
Reference in a new issue