From 8dfdec1d3b0fde7b2836b38e5aefab1b6b6df9f2 Mon Sep 17 00:00:00 2001
From: onions-knight <38859709+onions-knight@users.noreply.github.com>
Date: Tue, 17 Mar 2020 16:38:53 +0000
Subject: [PATCH 0001/1926] Update thunar.xml
Adding Delete option for thunar on right mouse click (removed in Debian 10). See https://forums.whonix.org/t/whonix-host-calamares-branding-suggestion/7772/26
---
etc/skel/.config/xfce4/xfconf/xfce-perchannel-xml/thunar.xml | 1 +
1 file changed, 1 insertion(+)
diff --git a/etc/skel/.config/xfce4/xfconf/xfce-perchannel-xml/thunar.xml b/etc/skel/.config/xfce4/xfconf/xfce-perchannel-xml/thunar.xml
index f6909a36..06b5b642 100644
--- a/etc/skel/.config/xfce4/xfconf/xfce-perchannel-xml/thunar.xml
+++ b/etc/skel/.config/xfce4/xfconf/xfce-perchannel-xml/thunar.xml
@@ -13,4 +13,5 @@
+
From bc22fc9fdba834d0a2d8fdc75b86934e56b317c9 Mon Sep 17 00:00:00 2001
From: Patrick Schleizer
Date: Mon, 30 Mar 2020 17:12:43 -0400
Subject: [PATCH 0002/1926] skip check if any non-root user is a member of
group sudo and console if file /var/lib/security-misc/skip_install_check
exists
---
debian/security-misc.preinst | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/debian/security-misc.preinst b/debian/security-misc.preinst
index 428bf82a..edf6ee9a 100644
--- a/debian/security-misc.preinst
+++ b/debian/security-misc.preinst
@@ -49,6 +49,9 @@ user_groups_modifications() {
}
sudo_users_check () {
+ if test -f /var/lib/security-misc/skip_install_check ; then
+ return 0
+ fi
if command -v "qubesdb-read" &>/dev/null; then
## Qubes users can use dom0 to get a root terminal emulator.
## For example:
@@ -96,6 +99,9 @@ sudo_users_check () {
}
console_users_check() {
+ if test -f /var/lib/security-misc/skip_install_check ; then
+ return 0
+ fi
if command -v "qubesdb-read" &>/dev/null; then
## Qubes users can use dom0 to get a root terminal emulator.
## For example:
From f663b5eff8a6f2fa406039ced4441c5a4a9c1477 Mon Sep 17 00:00:00 2001
From: Patrick Schleizer
Date: Mon, 30 Mar 2020 17:15:02 -0400
Subject: [PATCH 0003/1926] skip check if any non-root user is a member of
group sudo and console if environment variable `SECURITY_MISC_INSTALL` is set
to `force`
---
debian/security-misc.preinst | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/debian/security-misc.preinst b/debian/security-misc.preinst
index edf6ee9a..e16996e8 100644
--- a/debian/security-misc.preinst
+++ b/debian/security-misc.preinst
@@ -49,6 +49,9 @@ user_groups_modifications() {
}
sudo_users_check () {
+ if [ "$SECURITY_MISC_INSTALL" = "force" ]; then
+ return 0
+ fi
if test -f /var/lib/security-misc/skip_install_check ; then
return 0
fi
@@ -99,6 +102,9 @@ sudo_users_check () {
}
console_users_check() {
+ if [ "$SECURITY_MISC_INSTALL" = "force" ]; then
+ return 0
+ fi
if test -f /var/lib/security-misc/skip_install_check ; then
return 0
fi
From 7ee5fc1b760dff0f86d8cf07a77cbd42d40f7a53 Mon Sep 17 00:00:00 2001
From: Patrick Schleizer
Date: Mon, 30 Mar 2020 17:16:46 -0400
Subject: [PATCH 0004/1926] bumped changelog version
---
changelog.upstream | 20 ++++++++++++++++++++
debian/changelog | 6 ++++++
2 files changed, 26 insertions(+)
diff --git a/changelog.upstream b/changelog.upstream
index b36d0e00..56fdd78c 100644
--- a/changelog.upstream
+++ b/changelog.upstream
@@ -1,3 +1,23 @@
+commit f663b5eff8a6f2fa406039ced4441c5a4a9c1477
+Author: Patrick Schleizer
+Date: Mon Mar 30 17:15:02 2020 -0400
+
+ skip check if any non-root user is a member of group sudo and console if
+ environment variable `SECURITY_MISC_INSTALL` is set to `force`
+
+commit bc22fc9fdba834d0a2d8fdc75b86934e56b317c9
+Author: Patrick Schleizer
+Date: Mon Mar 30 17:12:43 2020 -0400
+
+ skip check if any non-root user is a member of group sudo and console if file
+ /var/lib/security-misc/skip_install_check exists
+
+commit d7a69628b1def631b04219da7aee764eebea37df
+Author: Patrick Schleizer
+Date: Sat Mar 21 14:56:48 2020 -0400
+
+ bumped changelog version
+
commit 5f0dd8270ba6311018e654cca3b8b86818af5a82
Author: Patrick Schleizer
Date: Sat Mar 21 14:14:35 2020 -0400
diff --git a/debian/changelog b/debian/changelog
index 773fb731..9fea0fb3 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+security-misc (3:17.1-1) unstable; urgency=medium
+
+ * New upstream version (local package).
+
+ -- Patrick Schleizer Mon, 30 Mar 2020 21:16:46 +0000
+
security-misc (3:17.0-1) unstable; urgency=medium
* New upstream version (local package).
From c22adbd92fcab45fb3b1d3e98528c4790bb20a6a Mon Sep 17 00:00:00 2001
From: Patrick Schleizer
Date: Mon, 30 Mar 2020 18:39:23 -0400
Subject: [PATCH 0005/1926] notify if security-misc installation is forced
---
debian/security-misc.preinst | 86 +++++++++++++++++++++++++-----------
1 file changed, 60 insertions(+), 26 deletions(-)
diff --git a/debian/security-misc.preinst b/debian/security-misc.preinst
index e16996e8..84bb5064 100644
--- a/debian/security-misc.preinst
+++ b/debian/security-misc.preinst
@@ -48,13 +48,14 @@ user_groups_modifications() {
addgroup root console
}
+output_skip_checks() {
+ echo "security-misc '$0' INFO: Allow installation of security-misc anyway." >&2
+ echo "security-misc '$0' INFO: (technical reason: $@)" >&2
+ echo "security-misc '$0' INFO: If this is a chroot this is probably OK." >&2
+ echo "security-misc '$0' INFO: Otherwise you might not be able to login." >&2
+}
+
sudo_users_check () {
- if [ "$SECURITY_MISC_INSTALL" = "force" ]; then
- return 0
- fi
- if test -f /var/lib/security-misc/skip_install_check ; then
- return 0
- fi
if command -v "qubesdb-read" &>/dev/null; then
## Qubes users can use dom0 to get a root terminal emulator.
## For example:
@@ -86,26 +87,47 @@ sudo_users_check () {
IFS="$OLD_IFS"
export IFS
+ if [ "$are_there_any_sudo_users" = "yes" ]; then
+ return 0
+ fi
+
+ if [ "$SECURITY_MISC_INSTALL" = "force" ]; then
+ output_skip_checks "Environment variable SECURITY_MISC_INSTALL is set to 'force'."
+ return 0
+ fi
+ if test -f "/var/lib/security-misc/skip_install_check" ; then
+ output_skip_checks "File '/var/lib/security-misc/skip_install_check' exists."
+ return 0
+ fi
+
## Prevent users from locking themselves out.
## https://forums.whonix.org/t/is-security-misc-suitable-for-hardening-bridges-and-relays/8299/4
- if [ ! "$are_there_any_sudo_users" = "yes" ]; then
- echo "$0: ERROR: No user is a member of group 'sudo'. Installation aborted." >&2
- echo "$0: ERROR: You probably want to run:" >&2
- echo "" >&2
- echo "sudo adduser user sudo" >&2
- echo "sudo adduser user console" >&2
- echo "" >&2
- echo "$0: ERROR: See also installation instructions:" >&2
- echo "https://www.whonix.org/wiki/security-misc#install" >&2
- exit 200
+ echo "$0: ERROR: No user is a member of group 'sudo'. Installation aborted." >&2
+ echo "$0: ERROR: You probably want to run:" >&2
+ echo "" >&2
+ echo "sudo adduser user sudo" >&2
+ echo "sudo adduser user console" >&2
+ echo "" >&2
+ echo "$0: ERROR: See also installation instructions:" >&2
+ echo "https://www.whonix.org/wiki/security-misc#install" >&2
+
+ if [ "$SECURITY_MISC_INSTALL" = "force" ]; then
+ output_skip_checks "Environment variable SECURITY_MISC_INSTALL is set to 'force'."
+ return 0
+ fi
+ if test -f "/var/lib/security-misc/skip_install_check" ; then
+ output_skip_checks "File '/var/lib/security-misc/skip_install_check' exists."
+ return 0
fi
+
+ exit 200
}
console_users_check() {
if [ "$SECURITY_MISC_INSTALL" = "force" ]; then
return 0
fi
- if test -f /var/lib/security-misc/skip_install_check ; then
+ if test -f "/var/lib/security-misc/skip_install_check" ; then
return 0
fi
if command -v "qubesdb-read" &>/dev/null; then
@@ -142,16 +164,28 @@ console_users_check() {
## Prevent users from locking themselves out.
## https://forums.whonix.org/t/is-security-misc-suitable-for-hardening-bridges-and-relays/8299/4
- if [ ! "$are_there_any_console_users" = "yes" ]; then
- echo "$0: ERROR: No user is a member of group 'console'. Installation aborted." >&2
- echo "$0: ERROR: You probably want to run:" >&2
- echo "" >&2
- echo "sudo adduser user console" >&2
- echo "" >&2
- echo "$0: ERROR: See also installation instructions:" >&2
- echo "https://www.whonix.org/wiki/security-misc#install" >&2
- exit 201
+ if [ "$are_there_any_console_users" = "yes" ]; then
+ return 0
fi
+
+ echo "$0: ERROR: No user is a member of group 'console'. Installation aborted." >&2
+ echo "$0: ERROR: You probably want to run:" >&2
+ echo "" >&2
+ echo "sudo adduser user console" >&2
+ echo "" >&2
+ echo "$0: ERROR: See also installation instructions:" >&2
+ echo "https://www.whonix.org/wiki/security-misc#install" >&2
+
+ if [ "$SECURITY_MISC_INSTALL" = "force" ]; then
+ output_skip_checks "Environment variable SECURITY_MISC_INSTALL is set to 'force'."
+ return 0
+ fi
+ if test -f "/var/lib/security-misc/skip_install_check" ; then
+ output_skip_checks "File '/var/lib/security-misc/skip_install_check' exists."
+ return 0
+ fi
+
+ exit 201
}
legacy() {
From a369a0a94dca7fff68234e4f75d74a4e9d63df5b Mon Sep 17 00:00:00 2001
From: Patrick Schleizer
Date: Mon, 30 Mar 2020 18:42:02 -0400
Subject: [PATCH 0006/1926] bumped changelog version
---
changelog.upstream | 12 ++++++++++++
debian/changelog | 6 ++++++
2 files changed, 18 insertions(+)
diff --git a/changelog.upstream b/changelog.upstream
index 56fdd78c..3eb779a6 100644
--- a/changelog.upstream
+++ b/changelog.upstream
@@ -1,3 +1,15 @@
+commit c22adbd92fcab45fb3b1d3e98528c4790bb20a6a
+Author: Patrick Schleizer
+Date: Mon Mar 30 18:39:23 2020 -0400
+
+ notify if security-misc installation is forced
+
+commit 7ee5fc1b760dff0f86d8cf07a77cbd42d40f7a53
+Author: Patrick Schleizer
+Date: Mon Mar 30 17:16:46 2020 -0400
+
+ bumped changelog version
+
commit f663b5eff8a6f2fa406039ced4441c5a4a9c1477
Author: Patrick Schleizer
Date: Mon Mar 30 17:15:02 2020 -0400
diff --git a/debian/changelog b/debian/changelog
index 9fea0fb3..ae6d88a7 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+security-misc (3:17.2-1) unstable; urgency=medium
+
+ * New upstream version (local package).
+
+ -- Patrick Schleizer Mon, 30 Mar 2020 22:42:02 +0000
+
security-misc (3:17.1-1) unstable; urgency=medium
* New upstream version (local package).
From 814f613a2fac12b892dfb6dcf53ee628e340c7b2 Mon Sep 17 00:00:00 2001
From: Patrick Schleizer
Date: Tue, 31 Mar 2020 07:08:25 -0400
Subject: [PATCH 0007/1926] When using systemd-nspawn (chroot) then `login`
requires console 'console' to be permitted.
---
etc/security/access-security-misc.conf | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/etc/security/access-security-misc.conf b/etc/security/access-security-misc.conf
index a081d336..a03a99f1 100644
--- a/etc/security/access-security-misc.conf
+++ b/etc/security/access-security-misc.conf
@@ -18,7 +18,8 @@
## Allow members of group 'console' to use tty1 to tty7 and pts/0 to pts/9 and hvc0 to hvc9.
## Qubes has 'pts/0' when for example running "sudo" from a terminal emulator.
## Qubes uses 'hvc0' when using in dom0 "sudo xl console vm-name".
-+:console:tty1 tty2 tty3 tty4 tty5 tty6 tty7 pts/0 pts/1 pts/2 pts/3 pts/4 pts/5 pts/6 pts/7 pts/8 pts/9 hvc0 hvc1 hvc2 hvc3 hvc4 hvc5 hvc6 hvc7 hvc8 hvc9
+## When using systemd-nspawn (chroot) then `login` requires console 'console' to be permitted.
++:console:console tty1 tty2 tty3 tty4 tty5 tty6 tty7 pts/0 pts/1 pts/2 pts/3 pts/4 pts/5 pts/6 pts/7 pts/8 pts/9 hvc0 hvc1 hvc2 hvc3 hvc4 hvc5 hvc6 hvc7 hvc8 hvc9
## Everyone else except members of group 'console-unrestricted'
## are restricted from everything else.
From 354af7085be7e266913c3ae79701cd1abc729d06 Mon Sep 17 00:00:00 2001
From: Patrick Schleizer
Date: Tue, 31 Mar 2020 07:41:45 -0400
Subject: [PATCH 0008/1926] bumped changelog version
---
changelog.upstream | 12 ++++++++++++
debian/changelog | 6 ++++++
2 files changed, 18 insertions(+)
diff --git a/changelog.upstream b/changelog.upstream
index 3eb779a6..7498eea0 100644
--- a/changelog.upstream
+++ b/changelog.upstream
@@ -1,3 +1,15 @@
+commit 814f613a2fac12b892dfb6dcf53ee628e340c7b2
+Author: Patrick Schleizer
+Date: Tue Mar 31 07:08:25 2020 -0400
+
+ When using systemd-nspawn (chroot) then `login` requires console 'console' to be permitted.
+
+commit a369a0a94dca7fff68234e4f75d74a4e9d63df5b
+Author: Patrick Schleizer
+Date: Mon Mar 30 18:42:02 2020 -0400
+
+ bumped changelog version
+
commit c22adbd92fcab45fb3b1d3e98528c4790bb20a6a
Author: Patrick Schleizer
Date: Mon Mar 30 18:39:23 2020 -0400
diff --git a/debian/changelog b/debian/changelog
index ae6d88a7..a1378bb5 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+security-misc (3:17.3-1) unstable; urgency=medium
+
+ * New upstream version (local package).
+
+ -- Patrick Schleizer Tue, 31 Mar 2020 11:41:45 +0000
+
security-misc (3:17.2-1) unstable; urgency=medium
* New upstream version (local package).
From ad022fc0b703f28f24665d28b072f1a993978370 Mon Sep 17 00:00:00 2001
From: Patrick Schleizer
Date: Wed, 1 Apr 2020 08:21:06 -0400
Subject: [PATCH 0009/1926] fix
---
debian/security-misc.preinst | 9 ---------
1 file changed, 9 deletions(-)
diff --git a/debian/security-misc.preinst b/debian/security-misc.preinst
index 84bb5064..983c1fd8 100644
--- a/debian/security-misc.preinst
+++ b/debian/security-misc.preinst
@@ -91,15 +91,6 @@ sudo_users_check () {
return 0
fi
- if [ "$SECURITY_MISC_INSTALL" = "force" ]; then
- output_skip_checks "Environment variable SECURITY_MISC_INSTALL is set to 'force'."
- return 0
- fi
- if test -f "/var/lib/security-misc/skip_install_check" ; then
- output_skip_checks "File '/var/lib/security-misc/skip_install_check' exists."
- return 0
- fi
-
## Prevent users from locking themselves out.
## https://forums.whonix.org/t/is-security-misc-suitable-for-hardening-bridges-and-relays/8299/4
echo "$0: ERROR: No user is a member of group 'sudo'. Installation aborted." >&2
From b6de867dec85efb03cf38aa85494607edb4500f4 Mon Sep 17 00:00:00 2001
From: Patrick Schleizer
Date: Wed, 1 Apr 2020 08:26:44 -0400
Subject: [PATCH 0010/1926] bumped changelog version
---
changelog.upstream | 12 ++++++++++++
debian/changelog | 6 ++++++
2 files changed, 18 insertions(+)
diff --git a/changelog.upstream b/changelog.upstream
index 7498eea0..bc0d55b8 100644
--- a/changelog.upstream
+++ b/changelog.upstream
@@ -1,3 +1,15 @@
+commit ad022fc0b703f28f24665d28b072f1a993978370
+Author: Patrick Schleizer
+Date: Wed Apr 1 08:21:06 2020 -0400
+
+ fix
+
+commit 354af7085be7e266913c3ae79701cd1abc729d06
+Author: Patrick Schleizer
+Date: Tue Mar 31 07:41:45 2020 -0400
+
+ bumped changelog version
+
commit 814f613a2fac12b892dfb6dcf53ee628e340c7b2
Author: Patrick Schleizer
Date: Tue Mar 31 07:08:25 2020 -0400
diff --git a/debian/changelog b/debian/changelog
index a1378bb5..0804f816 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+security-misc (3:17.4-1) unstable; urgency=medium
+
+ * New upstream version (local package).
+
+ -- Patrick Schleizer Wed, 01 Apr 2020 12:26:44 +0000
+
security-misc (3:17.3-1) unstable; urgency=medium
* New upstream version (local package).
From 2ceea8d1fe9f2425488c6696f75f2ecfd9ff2235 Mon Sep 17 00:00:00 2001
From: Patrick Schleizer
Date: Wed, 1 Apr 2020 08:49:59 -0400
Subject: [PATCH 0011/1926] update copyright year
---
COPYING | 2 +-
Makefile | 2 +-
debian/control | 2 +-
debian/copyright | 2 +-
debian/rules | 2 +-
debian/security-misc.displace | 2 +-
debian/security-misc.maintscript | 2 +-
debian/security-misc.postinst | 2 +-
debian/security-misc.postrm | 2 +-
debian/security-misc.preinst | 2 +-
debian/security-misc.prerm | 2 +-
debian/security-misc.triggers | 2 +-
debian/security-misc.undisplace | 2 +-
debian/watch | 2 +-
etc/X11/Xsession.d/50panic_on_oops | 2 +-
etc/X11/Xsession.d/50security-misc | 2 +-
etc/apparmor.d/tunables/home.d/security-misc | 2 +-
etc/apt/apt.conf.d/40sandbox | 2 +-
etc/default/grub.d/40_cpu_mitigations.cfg | 2 +-
etc/default/grub.d/40_distrust_cpu.cfg | 2 +-
etc/default/grub.d/40_enable_iommu.cfg | 2 +-
etc/default/grub.d/40_kernel_hardening.cfg | 2 +-
etc/hide-hardware-info.d/30_default.conf | 2 +-
etc/initramfs-tools/hooks/sysctl-initramfs | 2 +-
etc/initramfs-tools/scripts/init-bottom/sysctl-initramfs | 2 +-
etc/modprobe.d/30_security-misc.conf | 2 +-
etc/permission-hardening.d/30_default.conf | 2 +-
etc/security/access-security-misc.conf | 2 +-
etc/sudoers.d/pkexec-security-misc | 2 +-
etc/sudoers.d/security-misc | 2 +-
etc/sudoers.d/xfce-security-misc | 2 +-
etc/sysctl.d/30_security-misc.conf | 2 +-
lib/systemd/system-preset/50-security-misc.preset | 2 +-
lib/systemd/system/hide-hardware-info.service | 2 +-
lib/systemd/system/permission-hardening.service | 2 +-
lib/systemd/system/proc-hidepid.service | 2 +-
lib/systemd/system/remount-secure.service | 2 +-
lib/systemd/system/remove-system-map.service | 2 +-
usr/bin/pkexec.security-misc | 2 +-
usr/lib/modules-load.d/30_security-misc.conf | 2 +-
usr/lib/security-misc/apt-get-update | 2 +-
usr/lib/security-misc/apt-get-update-sanity-test | 2 +-
usr/lib/security-misc/apt-get-wrapper | 2 +-
usr/lib/security-misc/askpass | 2 +-
usr/lib/security-misc/echo-path | 2 +-
usr/lib/security-misc/hide-hardware-info | 2 +-
usr/lib/security-misc/pam_only_if_login | 2 +-
usr/lib/security-misc/pam_tally2-info | 2 +-
usr/lib/security-misc/panic-on-oops | 2 +-
usr/lib/security-misc/permission-hardening | 2 +-
usr/lib/security-misc/permission-hardening-undo | 2 +-
usr/lib/security-misc/permission-lockdown | 2 +-
usr/lib/security-misc/remount-secure | 2 +-
usr/lib/security-misc/remove-system.map | 2 +-
usr/lib/security-misc/virusforget | 2 +-
usr/share/lintian/overrides/security-misc | 2 +-
usr/share/security-misc/dolphinrc | 2 +-
57 files changed, 57 insertions(+), 57 deletions(-)
diff --git a/COPYING b/COPYING
index 513503af..c54f148e 100644
--- a/COPYING
+++ b/COPYING
@@ -1,7 +1,7 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Files: *
-Copyright: 2012 - 2019 ENCRYPTED SUPPORT LP
+Copyright: 2012 - 2020 ENCRYPTED SUPPORT LP
License: GPL-3+-with-additional-terms-1
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/Makefile b/Makefile
index c48a9e73..80c52f48 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
#!/usr/bin/make -f
-## Copyright (C) 2012 - 2019 ENCRYPTED SUPPORT LP
+## Copyright (C) 2012 - 2020 ENCRYPTED SUPPORT LP
## See the file COPYING for copying conditions.
## genmkfile - Makefile - version 1.5
diff --git a/debian/control b/debian/control
index 3c797305..29efff31 100644
--- a/debian/control
+++ b/debian/control
@@ -1,4 +1,4 @@
-## Copyright (C) 2012 - 2019 ENCRYPTED SUPPORT LP
+## Copyright (C) 2012 - 2020 ENCRYPTED SUPPORT LP
## See the file COPYING for copying conditions.
Source: security-misc
diff --git a/debian/copyright b/debian/copyright
index 513503af..c54f148e 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -1,7 +1,7 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Files: *
-Copyright: 2012 - 2019 ENCRYPTED SUPPORT LP
+Copyright: 2012 - 2020 ENCRYPTED SUPPORT LP
License: GPL-3+-with-additional-terms-1
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/debian/rules b/debian/rules
index f200f9e1..c771e0cc 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,6 +1,6 @@
#!/usr/bin/make -f
-## Copyright (C) 2012 - 2019 ENCRYPTED SUPPORT LP
+## Copyright (C) 2012 - 2020 ENCRYPTED SUPPORT LP
## See the file COPYING for copying conditions.
#export DH_VERBOSE=1
diff --git a/debian/security-misc.displace b/debian/security-misc.displace
index ec8a20bb..afc59575 100644
--- a/debian/security-misc.displace
+++ b/debian/security-misc.displace
@@ -1,4 +1,4 @@
-## Copyright (C) 2019 - 2019 ENCRYPTED SUPPORT LP
+## Copyright (C) 2019 - 2020 ENCRYPTED SUPPORT LP
## See the file COPYING for copying conditions.
/usr/bin/pkexec.security-misc
diff --git a/debian/security-misc.maintscript b/debian/security-misc.maintscript
index 14236463..4e4c67a0 100644
--- a/debian/security-misc.maintscript
+++ b/debian/security-misc.maintscript
@@ -1,4 +1,4 @@
-## Copyright (C) 2019 - 2019 ENCRYPTED SUPPORT LP
+## Copyright (C) 2019 - 2020 ENCRYPTED SUPPORT LP
## See the file COPYING for copying conditions.
rm_conffile /etc/sudoers.d/umask-security-misc
diff --git a/debian/security-misc.postinst b/debian/security-misc.postinst
index aabb3d59..11bc4c9b 100644
--- a/debian/security-misc.postinst
+++ b/debian/security-misc.postinst
@@ -1,6 +1,6 @@
#!/bin/bash
-## Copyright (C) 2012 - 2019 ENCRYPTED SUPPORT LP
+## Copyright (C) 2012 - 2020 ENCRYPTED SUPPORT LP
## See the file COPYING for copying conditions.
if [ -f /usr/lib/helper-scripts/pre.bsh ]; then
diff --git a/debian/security-misc.postrm b/debian/security-misc.postrm
index 4ff6c360..7c80735e 100644
--- a/debian/security-misc.postrm
+++ b/debian/security-misc.postrm
@@ -1,6 +1,6 @@
#!/bin/bash
-## Copyright (C) 2012 - 2019 ENCRYPTED SUPPORT LP
+## Copyright (C) 2012 - 2020 ENCRYPTED SUPPORT LP
## See the file COPYING for copying conditions.
if [ -f /usr/lib/helper-scripts/pre.bsh ]; then
diff --git a/debian/security-misc.preinst b/debian/security-misc.preinst
index 983c1fd8..ae7cf184 100644
--- a/debian/security-misc.preinst
+++ b/debian/security-misc.preinst
@@ -1,6 +1,6 @@
#!/bin/bash
-## Copyright (C) 2012 - 2019 ENCRYPTED SUPPORT LP
+## Copyright (C) 2012 - 2020 ENCRYPTED SUPPORT LP
## See the file COPYING for copying conditions.
if [ -f /usr/lib/helper-scripts/pre.bsh ]; then
diff --git a/debian/security-misc.prerm b/debian/security-misc.prerm
index f6ceea52..32498fed 100644
--- a/debian/security-misc.prerm
+++ b/debian/security-misc.prerm
@@ -1,6 +1,6 @@
#!/bin/bash
-## Copyright (C) 2012 - 2019 ENCRYPTED SUPPORT LP
+## Copyright (C) 2012 - 2020 ENCRYPTED SUPPORT LP
## See the file COPYING for copying conditions.
if [ -f /usr/lib/helper-scripts/pre.bsh ]; then
diff --git a/debian/security-misc.triggers b/debian/security-misc.triggers
index 4aa5743f..a69ee426 100644
--- a/debian/security-misc.triggers
+++ b/debian/security-misc.triggers
@@ -1,4 +1,4 @@
-## Copyright (C) 2019 - 2019 ENCRYPTED SUPPORT LP
+## Copyright (C) 2019 - 2020 ENCRYPTED SUPPORT LP
## See the file COPYING for copying conditions.
#### meta start
diff --git a/debian/security-misc.undisplace b/debian/security-misc.undisplace
index db0d1fd9..55fd1f16 100644
--- a/debian/security-misc.undisplace
+++ b/debian/security-misc.undisplace
@@ -1,4 +1,4 @@
-## Copyright (C) 2019 - 2019 ENCRYPTED SUPPORT LP
+## Copyright (C) 2019 - 2020 ENCRYPTED SUPPORT LP
## See the file COPYING for copying conditions.
/etc/login.defs.security-misc
diff --git a/debian/watch b/debian/watch
index 16e01a49..460c78f1 100644
--- a/debian/watch
+++ b/debian/watch
@@ -1,4 +1,4 @@
-## Copyright (C) 2012 - 2019 ENCRYPTED SUPPORT LP
+## Copyright (C) 2012 - 2020 ENCRYPTED SUPPORT LP
## See the file COPYING for copying conditions.
version=4
diff --git a/etc/X11/Xsession.d/50panic_on_oops b/etc/X11/Xsession.d/50panic_on_oops
index ef212283..faca1941 100644
--- a/etc/X11/Xsession.d/50panic_on_oops
+++ b/etc/X11/Xsession.d/50panic_on_oops
@@ -1,6 +1,6 @@
#!/bin/sh
-## Copyright (C) 2019 - 2019 ENCRYPTED SUPPORT LP
+## Copyright (C) 2019 - 2020 ENCRYPTED SUPPORT LP
## See the file COPYING for copying conditions.
if [ -x /usr/lib/security-misc/panic-on-oops ]; then
diff --git a/etc/X11/Xsession.d/50security-misc b/etc/X11/Xsession.d/50security-misc
index 9ec65bdb..c9ffae85 100644
--- a/etc/X11/Xsession.d/50security-misc
+++ b/etc/X11/Xsession.d/50security-misc
@@ -1,4 +1,4 @@
-## Copyright (C) 2012 - 2019 ENCRYPTED SUPPORT LP
+## Copyright (C) 2012 - 2020 ENCRYPTED SUPPORT LP
## See the file COPYING for copying conditions.
if [ -z "$XDG_CONFIG_DIRS" ]; then
diff --git a/etc/apparmor.d/tunables/home.d/security-misc b/etc/apparmor.d/tunables/home.d/security-misc
index 61735d38..4c943de5 100644
--- a/etc/apparmor.d/tunables/home.d/security-misc
+++ b/etc/apparmor.d/tunables/home.d/security-misc
@@ -1,4 +1,4 @@
-## Copyright (C) 2019 - 2019 ENCRYPTED SUPPORT LP
+## Copyright (C) 2019 - 2020 ENCRYPTED SUPPORT LP
## See the file COPYING for copying conditions.
alias /etc/pam.d/common-session -> /etc/pam.d//etc/pam.d/common-session.security-misc,
diff --git a/etc/apt/apt.conf.d/40sandbox b/etc/apt/apt.conf.d/40sandbox
index e79194fb..1f97f35c 100644
--- a/etc/apt/apt.conf.d/40sandbox
+++ b/etc/apt/apt.conf.d/40sandbox
@@ -1,4 +1,4 @@
-## Copyright (C) 2019 - 2019 ENCRYPTED SUPPORT LP
+## Copyright (C) 2019 - 2020 ENCRYPTED SUPPORT LP
## See the file COPYING for copying conditions.
## https://forums.whonix.org/t/apt-seccomp-bpf-sandboxing/7702
diff --git a/etc/default/grub.d/40_cpu_mitigations.cfg b/etc/default/grub.d/40_cpu_mitigations.cfg
index c18d80ce..d6e2182e 100644
--- a/etc/default/grub.d/40_cpu_mitigations.cfg
+++ b/etc/default/grub.d/40_cpu_mitigations.cfg
@@ -1,4 +1,4 @@
-## Copyright (C) 2019 - 2019 ENCRYPTED SUPPORT LP
+## Copyright (C) 2019 - 2020 ENCRYPTED SUPPORT LP
## See the file COPYING for copying conditions.
## Enables all mitigations for CPU vulnerabilities.
diff --git a/etc/default/grub.d/40_distrust_cpu.cfg b/etc/default/grub.d/40_distrust_cpu.cfg
index f3f2fab3..618b5e7d 100644
--- a/etc/default/grub.d/40_distrust_cpu.cfg
+++ b/etc/default/grub.d/40_distrust_cpu.cfg
@@ -1,4 +1,4 @@
-## Copyright (C) 2019 - 2019 ENCRYPTED SUPPORT LP
+## Copyright (C) 2019 - 2020 ENCRYPTED SUPPORT LP
## See the file COPYING for copying conditions.
## Distrusts the CPU for initial entropy at boot as it is not possible to
diff --git a/etc/default/grub.d/40_enable_iommu.cfg b/etc/default/grub.d/40_enable_iommu.cfg
index 6e49d49f..3d229b49 100644
--- a/etc/default/grub.d/40_enable_iommu.cfg
+++ b/etc/default/grub.d/40_enable_iommu.cfg
@@ -1,4 +1,4 @@
-## Copyright (C) 2019 - 2019 ENCRYPTED SUPPORT LP
+## Copyright (C) 2019 - 2020 ENCRYPTED SUPPORT LP
## See the file COPYING for copying conditions.
## Enables IOMMU to prevent DMA attacks.
diff --git a/etc/default/grub.d/40_kernel_hardening.cfg b/etc/default/grub.d/40_kernel_hardening.cfg
index 6bdbff22..f8d42894 100644
--- a/etc/default/grub.d/40_kernel_hardening.cfg
+++ b/etc/default/grub.d/40_kernel_hardening.cfg
@@ -1,4 +1,4 @@
-## Copyright (C) 2019 - 2019 ENCRYPTED SUPPORT LP
+## Copyright (C) 2019 - 2020 ENCRYPTED SUPPORT LP
## See the file COPYING for copying conditions.
kpkg="linux-image-$(dpkg --print-architecture)"
diff --git a/etc/hide-hardware-info.d/30_default.conf b/etc/hide-hardware-info.d/30_default.conf
index 8c9ee9a6..252e0b63 100644
--- a/etc/hide-hardware-info.d/30_default.conf
+++ b/etc/hide-hardware-info.d/30_default.conf
@@ -1,4 +1,4 @@
-## Copyright (C) 2012 - 2019 ENCRYPTED SUPPORT LP
+## Copyright (C) 2012 - 2020 ENCRYPTED SUPPORT LP
## See the file COPYING for copying conditions.
## Disable the /sys whitelist.
diff --git a/etc/initramfs-tools/hooks/sysctl-initramfs b/etc/initramfs-tools/hooks/sysctl-initramfs
index d091ca8b..a6d571fa 100755
--- a/etc/initramfs-tools/hooks/sysctl-initramfs
+++ b/etc/initramfs-tools/hooks/sysctl-initramfs
@@ -1,6 +1,6 @@
#!/bin/sh
-## Copyright (C) 2012 - 2019 ENCRYPTED SUPPORT LP
+## Copyright (C) 2012 - 2020 ENCRYPTED SUPPORT LP
## See the file COPYING for copying conditions.
set -e
diff --git a/etc/initramfs-tools/scripts/init-bottom/sysctl-initramfs b/etc/initramfs-tools/scripts/init-bottom/sysctl-initramfs
index 8a354455..9a0b5210 100755
--- a/etc/initramfs-tools/scripts/init-bottom/sysctl-initramfs
+++ b/etc/initramfs-tools/scripts/init-bottom/sysctl-initramfs
@@ -1,6 +1,6 @@
#!/bin/sh
-## Copyright (C) 2012 - 2019 ENCRYPTED SUPPORT LP
+## Copyright (C) 2012 - 2020 ENCRYPTED SUPPORT LP
## See the file COPYING for copying conditions.
PREREQ=""
diff --git a/etc/modprobe.d/30_security-misc.conf b/etc/modprobe.d/30_security-misc.conf
index a43a60bd..9cba41cd 100644
--- a/etc/modprobe.d/30_security-misc.conf
+++ b/etc/modprobe.d/30_security-misc.conf
@@ -1,4 +1,4 @@
-## Copyright (C) 2012 - 2019 ENCRYPTED SUPPORT LP
+## Copyright (C) 2012 - 2020 ENCRYPTED SUPPORT LP
## See the file COPYING for copying conditions.
## https://phabricator.whonix.org/T486
diff --git a/etc/permission-hardening.d/30_default.conf b/etc/permission-hardening.d/30_default.conf
index 1d0e0dfe..302603bf 100644
--- a/etc/permission-hardening.d/30_default.conf
+++ b/etc/permission-hardening.d/30_default.conf
@@ -1,4 +1,4 @@
-## Copyright (C) 2012 - 2019 ENCRYPTED SUPPORT LP
+## Copyright (C) 2012 - 2020 ENCRYPTED SUPPORT LP
## See the file COPYING for copying conditions.
## Please use "/etc/permission-hardening.d/20_user.conf" or
diff --git a/etc/security/access-security-misc.conf b/etc/security/access-security-misc.conf
index a03a99f1..1d4e7cbc 100644
--- a/etc/security/access-security-misc.conf
+++ b/etc/security/access-security-misc.conf
@@ -1,4 +1,4 @@
-## Copyright (C) 2019 - 2019 ENCRYPTED SUPPORT LP
+## Copyright (C) 2019 - 2020 ENCRYPTED SUPPORT LP
## See the file COPYING for copying conditions.
## Console Lockdown
diff --git a/etc/sudoers.d/pkexec-security-misc b/etc/sudoers.d/pkexec-security-misc
index 1572b030..c62c6227 100644
--- a/etc/sudoers.d/pkexec-security-misc
+++ b/etc/sudoers.d/pkexec-security-misc
@@ -1,4 +1,4 @@
-## Copyright (C) 2019 - 2019 ENCRYPTED SUPPORT LP
+## Copyright (C) 2019 - 2020 ENCRYPTED SUPPORT LP
## See the file COPYING for copying conditions.
## REVIEW: is it ok that users can find out the PATH setting of root?
diff --git a/etc/sudoers.d/security-misc b/etc/sudoers.d/security-misc
index 3f98634c..e235c4de 100644
--- a/etc/sudoers.d/security-misc
+++ b/etc/sudoers.d/security-misc
@@ -1,4 +1,4 @@
-## Copyright (C) 2012 - 2019 ENCRYPTED SUPPORT LP
+## Copyright (C) 2012 - 2020 ENCRYPTED SUPPORT LP
## See the file COPYING for copying conditions.
user ALL=NOPASSWD: /usr/lib/security-misc/panic-on-oops
diff --git a/etc/sudoers.d/xfce-security-misc b/etc/sudoers.d/xfce-security-misc
index 8e751025..1880152d 100644
--- a/etc/sudoers.d/xfce-security-misc
+++ b/etc/sudoers.d/xfce-security-misc
@@ -1,4 +1,4 @@
-## Copyright (C) 2019 - 2019 ENCRYPTED SUPPORT LP
+## Copyright (C) 2019 - 2020 ENCRYPTED SUPPORT LP
## See the file COPYING for copying conditions.
## https://forums.whonix.org/t/xfce4-power-manager-xfpm-power-backlight-helper-pkexec-lxsudo-popup/8764
diff --git a/etc/sysctl.d/30_security-misc.conf b/etc/sysctl.d/30_security-misc.conf
index e83df56a..0fed8d06 100644
--- a/etc/sysctl.d/30_security-misc.conf
+++ b/etc/sysctl.d/30_security-misc.conf
@@ -1,4 +1,4 @@
-## Copyright (C) 2019 - 2019 ENCRYPTED SUPPORT LP
+## Copyright (C) 2019 - 2020 ENCRYPTED SUPPORT LP
## See the file COPYING for copying conditions.
## Disables coredumps. This setting may be overwritten by systemd so this may not be useful.
diff --git a/lib/systemd/system-preset/50-security-misc.preset b/lib/systemd/system-preset/50-security-misc.preset
index 7debfe24..a9047d69 100644
--- a/lib/systemd/system-preset/50-security-misc.preset
+++ b/lib/systemd/system-preset/50-security-misc.preset
@@ -1,4 +1,4 @@
-## Copyright (C) 2012 - 2019 ENCRYPTED SUPPORT LP
+## Copyright (C) 2012 - 2020 ENCRYPTED SUPPORT LP
## See the file COPYING for copying conditions.
## https://forums.whonix.org/t/restrict-hardware-information-to-root-testers-wanted/8618
diff --git a/lib/systemd/system/hide-hardware-info.service b/lib/systemd/system/hide-hardware-info.service
index dafa5318..0e5031e3 100644
--- a/lib/systemd/system/hide-hardware-info.service
+++ b/lib/systemd/system/hide-hardware-info.service
@@ -1,4 +1,4 @@
-## Copyright (C) 2012 - 2019 ENCRYPTED SUPPORT LP
+## Copyright (C) 2012 - 2020 ENCRYPTED SUPPORT LP
## See the file COPYING for copying conditions.
[Unit]
diff --git a/lib/systemd/system/permission-hardening.service b/lib/systemd/system/permission-hardening.service
index 31c5ac32..26a058d1 100644
--- a/lib/systemd/system/permission-hardening.service
+++ b/lib/systemd/system/permission-hardening.service
@@ -1,4 +1,4 @@
-## Copyright (C) 2019 - 2019 ENCRYPTED SUPPORT LP
+## Copyright (C) 2019 - 2020 ENCRYPTED SUPPORT LP
## See the file COPYING for copying conditions.
[Unit]
diff --git a/lib/systemd/system/proc-hidepid.service b/lib/systemd/system/proc-hidepid.service
index f2e9e91e..5896235c 100644
--- a/lib/systemd/system/proc-hidepid.service
+++ b/lib/systemd/system/proc-hidepid.service
@@ -1,4 +1,4 @@
-## Copyright (C) 2019 - 2019 ENCRYPTED SUPPORT LP
+## Copyright (C) 2019 - 2020 ENCRYPTED SUPPORT LP
## See the file COPYING for copying conditions.
[Unit]
diff --git a/lib/systemd/system/remount-secure.service b/lib/systemd/system/remount-secure.service
index 92509120..d25a647e 100644
--- a/lib/systemd/system/remount-secure.service
+++ b/lib/systemd/system/remount-secure.service
@@ -1,4 +1,4 @@
-## Copyright (C) 2019 - 2019 ENCRYPTED SUPPORT LP
+## Copyright (C) 2019 - 2020 ENCRYPTED SUPPORT LP
## See the file COPYING for copying conditions.
[Unit]
diff --git a/lib/systemd/system/remove-system-map.service b/lib/systemd/system/remove-system-map.service
index 562b1952..ebc8bb57 100644
--- a/lib/systemd/system/remove-system-map.service
+++ b/lib/systemd/system/remove-system-map.service
@@ -1,4 +1,4 @@
-## Copyright (C) 2019 - 2019 ENCRYPTED SUPPORT LP
+## Copyright (C) 2019 - 2020 ENCRYPTED SUPPORT LP
## See the file COPYING for copying conditions.
[Unit]
diff --git a/usr/bin/pkexec.security-misc b/usr/bin/pkexec.security-misc
index 03d7f9a5..812a4d54 100755
--- a/usr/bin/pkexec.security-misc
+++ b/usr/bin/pkexec.security-misc
@@ -1,6 +1,6 @@
#!/bin/bash
-## Copyright (C) 2019 - 2019 ENCRYPTED SUPPORT LP
+## Copyright (C) 2019 - 2020 ENCRYPTED SUPPORT LP
## See the file COPYING for copying conditions.
## Redirect calls for pkexec to lxqt-sudo because pkexec is incompatible with
diff --git a/usr/lib/modules-load.d/30_security-misc.conf b/usr/lib/modules-load.d/30_security-misc.conf
index 02dc5f00..4fed0168 100644
--- a/usr/lib/modules-load.d/30_security-misc.conf
+++ b/usr/lib/modules-load.d/30_security-misc.conf
@@ -1,4 +1,4 @@
-## Copyright (C) 2019 - 2019 ENCRYPTED SUPPORT LP
+## Copyright (C) 2019 - 2020 ENCRYPTED SUPPORT LP
## See the file COPYING for copying conditions.
## https://www.whonix.org/wiki/Dev/Entropy
diff --git a/usr/lib/security-misc/apt-get-update b/usr/lib/security-misc/apt-get-update
index 03df63de..06ffe558 100755
--- a/usr/lib/security-misc/apt-get-update
+++ b/usr/lib/security-misc/apt-get-update
@@ -1,6 +1,6 @@
#!/bin/bash
-## Copyright (C) 2012 - 2019 ENCRYPTED SUPPORT LP
+## Copyright (C) 2012 - 2020 ENCRYPTED SUPPORT LP
## See the file COPYING for copying conditions.
sigterm_trap() {
diff --git a/usr/lib/security-misc/apt-get-update-sanity-test b/usr/lib/security-misc/apt-get-update-sanity-test
index 6e303816..58c16550 100755
--- a/usr/lib/security-misc/apt-get-update-sanity-test
+++ b/usr/lib/security-misc/apt-get-update-sanity-test
@@ -1,6 +1,6 @@
#!/bin/bash
-## Copyright (C) 2012 - 2019 ENCRYPTED SUPPORT LP
+## Copyright (C) 2012 - 2020 ENCRYPTED SUPPORT LP
## See the file COPYING for copying conditions.
set -x
diff --git a/usr/lib/security-misc/apt-get-wrapper b/usr/lib/security-misc/apt-get-wrapper
index b3b60adb..e7d56c72 100755
--- a/usr/lib/security-misc/apt-get-wrapper
+++ b/usr/lib/security-misc/apt-get-wrapper
@@ -1,6 +1,6 @@
#!/bin/bash
-## Copyright (C) 2012 - 2019 ENCRYPTED SUPPORT LP
+## Copyright (C) 2012 - 2020 ENCRYPTED SUPPORT LP
## See the file COPYING for copying conditions.
set -e
diff --git a/usr/lib/security-misc/askpass b/usr/lib/security-misc/askpass
index 0a7cb838..3d67ecd0 100755
--- a/usr/lib/security-misc/askpass
+++ b/usr/lib/security-misc/askpass
@@ -1,6 +1,6 @@
#!/bin/bash
-## Copyright (C) 2019 - 2019 ENCRYPTED SUPPORT LP
+## Copyright (C) 2019 - 2020 ENCRYPTED SUPPORT LP
## See the file COPYING for copying conditions.
set -e
diff --git a/usr/lib/security-misc/echo-path b/usr/lib/security-misc/echo-path
index ba4cdf40..c2d1b60b 100755
--- a/usr/lib/security-misc/echo-path
+++ b/usr/lib/security-misc/echo-path
@@ -1,6 +1,6 @@
#!/bin/bash
-## Copyright (C) 2019 - 2019 ENCRYPTED SUPPORT LP
+## Copyright (C) 2019 - 2020 ENCRYPTED SUPPORT LP
## See the file COPYING for copying conditions.
set -e
diff --git a/usr/lib/security-misc/hide-hardware-info b/usr/lib/security-misc/hide-hardware-info
index 2c8e0754..36ddc290 100755
--- a/usr/lib/security-misc/hide-hardware-info
+++ b/usr/lib/security-misc/hide-hardware-info
@@ -1,6 +1,6 @@
#!/bin/bash
-## Copyright (C) 2012 - 2019 ENCRYPTED SUPPORT LP
+## Copyright (C) 2012 - 2020 ENCRYPTED SUPPORT LP
## See the file COPYING for copying conditions.
set -e
diff --git a/usr/lib/security-misc/pam_only_if_login b/usr/lib/security-misc/pam_only_if_login
index 51b6d805..05fc1542 100755
--- a/usr/lib/security-misc/pam_only_if_login
+++ b/usr/lib/security-misc/pam_only_if_login
@@ -1,6 +1,6 @@
#!/bin/bash
-## Copyright (C) 2019 - 2019 ENCRYPTED SUPPORT LP
+## Copyright (C) 2019 - 2020 ENCRYPTED SUPPORT LP
## See the file COPYING for copying conditions.
## https://serverfault.com/questions/134471/success-n-control-syntax-in-pam-conf-pam-d-files
diff --git a/usr/lib/security-misc/pam_tally2-info b/usr/lib/security-misc/pam_tally2-info
index b3e7f127..9fdfce8a 100755
--- a/usr/lib/security-misc/pam_tally2-info
+++ b/usr/lib/security-misc/pam_tally2-info
@@ -1,6 +1,6 @@
#!/bin/bash
-## Copyright (C) 2019 - 2019 ENCRYPTED SUPPORT LP
+## Copyright (C) 2019 - 2020 ENCRYPTED SUPPORT LP
## See the file COPYING for copying conditions.
grep_result="$(grep "accessfile=/etc/security/access-security-misc.conf" /etc/pam.d/common-account 2>/dev/null)"
diff --git a/usr/lib/security-misc/panic-on-oops b/usr/lib/security-misc/panic-on-oops
index ed59cf6c..5636dc36 100755
--- a/usr/lib/security-misc/panic-on-oops
+++ b/usr/lib/security-misc/panic-on-oops
@@ -1,6 +1,6 @@
#!/bin/bash
-## Copyright (C) 2019 - 2019 ENCRYPTED SUPPORT LP
+## Copyright (C) 2019 - 2020 ENCRYPTED SUPPORT LP
## See the file COPYING for copying conditions.
set -e
diff --git a/usr/lib/security-misc/permission-hardening b/usr/lib/security-misc/permission-hardening
index 3a1b2c4b..530d9753 100755
--- a/usr/lib/security-misc/permission-hardening
+++ b/usr/lib/security-misc/permission-hardening
@@ -1,6 +1,6 @@
#!/bin/bash
-## Copyright (C) 2012 - 2019 ENCRYPTED SUPPORT LP
+## Copyright (C) 2012 - 2020 ENCRYPTED SUPPORT LP
## See the file COPYING for copying conditions.
## https://forums.whonix.org/t/disable-suid-binaries/7706
diff --git a/usr/lib/security-misc/permission-hardening-undo b/usr/lib/security-misc/permission-hardening-undo
index 5f2324df..3d40b317 100755
--- a/usr/lib/security-misc/permission-hardening-undo
+++ b/usr/lib/security-misc/permission-hardening-undo
@@ -1,6 +1,6 @@
#!/bin/bash
-## Copyright (C) 2012 - 2019 ENCRYPTED SUPPORT LP
+## Copyright (C) 2012 - 2020 ENCRYPTED SUPPORT LP
## See the file COPYING for copying conditions.
#set -x
diff --git a/usr/lib/security-misc/permission-lockdown b/usr/lib/security-misc/permission-lockdown
index 2b4e8027..157056ec 100755
--- a/usr/lib/security-misc/permission-lockdown
+++ b/usr/lib/security-misc/permission-lockdown
@@ -1,6 +1,6 @@
#!/bin/bash
-## Copyright (C) 2012 - 2019 ENCRYPTED SUPPORT LP
+## Copyright (C) 2012 - 2020 ENCRYPTED SUPPORT LP
## See the file COPYING for copying conditions.
## Doing this for all users would create many issues.
diff --git a/usr/lib/security-misc/remount-secure b/usr/lib/security-misc/remount-secure
index 84cd9090..3eed8f93 100755
--- a/usr/lib/security-misc/remount-secure
+++ b/usr/lib/security-misc/remount-secure
@@ -1,6 +1,6 @@
#!/bin/bash
-## Copyright (C) 2019 - 2019 ENCRYPTED SUPPORT LP
+## Copyright (C) 2019 - 2020 ENCRYPTED SUPPORT LP
## See the file COPYING for copying conditions.
## noexec in /tmp and/or /home can break some malware but also legitimate
diff --git a/usr/lib/security-misc/remove-system.map b/usr/lib/security-misc/remove-system.map
index 72ce407f..1c972051 100755
--- a/usr/lib/security-misc/remove-system.map
+++ b/usr/lib/security-misc/remove-system.map
@@ -1,6 +1,6 @@
#!/bin/bash
-## Copyright (C) 2012 - 2019 ENCRYPTED SUPPORT LP
+## Copyright (C) 2012 - 2020 ENCRYPTED SUPPORT LP
## See the file COPYING for copying conditions.
if [ -f /usr/lib/helper-scripts/pre.bsh ]; then
diff --git a/usr/lib/security-misc/virusforget b/usr/lib/security-misc/virusforget
index 70817373..f745971f 100755
--- a/usr/lib/security-misc/virusforget
+++ b/usr/lib/security-misc/virusforget
@@ -1,6 +1,6 @@
#!/bin/bash
-## Copyright (C) 2019 - 2019 ENCRYPTED SUPPORT LP
+## Copyright (C) 2019 - 2020 ENCRYPTED SUPPORT LP
## See the file COPYING for copying conditions.
## VirusForget is inspired by Christopher Laprise.
diff --git a/usr/share/lintian/overrides/security-misc b/usr/share/lintian/overrides/security-misc
index 3217d4b1..cb24c53d 100644
--- a/usr/share/lintian/overrides/security-misc
+++ b/usr/share/lintian/overrides/security-misc
@@ -1,4 +1,4 @@
-## Copyright (C) 2019 - 2019 ENCRYPTED SUPPORT LP
+## Copyright (C) 2019 - 2020 ENCRYPTED SUPPORT LP
## See the file COPYING for copying conditions.
## The whole point of the package.
diff --git a/usr/share/security-misc/dolphinrc b/usr/share/security-misc/dolphinrc
index 86831213..c0f1dbc1 100644
--- a/usr/share/security-misc/dolphinrc
+++ b/usr/share/security-misc/dolphinrc
@@ -1,4 +1,4 @@
-## Copyright (C) 2012 - 2019 ENCRYPTED SUPPORT LP
+## Copyright (C) 2012 - 2020 ENCRYPTED SUPPORT LP
## See the file COPYING for copying conditions
[PreviewSettings]
From d4b2baa9b66d480d5e45c628f8bc4ff11fab765f Mon Sep 17 00:00:00 2001
From: Patrick Schleizer
Date: Wed, 1 Apr 2020 10:58:16 -0400
Subject: [PATCH 0012/1926] bumped changelog version
---
changelog.upstream | 12 ++++++++++++
debian/changelog | 6 ++++++
2 files changed, 18 insertions(+)
diff --git a/changelog.upstream b/changelog.upstream
index bc0d55b8..9720bf22 100644
--- a/changelog.upstream
+++ b/changelog.upstream
@@ -1,3 +1,15 @@
+commit 2ceea8d1fe9f2425488c6696f75f2ecfd9ff2235
+Author: Patrick Schleizer
+Date: Wed Apr 1 08:49:59 2020 -0400
+
+ update copyright year
+
+commit b6de867dec85efb03cf38aa85494607edb4500f4
+Author: Patrick Schleizer
+Date: Wed Apr 1 08:26:44 2020 -0400
+
+ bumped changelog version
+
commit ad022fc0b703f28f24665d28b072f1a993978370
Author: Patrick Schleizer
Date: Wed Apr 1 08:21:06 2020 -0400
diff --git a/debian/changelog b/debian/changelog
index 0804f816..d364071c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+security-misc (3:17.5-1) unstable; urgency=medium
+
+ * New upstream version (local package).
+
+ -- Patrick Schleizer Wed, 01 Apr 2020 14:58:16 +0000
+
security-misc (3:17.4-1) unstable; urgency=medium
* New upstream version (local package).
From 2609fe9c3efff611dc5bce20d62580dace02757b Mon Sep 17 00:00:00 2001
From: Patrick Schleizer
Date: Wed, 1 Apr 2020 16:33:29 -0400
Subject: [PATCH 0013/1926] add debian install file
---
debian/security-misc.install | 9 +++++++++
1 file changed, 9 insertions(+)
create mode 100644 debian/security-misc.install
diff --git a/debian/security-misc.install b/debian/security-misc.install
new file mode 100644
index 00000000..0d11e6ee
--- /dev/null
+++ b/debian/security-misc.install
@@ -0,0 +1,9 @@
+## Copyright (C) 2020 - 2020 ENCRYPTED SUPPORT LP
+## See the file COPYING for copying conditions.
+
+## This file was generated using genmkfile 'make debinstfile'.
+
+etc/*
+lib/*
+usr/*
+var/*
From eda9c57a628ebf1083f87789842d5403c6e05122 Mon Sep 17 00:00:00 2001
From: Patrick Schleizer
Date: Wed, 1 Apr 2020 16:57:33 -0400
Subject: [PATCH 0014/1926] remove genmkfile
---
Makefile | 18 ------------------
debian/control | 2 +-
2 files changed, 1 insertion(+), 19 deletions(-)
delete mode 100644 Makefile
diff --git a/Makefile b/Makefile
deleted file mode 100644
index 80c52f48..00000000
--- a/Makefile
+++ /dev/null
@@ -1,18 +0,0 @@
-#!/usr/bin/make -f
-
-## Copyright (C) 2012 - 2020 ENCRYPTED SUPPORT LP
-## See the file COPYING for copying conditions.
-
-## genmkfile - Makefile - version 1.5
-
-## This is a copy.
-## master location:
-## https://github.com/Whonix/genmkfile/blob/master/usr/share/genmkfile/Makefile
-
-GENMKFILE_PATH ?= /usr/share/genmkfile
-GENMKFILE_ROOT_DIR := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
-
-export GENMKFILE_PATH
-export GENMKFILE_ROOT_DIR
-
-include $(GENMKFILE_PATH)/makefile-full
diff --git a/debian/control b/debian/control
index 29efff31..952dbc41 100644
--- a/debian/control
+++ b/debian/control
@@ -5,7 +5,7 @@ Source: security-misc
Section: misc
Priority: optional
Maintainer: Patrick Schleizer
-Build-Depends: debhelper (>= 12), genmkfile, config-package-dev, dh-apparmor,
+Build-Depends: debhelper (>= 12), config-package-dev, dh-apparmor,
ronn
Homepage: https://github.com/Whonix/security-misc
Vcs-Browser: https://github.com/Whonix/security-misc
From d9f2a0e4a1837ef1604e4cd17ce8ae60996c9782 Mon Sep 17 00:00:00 2001
From: Patrick Schleizer
Date: Wed, 1 Apr 2020 17:34:59 -0400
Subject: [PATCH 0015/1926] remove 'Build-Depends: ronn' since no longer
required
---
debian/control | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/debian/control b/debian/control
index 952dbc41..89d924ef 100644
--- a/debian/control
+++ b/debian/control
@@ -5,8 +5,7 @@ Source: security-misc
Section: misc
Priority: optional
Maintainer: Patrick Schleizer
-Build-Depends: debhelper (>= 12), config-package-dev, dh-apparmor,
- ronn
+Build-Depends: debhelper (>= 12), config-package-dev, dh-apparmor
Homepage: https://github.com/Whonix/security-misc
Vcs-Browser: https://github.com/Whonix/security-misc
Vcs-Git: https://github.com/Whonix/security-misc.git
From 7764ee0d202193dc67f5805fc23be2b804962186 Mon Sep 17 00:00:00 2001
From: Patrick Schleizer
Date: Thu, 2 Apr 2020 05:58:16 -0400
Subject: [PATCH 0016/1926] comments
---
etc/security/access-security-misc.conf | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/etc/security/access-security-misc.conf b/etc/security/access-security-misc.conf
index 1d4e7cbc..b4956b9b 100644
--- a/etc/security/access-security-misc.conf
+++ b/etc/security/access-security-misc.conf
@@ -15,10 +15,15 @@
## Usually tty7 is for X.
## Qubes uses tty1 for X.
-## Allow members of group 'console' to use tty1 to tty7 and pts/0 to pts/9 and hvc0 to hvc9.
## Qubes has 'pts/0' when for example running "sudo" from a terminal emulator.
## Qubes uses 'hvc0' when using in dom0 "sudo xl console vm-name".
## When using systemd-nspawn (chroot) then `login` requires console 'console' to be permitted.
+
+## Allow members of group `console` to use:
+## - 'console'
+## - 'tty1' to 'tty7'
+## - 'pts/0' to 'pts/9'
+## - 'hvc0' to 'hvc9'
+:console:console tty1 tty2 tty3 tty4 tty5 tty6 tty7 pts/0 pts/1 pts/2 pts/3 pts/4 pts/5 pts/6 pts/7 pts/8 pts/9 hvc0 hvc1 hvc2 hvc3 hvc4 hvc5 hvc6 hvc7 hvc8 hvc9
## Everyone else except members of group 'console-unrestricted'
From a7f2a2a3b6b408a0545f55b8fed9cc17fbd8f843 Mon Sep 17 00:00:00 2001
From: Patrick Schleizer
Date: Thu, 2 Apr 2020 06:04:45 -0400
Subject: [PATCH 0017/1926] console lockdown: allow members of group `sudo` to
use console
https://forums.whonix.org/t/etc-security-hardening/8592
https://github.com/Whonix/security-misc/pull/74#issuecomment-607748407
https://www.whonix.org/wiki/Dev/Strong_Linux_User_Account_Isolation#Console_Lockdown
---
etc/security/access-security-misc.conf | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/etc/security/access-security-misc.conf b/etc/security/access-security-misc.conf
index b4956b9b..b0e9974b 100644
--- a/etc/security/access-security-misc.conf
+++ b/etc/security/access-security-misc.conf
@@ -26,6 +26,10 @@
## - 'hvc0' to 'hvc9'
+:console:console tty1 tty2 tty3 tty4 tty5 tty6 tty7 pts/0 pts/1 pts/2 pts/3 pts/4 pts/5 pts/6 pts/7 pts/8 pts/9 hvc0 hvc1 hvc2 hvc3 hvc4 hvc5 hvc6 hvc7 hvc8 hvc9
+## Same as above also for members of group `sudo`.
+## https://github.com/Whonix/security-misc/pull/74#issuecomment-607748407
++:sudo:console tty1 tty2 tty3 tty4 tty5 tty6 tty7 pts/0 pts/1 pts/2 pts/3 pts/4 pts/5 pts/6 pts/7 pts/8 pts/9 hvc0 hvc1 hvc2 hvc3 hvc4 hvc5 hvc6 hvc7 hvc8 hvc9
+
## Everyone else except members of group 'console-unrestricted'
## are restricted from everything else.
-:ALL EXCEPT console-unrestricted :ALL
From ae8c5fff3c70c00931b95cd04b8729d2c1bd2a60 Mon Sep 17 00:00:00 2001
From: Patrick Schleizer
Date: Thu, 2 Apr 2020 07:22:47 -0400
Subject: [PATCH 0018/1926] readme
---
README.md | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
index a15e3a12..4cc9e4f8 100644
--- a/README.md
+++ b/README.md
@@ -358,9 +358,15 @@ sudo apt-get update
sudo apt-get install security-misc
```
-## How to Build deb Package ##
+## How to Build deb Package from Source Code ##
-Replace `apparmor-profile-torbrowser` with the actual name of this package with `security-misc` and see [instructions](https://www.whonix.org/wiki/Dev/Build_Documentation/apparmor-profile-torbrowser).
+Can be build using standard Debian package build tools such as:
+
+```
+dpkg-buildpackage -b
+```
+
+See [instructions](https://www.whonix.org/wiki/Dev/Build_Documentation/security-misc). (Replace `package-name` with the actual name of this package.)
## Contact ##
From a2c932aa5a354798ce1383e988519f9a2cb69374 Mon Sep 17 00:00:00 2001
From: Patrick Schleizer
Date: Thu, 2 Apr 2020 07:58:51 -0400
Subject: [PATCH 0019/1926] bumped changelog version
---
changelog.upstream | 48 ++++++++++++++++++++++++++++++++++++++++++++++
debian/changelog | 6 ++++++
2 files changed, 54 insertions(+)
diff --git a/changelog.upstream b/changelog.upstream
index 9720bf22..fb05dc50 100644
--- a/changelog.upstream
+++ b/changelog.upstream
@@ -1,3 +1,51 @@
+commit ae8c5fff3c70c00931b95cd04b8729d2c1bd2a60
+Author: Patrick Schleizer
+Date: Thu Apr 2 07:22:47 2020 -0400
+
+ readme
+
+commit a7f2a2a3b6b408a0545f55b8fed9cc17fbd8f843
+Author: Patrick Schleizer
+Date: Thu Apr 2 06:04:45 2020 -0400
+
+ console lockdown: allow members of group `sudo` to use console
+
+ https://forums.whonix.org/t/etc-security-hardening/8592
+
+ https://github.com/Whonix/security-misc/pull/74#issuecomment-607748407
+
+ https://www.whonix.org/wiki/Dev/Strong_Linux_User_Account_Isolation#Console_Lockdown
+
+commit 7764ee0d202193dc67f5805fc23be2b804962186
+Author: Patrick Schleizer
+Date: Thu Apr 2 05:58:16 2020 -0400
+
+ comments
+
+commit d9f2a0e4a1837ef1604e4cd17ce8ae60996c9782
+Author: Patrick Schleizer
+Date: Wed Apr 1 17:34:59 2020 -0400
+
+ remove 'Build-Depends: ronn' since no longer required
+
+commit eda9c57a628ebf1083f87789842d5403c6e05122
+Author: Patrick Schleizer
+Date: Wed Apr 1 16:57:33 2020 -0400
+
+ remove genmkfile
+
+commit 2609fe9c3efff611dc5bce20d62580dace02757b
+Author: Patrick Schleizer
+Date: Wed Apr 1 16:33:29 2020 -0400
+
+ add debian install file
+
+commit d4b2baa9b66d480d5e45c628f8bc4ff11fab765f
+Author: Patrick Schleizer
+Date: Wed Apr 1 10:58:16 2020 -0400
+
+ bumped changelog version
+
commit 2ceea8d1fe9f2425488c6696f75f2ecfd9ff2235
Author: Patrick Schleizer
Date: Wed Apr 1 08:49:59 2020 -0400
diff --git a/debian/changelog b/debian/changelog
index d364071c..2d4fd3e4 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+security-misc (3:17.6-1) unstable; urgency=medium
+
+ * New upstream version (local package).
+
+ -- Patrick Schleizer Thu, 02 Apr 2020 11:58:51 +0000
+
security-misc (3:17.5-1) unstable; urgency=medium
* New upstream version (local package).
From 1188a44f47602248911d81f4dc3af08b830b65b9 Mon Sep 17 00:00:00 2001
From: Patrick Schleizer
Date: Sat, 4 Apr 2020 16:49:30 -0400
Subject: [PATCH 0020/1926] port to python 3.7
---
usr/lib/security-misc/apt-get-wrapper | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/usr/lib/security-misc/apt-get-wrapper b/usr/lib/security-misc/apt-get-wrapper
index e7d56c72..9fcc2d96 100755
--- a/usr/lib/security-misc/apt-get-wrapper
+++ b/usr/lib/security-misc/apt-get-wrapper
@@ -25,7 +25,7 @@ apt_get_exit_code="0"
## http://stackoverflow.com/a/26263980/2605155
## for the python way to create a pty.
-python -c 'import pty, sys; pty.spawn(sys.argv[1:])' \
+python3.7 -c 'import pty, sys; pty.spawn(sys.argv[1:])' \
| apt-get "$@" 2>&1 \
| tee -a "$logfile" \
|| { apt_get_exit_code="$?"; true; };
From 1b2a34ea80fa9efeb02acaa8595e3c38fd9d06ca Mon Sep 17 00:00:00 2001
From: Patrick Schleizer
Date: Sat, 4 Apr 2020 16:51:42 -0400
Subject: [PATCH 0021/1926] bumped changelog version
---
changelog.upstream | 12 ++++++++++++
debian/changelog | 6 ++++++
2 files changed, 18 insertions(+)
diff --git a/changelog.upstream b/changelog.upstream
index fb05dc50..3848fe79 100644
--- a/changelog.upstream
+++ b/changelog.upstream
@@ -1,3 +1,15 @@
+commit 1188a44f47602248911d81f4dc3af08b830b65b9
+Author: Patrick Schleizer
+Date: Sat Apr 4 16:49:30 2020 -0400
+
+ port to python 3.7
+
+commit a2c932aa5a354798ce1383e988519f9a2cb69374
+Author: Patrick Schleizer
+Date: Thu Apr 2 07:58:51 2020 -0400
+
+ bumped changelog version
+
commit ae8c5fff3c70c00931b95cd04b8729d2c1bd2a60
Author: Patrick Schleizer
Date: Thu Apr 2 07:22:47 2020 -0400
diff --git a/debian/changelog b/debian/changelog
index 2d4fd3e4..88df55e6 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+security-misc (3:17.7-1) unstable; urgency=medium
+
+ * New upstream version (local package).
+
+ -- Patrick Schleizer Sat, 04 Apr 2020 20:51:42 +0000
+
security-misc (3:17.6-1) unstable; urgency=medium
* New upstream version (local package).
From 5c81e1f23fa07a0e3c96d15dc3cc24d41332fe3c Mon Sep 17 00:00:00 2001
From: Patrick Schleizer
Date: Mon, 6 Apr 2020 09:25:45 -0400
Subject: [PATCH 0022/1926] import from anon-gpg-conf
---
debian/control | 6 +-
debian/security-misc.postinst | 5 +
etc/skel/.gnupg/gpg.conf | 348 ++++++++++++++++++++++
usr/share/lintian/overrides/security-misc | 2 +-
4 files changed, 359 insertions(+), 2 deletions(-)
create mode 100644 etc/skel/.gnupg/gpg.conf
diff --git a/debian/control b/debian/control
index 89d924ef..957443b7 100644
--- a/debian/control
+++ b/debian/control
@@ -15,7 +15,7 @@ Package: security-misc
Architecture: all
Depends: python, libglib2.0-bin, libpam-runtime, sudo, adduser, libcap2-bin,
apparmor-profile-anondist, helper-scripts, ${misc:Depends}
-Replaces: tcp-timestamps-disable
+Replaces: tcp-timestamps-disable, anon-gpg-tweaks
Description: enhances misc security settings
Inspired by Kernel Self Protection Project (KSPP)
.
@@ -321,6 +321,10 @@ Description: enhances misc security settings
* Enables punycode (`network.IDN_show_punycode`) by default in Thunderbird
to make phishing attacks more difficult. Fixing URL not showing real Domain
Name (Homograph attack).
+ * Security and privacy enhancements for gnupg's config file
+ `/etc/skel/.gnupg/gpg.conf`. See also:
+ https://raw.github.com/ioerror/torbirdy/master/gpg.conf
+ https://github.com/ioerror/torbirdy/pull/11
.
Want more? Look into these:
.
diff --git a/debian/security-misc.postinst b/debian/security-misc.postinst
index 11bc4c9b..13e00729 100644
--- a/debian/security-misc.postinst
+++ b/debian/security-misc.postinst
@@ -17,6 +17,11 @@ true "
case "$1" in
configure)
+ if [ -d /etc/skel/.gnupg ]; then
+ ## Lintian warns against use of chmod --recursive.
+ chmod 700 /etc/skel/.gnupg
+ fi
+
## /usr/share/glib-2.0/schemas/30_security-misc.gschema.override
glib-compile-schemas /usr/share/glib-2.0/schemas || true
;;
diff --git a/etc/skel/.gnupg/gpg.conf b/etc/skel/.gnupg/gpg.conf
new file mode 100644
index 00000000..dcc90e82
--- /dev/null
+++ b/etc/skel/.gnupg/gpg.conf
@@ -0,0 +1,348 @@
+# Options for GnuPG
+# Copyright 1998, 1999, 2000, 2001, 2002, 2003,
+# 2010 Free Software Foundation, Inc.
+#
+# This file is free software; as a special exception the author gives
+# unlimited permission to copy and/or distribute it, with or without
+# modifications, as long as this notice is preserved.
+#
+# This file is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
+# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+#
+# Unless you specify which option file to use (with the command line
+# option "--options filename"), GnuPG uses the file ~/.gnupg/gpg.conf
+# by default.
+#
+# An options file can contain any long options which are available in
+# GnuPG. If the first non white space character of a line is a '#',
+# this line is ignored. Empty lines are also ignored.
+#
+# See the man page for a list of options.
+
+# Uncomment the following option to get rid of the copyright notice
+
+#no-greeting
+
+# If you have more than 1 secret key in your keyring, you may want to
+# uncomment the following option and set your preferred keyid.
+
+#default-key 621CC013
+
+# If you do not pass a recipient to gpg, it will ask for one. Using
+# this option you can encrypt to a default key. Key validation will
+# not be done in this case. The second form uses the default key as
+# default recipient.
+
+#default-recipient some-user-id
+#default-recipient-self
+
+# Use --encrypt-to to add the specified key as a recipient to all
+# messages. This is useful, for example, when sending mail through a
+# mail client that does not automatically encrypt mail to your key.
+# In the example, this option allows you to read your local copy of
+# encrypted mail that you've sent to others.
+
+#encrypt-to some-key-id
+
+# By default GnuPG creates version 4 signatures for data files as
+# specified by OpenPGP. Some earlier (PGP 6, PGP 7) versions of PGP
+# require the older version 3 signatures. Setting this option forces
+# GnuPG to create version 3 signatures.
+
+#force-v3-sigs
+
+# Because some mailers change lines starting with "From " to ">From "
+# it is good to handle such lines in a special way when creating
+# cleartext signatures; all other PGP versions do it this way too.
+
+#no-escape-from-lines
+
+# If you do not use the Latin-1 (ISO-8859-1) charset, you should tell
+# GnuPG which is the native character set. Please check the man page
+# for supported character sets. This character set is only used for
+# metadata and not for the actual message which does not undergo any
+# translation. Note that future version of GnuPG will change to UTF-8
+# as default character set. In most cases this option is not required
+# as GnuPG is able to figure out the correct charset at runtime.
+
+#charset utf-8
+
+# Group names may be defined like this:
+# group mynames = paige 0x12345678 joe patti
+#
+# Any time "mynames" is a recipient (-r or --recipient), it will be
+# expanded to the names "paige", "joe", and "patti", and the key ID
+# "0x12345678". Note that there is only one level of expansion - you
+# cannot make a group that points to another group. Note also that
+# if there are spaces in the recipient name, this will appear as two
+# recipients. In these cases it is better to use the key ID.
+
+#group mynames = paige 0x12345678 joe patti
+
+# Lock the file only once for the lifetime of a process. If you do
+# not define this, the lock will be obtained and released every time
+# it is needed, which is usually preferable.
+
+#lock-once
+
+# GnuPG can send and receive keys to and from a keyserver. These
+# servers can be HKP, email, or LDAP (if GnuPG is built with LDAP
+# support).
+#
+# Example HKP keyserver:
+# hkp://keys.gnupg.net
+# hkp://subkeys.pgp.net
+#
+# Example email keyserver:
+# mailto:pgp-public-keys@keys.pgp.net
+#
+# Example LDAP keyservers:
+# ldap://keyserver.pgp.com
+#
+# Regular URL syntax applies, and you can set an alternate port
+# through the usual method:
+# hkp://keyserver.example.net:22742
+#
+# Most users just set the name and type of their preferred keyserver.
+# Note that most servers (with the notable exception of
+# ldap://keyserver.pgp.com) synchronize changes with each other. Note
+# also that a single server name may actually point to multiple
+# servers via DNS round-robin. hkp://keys.gnupg.net is an example of
+# such a "server", which spreads the load over a number of physical
+# servers. To see the IP address of the server actually used, you may use
+# the "--keyserver-options debug".
+#
+#keyserver hkp://qdigse2yzvuglcix.onion
+#keyserver hkp://2eghzlv2wwcq7u7y.onion
+#keyserver mailto:pgp-public-keys@keys.nl.pgp.net
+#keyserver ldap://keyserver.pgp.com
+
+# Common options for keyserver functions:
+#
+# include-disabled : when searching, include keys marked as "disabled"
+# on the keyserver (not all keyservers support this).
+#
+# no-include-revoked : when searching, do not include keys marked as
+# "revoked" on the keyserver.
+#
+# verbose : show more information as the keys are fetched.
+# Can be used more than once to increase the amount
+# of information shown.
+#
+# use-temp-files : use temporary files instead of a pipe to talk to the
+# keyserver. Some platforms (Win32 for one) always
+# have this on.
+#
+# keep-temp-files : do not delete temporary files after using them
+# (really only useful for debugging)
+#
+# http-proxy="proxy" : set the proxy to use for HTTP and HKP keyservers.
+# This overrides the "http_proxy" environment variable,
+# if any.
+#
+# auto-key-retrieve : automatically fetch keys as needed from the keyserver
+# when verifying signatures or when importing keys that
+# have been revoked by a revocation key that is not
+# present on the keyring.
+#
+# no-include-attributes : do not include attribute IDs (aka "photo IDs")
+# when sending keys to the keyserver.
+
+#keyserver-options auto-key-retrieve
+
+# Display photo user IDs in key listings
+
+# list-options show-photos
+
+# Display photo user IDs when a signature from a key with a photo is
+# verified
+
+# verify-options show-photos
+
+# Use this program to display photo user IDs
+#
+# %i is expanded to a temporary file that contains the photo.
+# %I is the same as %i, but the file isn't deleted afterwards by GnuPG.
+# %k is expanded to the key ID of the key.
+# %K is expanded to the long OpenPGP key ID of the key.
+# %t is expanded to the extension of the image (e.g. "jpg").
+# %T is expanded to the MIME type of the image (e.g. "image/jpeg").
+# %f is expanded to the fingerprint of the key.
+# %% is %, of course.
+#
+# If %i or %I are not present, then the photo is supplied to the
+# viewer on standard input. If your platform supports it, standard
+# input is the best way to do this as it avoids the time and effort in
+# generating and then cleaning up a secure temp file.
+#
+# If no photo-viewer is provided, GnuPG will look for xloadimage, eog,
+# or display (ImageMagick). On Mac OS X and Windows, the default is
+# to use your regular JPEG image viewer.
+#
+# Some other viewers:
+# photo-viewer "qiv %i"
+# photo-viewer "ee %i"
+#
+# This one saves a copy of the photo ID in your home directory:
+# photo-viewer "cat > ~/photoid-for-key-%k.%t"
+#
+# Use your MIME handler to view photos:
+# photo-viewer "metamail -q -d -b -c %T -s 'KeyID 0x%k' -f GnuPG"
+
+# Passphrase agent
+#
+# We support the old experimental passphrase agent protocol as well as
+# the new Assuan based one (currently available in the "newpg" package
+# at ftp.gnupg.org/gcrypt/alpha/aegypten/). To make use of the agent,
+# you have to run an agent as daemon and use the option
+#
+# For Ubuntu we now use-agent by default to support more automatic
+# use of GPG and S/MIME encryption by GUI programs. Depending on the
+# program, users may still have to manually decide to install gnupg-agent.
+
+#use-agent
+
+# which tries to use the agent but will fallback to the regular mode
+# if there is a problem connecting to the agent. The normal way to
+# locate the agent is by looking at the environment variable
+# GPG_AGENT_INFO which should have been set during gpg-agent startup.
+# In certain situations the use of this variable is not possible, thus
+# the option
+#
+# --gpg-agent-info=::1
+#
+# may be used to override it.
+
+# Automatic key location
+#
+# GnuPG can automatically locate and retrieve keys as needed using the
+# auto-key-locate option. This happens when encrypting to an email
+# address (in the "user@example.com" form), and there are no
+# user@example.com keys on the local keyring. This option takes the
+# following arguments, in the order they are to be tried:
+#
+# cert = locate a key using DNS CERT, as specified in RFC-4398.
+# GnuPG can handle both the PGP (key) and IPGP (URL + fingerprint)
+# CERT methods.
+#
+# pka = locate a key using DNS PKA.
+#
+# ldap = locate a key using the PGP Universal method of checking
+# "ldap://keys.(thedomain)". For example, encrypting to
+# user@example.com will check ldap://keys.example.com.
+#
+# keyserver = locate a key using whatever keyserver is defined using
+# the keyserver option.
+#
+# You may also list arbitrary keyservers here by URL.
+#
+# Try CERT, then PKA, then LDAP, then hkp://subkeys.net:
+#auto-key-locate cert pka ldap hkp://subkeys.pgp.net
+
+## Begin Anonymity Distribution /home/user/.gnupg/gpg.conf changes.
+
+#### meta start
+#### project Whonix
+#### category networking and apps
+#### description GnuPG gpg configuration
+#### meta end
+
+## source:
+## https://raw.github.com/ioerror/torbirdy/master/gpg.conf
+## https://github.com/ioerror/torbirdy/commit/e6d7c9e6e103f0b3289675d04ed3f92e92d8d7b3
+
+## Out commented proxy settings, because uwt wrapper keeps care of that.
+
+## gpg.conf optimized for privacy
+
+##################################################################
+## BEGIN some suggestions from TorBirdy setting extensions.enigmail.agentAdditionalParam
+
+## Don't disclose the version
+no-emit-version
+
+## Don't add additional comments (may leak language, etc)
+no-comments
+
+## We want to force UTF-8 everywhere
+display-charset utf-8
+
+## Proxy settings
+#keyserver-options http-proxy=socks5://TORIP:TORPORT
+
+## https://gist.github.com/rjhansen/67ab921ffb4084c865b3618d6955275f
+## https://dkg.fifthhorseman.net/blog/openpgp-certificate-flooding.html
+## https://forums.whonix.org/t/gpg-recv-keys-fails-no-longer-use-keyservers-for-anything/5607
+#keyserver hkps://keys.openpgp.org
+
+## END some suggestions from TorBirdy TorBirdy setting extensions.enigmail.agentAdditionalParam
+##################################################################
+
+##################################################################
+## BEGIN Some suggestions from Debian http://keyring.debian.org/creating-key.html
+
+personal-digest-preferences SHA512
+cert-digest-algo SHA512
+default-preference-list SHA512 SHA384 SHA256 SHA224 AES256 AES192 AES CAST5 ZLIB BZIP2 ZIP Uncompressed
+
+## END Some suggestions from Debian http://keyring.debian.org/creating-key.html
+##################################################################
+
+##################################################################
+## BEGIN Some suggestions added from riseup https://we.riseup.net/riseuplabs+paow/openpgp-best-practices
+
+## When creating a key, individuals may designate a specific keyserver to use to pull their keys from.
+## The above option will disregard this designation and use the pool, which is useful because (1) it
+## prevents someone from designating an insecure method for pulling their key and (2) if the server
+## designated uses hkps, the refresh will fail because the ca-cert will not match, so the keys will
+## never be refreshed.
+keyserver-options no-honor-keyserver-url
+
+## when outputting certificates, view user IDs distinctly from keys:
+fixed-list-mode
+
+## long keyids are more collision-resistant than short keyids (it's trivial to make a key with any desired short keyid)
+keyid-format 0xlong
+
+## when multiple digests are supported by all recipients, choose the strongest one:
+## already defined above
+#personal-digest-preferences SHA512 SHA384 SHA256 SHA224
+
+## preferences chosen for new keys should prioritize stronger algorithms:
+## already defined above
+#default-preference-list SHA512 SHA384 SHA256 SHA224 AES256 AES192 AES CAST5 BZIP2 ZLIB ZIP Uncompressed
+
+## If you use a graphical environment (and even if you don't) you should be using an agent:
+## (similar arguments as https://www.debian-administration.org/users/dkg/weblog/64)
+use-agent
+
+## You should always know at a glance which User IDs gpg thinks are legitimately bound to the keys in your keyring:
+verify-options show-uid-validity
+list-options show-uid-validity
+
+## include an unambiguous indicator of which key made a signature:
+## (see http://thread.gmane.org/gmane.mail.notmuch.general/3721/focus=7234)
+sig-notation issuer-fpr@notations.openpgp.fifthhorseman.net=%g
+
+## when making an OpenPGP certification, use a stronger digest than the default SHA1:
+## already defined above
+#cert-digest-algo SHA256
+
+## END Some suggestions added from riseup https://we.riseup.net/riseuplabs+paow/openpgp-best-practices
+##################################################################
+
+##################################################################
+## BEGIN Some suggestions from TorBirdy opt-in's
+
+## Up to you whether you in comment it (remove the single # in front of
+## it) or not. Disabled by default, because it causes too much complaints and
+## confusion.
+
+## Don't include keyids that may disclose the sender or any other non-obvious keyids
+#throw-keyids
+
+## END Some suggestions from TorBirdy opt-in's
+##################################################################
+
+## End of Anonymity Distribution /home/user/.gnupg/gpg.conf changes.
diff --git a/usr/share/lintian/overrides/security-misc b/usr/share/lintian/overrides/security-misc
index cb24c53d..f18194db 100644
--- a/usr/share/lintian/overrides/security-misc
+++ b/usr/share/lintian/overrides/security-misc
@@ -2,7 +2,7 @@
## See the file COPYING for copying conditions.
## The whole point of the package.
-security-misc: package-contains-file-in-etc-skel etc/skel/.config/*
+security-misc: package-contains-file-in-etc-skel etc/skel/*
## Wrapper script.
security-misc: binary-without-manpage usr/bin/pkexec.security-misc
From 350a15dfbf9186c4bd81159b7656b5707a95c5db Mon Sep 17 00:00:00 2001
From: Patrick Schleizer
Date: Mon, 6 Apr 2020 13:22:32 -0400
Subject: [PATCH 0023/1926] readme
---
README.md | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/README.md b/README.md
index 4cc9e4f8..70b3aec6 100644
--- a/README.md
+++ b/README.md
@@ -304,6 +304,10 @@ Application specific hardening:
* Enables punycode (`network.IDN_show_punycode`) by default in Thunderbird
to make phishing attacks more difficult. Fixing URL not showing real Domain
Name (Homograph attack).
+* Security and privacy enhancements for gnupg's config file
+`/etc/skel/.gnupg/gpg.conf`. See also:
+https://raw.github.com/ioerror/torbirdy/master/gpg.conf
+https://github.com/ioerror/torbirdy/pull/11
Want more? Look into these:
From cc8489df2ff655276be31073ec2fff57a9e8b448 Mon Sep 17 00:00:00 2001
From: Patrick Schleizer
Date: Mon, 6 Apr 2020 13:29:23 -0400
Subject: [PATCH 0024/1926] bumped changelog version
---
changelog.upstream | 18 ++++++++++++++++++
debian/changelog | 6 ++++++
2 files changed, 24 insertions(+)
diff --git a/changelog.upstream b/changelog.upstream
index 3848fe79..6138a6af 100644
--- a/changelog.upstream
+++ b/changelog.upstream
@@ -1,3 +1,21 @@
+commit 350a15dfbf9186c4bd81159b7656b5707a95c5db
+Author: Patrick Schleizer
+Date: Mon Apr 6 13:22:32 2020 -0400
+
+ readme
+
+commit 5c81e1f23fa07a0e3c96d15dc3cc24d41332fe3c
+Author: Patrick Schleizer
+Date: Mon Apr 6 09:25:45 2020 -0400
+
+ import from anon-gpg-conf
+
+commit 1b2a34ea80fa9efeb02acaa8595e3c38fd9d06ca
+Author: Patrick Schleizer
+Date: Sat Apr 4 16:51:42 2020 -0400
+
+ bumped changelog version
+
commit 1188a44f47602248911d81f4dc3af08b830b65b9
Author: Patrick Schleizer
Date: Sat Apr 4 16:49:30 2020 -0400
diff --git a/debian/changelog b/debian/changelog
index 88df55e6..9623dafe 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+security-misc (3:17.8-1) unstable; urgency=medium
+
+ * New upstream version (local package).
+
+ -- Patrick Schleizer Mon, 06 Apr 2020 17:29:23 +0000
+
security-misc (3:17.7-1) unstable; urgency=medium
* New upstream version (local package).
From 663811a8192d7d08769eaf5e9c057b9dcca34562 Mon Sep 17 00:00:00 2001
From: Patrick Schleizer
Date: Wed, 8 Apr 2020 12:04:13 +0000
Subject: [PATCH 0025/1926] anon-base-files -> dist-base-files
---
debian/control | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/debian/control b/debian/control
index 957443b7..0f1a300e 100644
--- a/debian/control
+++ b/debian/control
@@ -266,7 +266,7 @@ Description: enhances misc security settings
It is not clear that would be sane in such a package.
It is recommended to lock and expire the root account.
In new Whonix builds, root account will be locked by package
- anon-base-files.
+ dist-base-files.
https://www.whonix.org/wiki/Root
https://www.whonix.org/wiki/Dev/Permissions
https://forums.whonix.org/t/restrict-root-access/7658
From 0441f2ed7ad01585c11c9fb6a05cd3884408c9d6 Mon Sep 17 00:00:00 2001
From: Patrick Schleizer
Date: Wed, 8 Apr 2020 12:30:05 +0000
Subject: [PATCH 0026/1926] readme
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 70b3aec6..8433c813 100644
--- a/README.md
+++ b/README.md
@@ -249,7 +249,7 @@ This package does (not yet) automatically lock the root account password.
It is not clear that would be sane in such a package.
It is recommended to lock and expire the root account.
In new Whonix builds, root account will be locked by package
-anon-base-files.
+dist-base-files.
https://www.whonix.org/wiki/Root
https://www.whonix.org/wiki/Dev/Permissions
https://forums.whonix.org/t/restrict-root-access/7658
From bfd6018d8d108ee8691556529121fe2a679de1d2 Mon Sep 17 00:00:00 2001
From: Patrick Schleizer
Date: Wed, 8 Apr 2020 12:51:11 +0000
Subject: [PATCH 0027/1926] bumped changelog version
---
changelog.upstream | 18 ++++++++++++++++++
debian/changelog | 6 ++++++
2 files changed, 24 insertions(+)
diff --git a/changelog.upstream b/changelog.upstream
index 6138a6af..ac82da0c 100644
--- a/changelog.upstream
+++ b/changelog.upstream
@@ -1,3 +1,21 @@
+commit 0441f2ed7ad01585c11c9fb6a05cd3884408c9d6
+Author: Patrick Schleizer
+Date: Wed Apr 8 12:30:05 2020 +0000
+
+ readme
+
+commit 663811a8192d7d08769eaf5e9c057b9dcca34562
+Author: Patrick Schleizer
+Date: Wed Apr 8 12:04:13 2020 +0000
+
+ anon-base-files -> dist-base-files
+
+commit cc8489df2ff655276be31073ec2fff57a9e8b448
+Author: Patrick Schleizer
+Date: Mon Apr 6 13:29:23 2020 -0400
+
+ bumped changelog version
+
commit 350a15dfbf9186c4bd81159b7656b5707a95c5db
Author: Patrick Schleizer
Date: Mon Apr 6 13:22:32 2020 -0400
diff --git a/debian/changelog b/debian/changelog
index 9623dafe..bce4b3f1 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+security-misc (3:17.9-1) unstable; urgency=medium
+
+ * New upstream version (local package).
+
+ -- Patrick Schleizer Wed, 08 Apr 2020 12:51:11 +0000
+
security-misc (3:17.8-1) unstable; urgency=medium
* New upstream version (local package).
From 72228946dca93b5c8257ac5a6ad59e54b7b14d11 Mon Sep 17 00:00:00 2001
From: Patrick Schleizer
Date: Wed, 8 Apr 2020 16:46:11 +0000
Subject: [PATCH 0028/1926] fix etc/default/grub.d/40_kernel_hardening.cfg
in Qubes if no kernel package is installed
---
etc/default/grub.d/40_kernel_hardening.cfg | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/etc/default/grub.d/40_kernel_hardening.cfg b/etc/default/grub.d/40_kernel_hardening.cfg
index f8d42894..346ea88e 100644
--- a/etc/default/grub.d/40_kernel_hardening.cfg
+++ b/etc/default/grub.d/40_kernel_hardening.cfg
@@ -1,8 +1,8 @@
## Copyright (C) 2019 - 2020 ENCRYPTED SUPPORT LP
## See the file COPYING for copying conditions.
-kpkg="linux-image-$(dpkg --print-architecture)"
-kver="$(dpkg-query --show --showformat='${Version}' "$kpkg")"
+kpkg="linux-image-$(dpkg --print-architecture)" || true
+kver="$(dpkg-query --show --showformat='${Version}' "$kpkg")" 2>/dev/null || true
#echo "## kver: $kver"
## Disables the merging of slabs of similar sizes.
From 4153d8d08874256647d3200333d6754baac2ea63 Mon Sep 17 00:00:00 2001
From: Patrick Schleizer
Date: Wed, 8 Apr 2020 16:51:22 +0000
Subject: [PATCH 0029/1926] apparmor-profile-anondist -> apparmor-profile-dist
---
debian/control | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/debian/control b/debian/control
index 0f1a300e..d504b72f 100644
--- a/debian/control
+++ b/debian/control
@@ -14,7 +14,7 @@ Standards-Version: 4.3.0
Package: security-misc
Architecture: all
Depends: python, libglib2.0-bin, libpam-runtime, sudo, adduser, libcap2-bin,
- apparmor-profile-anondist, helper-scripts, ${misc:Depends}
+ apparmor-profile-dist, helper-scripts, ${misc:Depends}
Replaces: tcp-timestamps-disable, anon-gpg-tweaks
Description: enhances misc security settings
Inspired by Kernel Self Protection Project (KSPP)
From a9d0baffe600b9ac5bb7d6ee4e7c5c5830bc60ba Mon Sep 17 00:00:00 2001
From: Patrick Schleizer
Date: Wed, 8 Apr 2020 16:57:32 +0000
Subject: [PATCH 0030/1926] python -> python3
---
debian/control | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/debian/control b/debian/control
index d504b72f..d5b9b0d5 100644
--- a/debian/control
+++ b/debian/control
@@ -13,7 +13,7 @@ Standards-Version: 4.3.0
Package: security-misc
Architecture: all
-Depends: python, libglib2.0-bin, libpam-runtime, sudo, adduser, libcap2-bin,
+Depends: python3, libglib2.0-bin, libpam-runtime, sudo, adduser, libcap2-bin,
apparmor-profile-dist, helper-scripts, ${misc:Depends}
Replaces: tcp-timestamps-disable, anon-gpg-tweaks
Description: enhances misc security settings
From 642d4d8d939f33c19564dcc5a0ed46d85feb80aa Mon Sep 17 00:00:00 2001
From: Patrick Schleizer
Date: Wed, 8 Apr 2020 17:13:21 +0000
Subject: [PATCH 0031/1926] bumped changelog version
---
changelog.upstream | 26 ++++++++++++++++++++++++++
debian/changelog | 6 ++++++
2 files changed, 32 insertions(+)
diff --git a/changelog.upstream b/changelog.upstream
index ac82da0c..7b7bb7f1 100644
--- a/changelog.upstream
+++ b/changelog.upstream
@@ -1,3 +1,29 @@
+commit a9d0baffe600b9ac5bb7d6ee4e7c5c5830bc60ba
+Author: Patrick Schleizer
+Date: Wed Apr 8 16:57:32 2020 +0000
+
+ python -> python3
+
+commit 4153d8d08874256647d3200333d6754baac2ea63
+Author: Patrick Schleizer
+Date: Wed Apr 8 16:51:22 2020 +0000
+
+ apparmor-profile-anondist -> apparmor-profile-dist
+
+commit 72228946dca93b5c8257ac5a6ad59e54b7b14d11
+Author: Patrick Schleizer
+Date: Wed Apr 8 16:46:11 2020 +0000
+
+ fix etc/default/grub.d/40_kernel_hardening.cfg
+
+ in Qubes if no kernel package is installed
+
+commit bfd6018d8d108ee8691556529121fe2a679de1d2
+Author: Patrick Schleizer
+Date: Wed Apr 8 12:51:11 2020 +0000
+
+ bumped changelog version
+
commit 0441f2ed7ad01585c11c9fb6a05cd3884408c9d6
Author: Patrick Schleizer
Date: Wed Apr 8 12:30:05 2020 +0000
diff --git a/debian/changelog b/debian/changelog
index bce4b3f1..f12e3b61 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+security-misc (3:18.0-1) unstable; urgency=medium
+
+ * New upstream version (local package).
+
+ -- Patrick Schleizer Wed, 08 Apr 2020 17:13:21 +0000
+
security-misc (3:17.9-1) unstable; urgency=medium
* New upstream version (local package).
From 565ff136e5f1e714b4094fcd9cfdf99a0fb99850 Mon Sep 17 00:00:00 2001
From: Patrick Schleizer
Date: Wed, 8 Apr 2020 21:04:02 +0000
Subject: [PATCH 0032/1926] vm.swappiness=1
import from swappiness-lowest
https://forums.whonix.org/t/vm-swappiness-1-set-swapiness-to-lowest-setting-still-useful-swappiness-lowest/9278
---
debian/control | 5 ++++-
etc/sysctl.d/30_security-misc.conf | 7 +++++++
2 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/debian/control b/debian/control
index d5b9b0d5..bd82bae8 100644
--- a/debian/control
+++ b/debian/control
@@ -15,7 +15,7 @@ Package: security-misc
Architecture: all
Depends: python3, libglib2.0-bin, libpam-runtime, sudo, adduser, libcap2-bin,
apparmor-profile-dist, helper-scripts, ${misc:Depends}
-Replaces: tcp-timestamps-disable, anon-gpg-tweaks
+Replaces: tcp-timestamps-disable, anon-gpg-tweaks, swappiness-lowest
Description: enhances misc security settings
Inspired by Kernel Self Protection Project (KSPP)
.
@@ -280,6 +280,9 @@ Description: enhances misc security settings
`/etc/systemd/system/emergency.service.d/override.conf`
`/etc/systemd/system/rescue.service.d/override.conf`
.
+ Let the kernel only swap if it is absolutely necessary.
+ `/etc/sysctl.d/30_security-misc.conf`
+ .
Disables TCP Time Stamps:
.
TCP time stamps (RFC 1323) allow for tracking clock
diff --git a/etc/sysctl.d/30_security-misc.conf b/etc/sysctl.d/30_security-misc.conf
index 0fed8d06..1ebd116c 100644
--- a/etc/sysctl.d/30_security-misc.conf
+++ b/etc/sysctl.d/30_security-misc.conf
@@ -139,3 +139,10 @@ dev.tty.ldisc_autoload=0
##
## https://duasynt.com/blog/linux-kernel-heap-spray
vm.unprivileged_userfaultfd=0
+
+## Let the kernel only swap if it is absolutely necessary.
+## Better not be set to zero:
+## - https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Performance_Tuning_Guide/s-memory-tunables.html
+## - https://en.wikipedia.org/wiki/Swappiness
+vm.swappiness=1
+
From 67b9d06b25a651b89e35abdd227a1740871395cd Mon Sep 17 00:00:00 2001
From: Patrick Schleizer
Date: Thu, 9 Apr 2020 09:45:29 +0000
Subject: [PATCH 0033/1926] readme
---
README.md | 3 +++
1 file changed, 3 insertions(+)
diff --git a/README.md b/README.md
index 8433c813..b9ca0098 100644
--- a/README.md
+++ b/README.md
@@ -263,6 +263,9 @@ protection, grub password protection and/or full disk encryption.
`/etc/systemd/system/emergency.service.d/override.conf`
`/etc/systemd/system/rescue.service.d/override.conf`
+Let the kernel only swap if it is absolutely necessary.
+`/etc/sysctl.d/30_security-misc.conf`
+
Disables TCP Time Stamps:
TCP time stamps (RFC 1323) allow for tracking clock
From 695ad5b83d0e89b1c3b8a5f09f2d7d0a17d8e72f Mon Sep 17 00:00:00 2001
From: Patrick Schleizer
Date: Thu, 9 Apr 2020 09:45:30 +0000
Subject: [PATCH 0034/1926] bumped changelog version
---
changelog.upstream | 22 ++++++++++++++++++++++
debian/changelog | 6 ++++++
2 files changed, 28 insertions(+)
diff --git a/changelog.upstream b/changelog.upstream
index 7b7bb7f1..a1e1a0eb 100644
--- a/changelog.upstream
+++ b/changelog.upstream
@@ -1,3 +1,25 @@
+commit 67b9d06b25a651b89e35abdd227a1740871395cd
+Author: Patrick Schleizer
+Date: Thu Apr 9 09:45:29 2020 +0000
+
+ readme
+
+commit 565ff136e5f1e714b4094fcd9cfdf99a0fb99850
+Author: Patrick Schleizer
+Date: Wed Apr 8 21:04:02 2020 +0000
+
+ vm.swappiness=1
+
+ import from swappiness-lowest
+
+ https://forums.whonix.org/t/vm-swappiness-1-set-swapiness-to-lowest-setting-still-useful-swappiness-lowest/9278
+
+commit 642d4d8d939f33c19564dcc5a0ed46d85feb80aa
+Author: Patrick Schleizer
+Date: Wed Apr 8 17:13:21 2020 +0000
+
+ bumped changelog version
+
commit a9d0baffe600b9ac5bb7d6ee4e7c5c5830bc60ba
Author: Patrick Schleizer
Date: Wed Apr 8 16:57:32 2020 +0000
diff --git a/debian/changelog b/debian/changelog
index f12e3b61..f633d3ae 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+security-misc (3:18.1-1) unstable; urgency=medium
+
+ * New upstream version (local package).
+
+ -- Patrick Schleizer Thu, 09 Apr 2020 09:45:30 +0000
+
security-misc (3:18.0-1) unstable; urgency=medium
* New upstream version (local package).
From 938e929f39ff68296ab01a4b619f963ad3bdf535 Mon Sep 17 00:00:00 2001
From: Patrick Schleizer
Date: Sun, 12 Apr 2020 16:37:51 -0400
Subject: [PATCH 0035/1926] add pkexec to suid default whitelist
/usr/bin/pkexec exactwhitelist
/usr/bin/pkexec.security-misc-orig exactwhitelist
---
etc/permission-hardening.d/30_default.conf | 3 +++
1 file changed, 3 insertions(+)
diff --git a/etc/permission-hardening.d/30_default.conf b/etc/permission-hardening.d/30_default.conf
index 302603bf..a4547d04 100644
--- a/etc/permission-hardening.d/30_default.conf
+++ b/etc/permission-hardening.d/30_default.conf
@@ -41,6 +41,9 @@
/usr/lib/spice-gtk/spice-client-glib-usb-acl-helper exactwhitelist
/usr/lib/chromium/chrome-sandbox exactwhitelist
+/usr/bin/pkexec exactwhitelist
+/usr/bin/pkexec.security-misc-orig exactwhitelist
+
## https://forums.whonix.org/t/disable-suid-binaries/7706/61
## Protect from 'chmod -x' (and SUID removal).
## SUID will be removed below in separate step.
From 72be31e870057b035651c1b5a7e9a9db149e9d25 Mon Sep 17 00:00:00 2001
From: Patrick Schleizer
Date: Sun, 12 Apr 2020 16:48:13 -0400
Subject: [PATCH 0036/1926] disable proc-hidepid by default because
incompatible with pkexec
and undo pkexec wrapper
---
debian/control | 5 +++--
debian/security-misc.displace | 1 -
debian/security-misc.undisplace | 1 +
lib/systemd/system-preset/50-security-misc.preset | 3 +++
4 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/debian/control b/debian/control
index bd82bae8..0d6871a6 100644
--- a/debian/control
+++ b/debian/control
@@ -175,8 +175,9 @@ Description: enhances misc security settings
`/lib/systemd/system/remount-secure.service`
`/usr/lib/security-misc/remount-secure`
.
- * A systemd service mounts `/proc` with `hidepid=2` at boot to prevent users
- from seeing each other's processes.
+ * An optional systemd service mounts `/proc` with `hidepid=2` at boot to
+ prevent users from seeing each other's processes. Not enabled because not
+ compatible with pkexec.
.
* The kernel logs are restricted to root only.
.
diff --git a/debian/security-misc.displace b/debian/security-misc.displace
index afc59575..52bb2617 100644
--- a/debian/security-misc.displace
+++ b/debian/security-misc.displace
@@ -1,5 +1,4 @@
## Copyright (C) 2019 - 2020 ENCRYPTED SUPPORT LP
## See the file COPYING for copying conditions.
-/usr/bin/pkexec.security-misc
/etc/securetty.security-misc
diff --git a/debian/security-misc.undisplace b/debian/security-misc.undisplace
index 55fd1f16..3c56ba43 100644
--- a/debian/security-misc.undisplace
+++ b/debian/security-misc.undisplace
@@ -2,3 +2,4 @@
## See the file COPYING for copying conditions.
/etc/login.defs.security-misc
+/usr/bin/pkexec.security-misc
diff --git a/lib/systemd/system-preset/50-security-misc.preset b/lib/systemd/system-preset/50-security-misc.preset
index a9047d69..f534279a 100644
--- a/lib/systemd/system-preset/50-security-misc.preset
+++ b/lib/systemd/system-preset/50-security-misc.preset
@@ -9,3 +9,6 @@ disable permission-hardening.service
## Disable for now until development finished / tested.
disable remount-secure.service
+
+## Disable due to pkexec issues.
+proc-hidepid.service
From 442931529121e9e402e7ac56e27df3dcec43167b Mon Sep 17 00:00:00 2001
From: Patrick Schleizer
Date: Sun, 12 Apr 2020 16:52:55 -0400
Subject: [PATCH 0037/1926] disable proc-hidepid by default because
incompatible with pkexec
and undo pkexec wrapper
---
etc/sudoers.d/pkexec-security-misc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/etc/sudoers.d/pkexec-security-misc b/etc/sudoers.d/pkexec-security-misc
index c62c6227..2e089be1 100644
--- a/etc/sudoers.d/pkexec-security-misc
+++ b/etc/sudoers.d/pkexec-security-misc
@@ -2,10 +2,10 @@
## See the file COPYING for copying conditions.
## REVIEW: is it ok that users can find out the PATH setting of root?
-%sudo ALL=NOPASSWD: /usr/lib/security-misc/echo-path
+#%sudo ALL=NOPASSWD: /usr/lib/security-misc/echo-path
## xfpm-power-backlight-helper demands environment variable PKEXEC_UID to be
## set. Would otherwise error out with the following error message:
## "This program must only be run through pkexec"
## REVIEW: Can bad things be done by spoofing PKEXEC_UID?
-Defaults:ALL env_keep += "PKEXEC_UID"
+#Defaults:ALL env_keep += "PKEXEC_UID"
From b3ce18f0f9f1da0552a4a1bd882a5b5dda13626e Mon Sep 17 00:00:00 2001
From: Patrick Schleizer
Date: Sun, 12 Apr 2020 16:54:10 -0400
Subject: [PATCH 0038/1926] disable proc-hidepid by default because
incompatible with pkexec
and undo pkexec wrapper
---
etc/sudoers.d/xfce-security-misc | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/etc/sudoers.d/xfce-security-misc b/etc/sudoers.d/xfce-security-misc
index 1880152d..bd0ae80d 100644
--- a/etc/sudoers.d/xfce-security-misc
+++ b/etc/sudoers.d/xfce-security-misc
@@ -6,13 +6,13 @@
## Feel free to out comment this if you are not using xfce4-power-manager or XFCE.
-%sudo ALL=NOPASSWD: /usr/sbin/xfpm-power-backlight-helper --set-brightness [[\:digit\:]]
-%sudo ALL=NOPASSWD: /usr/sbin/xfpm-power-backlight-helper --set-brightness [[\:digit\:]][[\:digit\:]]
-%sudo ALL=NOPASSWD: /usr/sbin/xfpm-power-backlight-helper --set-brightness [[\:digit\:]][[\:digit\:]][[\:digit\:]]
+#%sudo ALL=NOPASSWD: /usr/sbin/xfpm-power-backlight-helper --set-brightness [[\:digit\:]]
+#%sudo ALL=NOPASSWD: /usr/sbin/xfpm-power-backlight-helper --set-brightness [[\:digit\:]][[\:digit\:]]
+#%sudo ALL=NOPASSWD: /usr/sbin/xfpm-power-backlight-helper --set-brightness [[\:digit\:]][[\:digit\:]][[\:digit\:]]
-%sudo ALL=NOPASSWD: /usr/sbin/xfpm-power-backlight-helper --set-brightness-switch [[\:digit\:]]
-%sudo ALL=NOPASSWD: /usr/sbin/xfpm-power-backlight-helper --set-brightness-switch [[\:digit\:]][[\:digit\:]]
-%sudo ALL=NOPASSWD: /usr/sbin/xfpm-power-backlight-helper --set-brightness-switch [[\:digit\:]][[\:digit\:]][[\:digit\:]]
+#%sudo ALL=NOPASSWD: /usr/sbin/xfpm-power-backlight-helper --set-brightness-switch [[\:digit\:]]
+#%sudo ALL=NOPASSWD: /usr/sbin/xfpm-power-backlight-helper --set-brightness-switch [[\:digit\:]][[\:digit\:]]
+#%sudo ALL=NOPASSWD: /usr/sbin/xfpm-power-backlight-helper --set-brightness-switch [[\:digit\:]][[\:digit\:]][[\:digit\:]]
## XXX: Should we allow this?
#%sudo ALL=NOPASSWD: /usr/sbin/xfce4-pm-helper --suspend
From 253578afdf9a4aeb8c5495ca815d0326086dc986 Mon Sep 17 00:00:00 2001
From: Patrick Schleizer
Date: Mon, 13 Apr 2020 06:50:32 -0400
Subject: [PATCH 0039/1926] /etc/security/access-security-misc.conf white list
ttyS0 etc.
ttyS0 ttyS1 ttyS2 ttyS3 ttyS4 ttyS5 ttyS6 ttyS7 ttyS8 ttyS9
Thanks to @subpar_marlin for the bug report and helping to fix this!
https://forums.whonix.org/t/how-do-i-enter-the-whonix-shell-from-cli/7271/43
https://forums.whonix.org/t/etc-security-hardening/8592
---
etc/security/access-security-misc.conf | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/etc/security/access-security-misc.conf b/etc/security/access-security-misc.conf
index b0e9974b..bcbdba36 100644
--- a/etc/security/access-security-misc.conf
+++ b/etc/security/access-security-misc.conf
@@ -24,11 +24,14 @@
## - 'tty1' to 'tty7'
## - 'pts/0' to 'pts/9'
## - 'hvc0' to 'hvc9'
-+:console:console tty1 tty2 tty3 tty4 tty5 tty6 tty7 pts/0 pts/1 pts/2 pts/3 pts/4 pts/5 pts/6 pts/7 pts/8 pts/9 hvc0 hvc1 hvc2 hvc3 hvc4 hvc5 hvc6 hvc7 hvc8 hvc9
+## serial console
+## https://forums.whonix.org/t/how-do-i-enter-the-whonix-shell-from-cli/7271/43
+## - 'ttyS0' to 'ttyS9'
++:console:console tty1 tty2 tty3 tty4 tty5 tty6 tty7 pts/0 pts/1 pts/2 pts/3 pts/4 pts/5 pts/6 pts/7 pts/8 pts/9 hvc0 hvc1 hvc2 hvc3 hvc4 hvc5 hvc6 hvc7 hvc8 hvc9 ttyS0 ttyS1 ttyS2 ttyS3 ttyS4 ttyS5 ttyS6 ttyS7 ttyS8 ttyS9
## Same as above also for members of group `sudo`.
## https://github.com/Whonix/security-misc/pull/74#issuecomment-607748407
-+:sudo:console tty1 tty2 tty3 tty4 tty5 tty6 tty7 pts/0 pts/1 pts/2 pts/3 pts/4 pts/5 pts/6 pts/7 pts/8 pts/9 hvc0 hvc1 hvc2 hvc3 hvc4 hvc5 hvc6 hvc7 hvc8 hvc9
++:sudo:console tty1 tty2 tty3 tty4 tty5 tty6 tty7 pts/0 pts/1 pts/2 pts/3 pts/4 pts/5 pts/6 pts/7 pts/8 pts/9 hvc0 hvc1 hvc2 hvc3 hvc4 hvc5 hvc6 hvc7 hvc8 hvc9 ttyS0 ttyS1 ttyS2 ttyS3 ttyS4 ttyS5 ttyS6 ttyS7 ttyS8 ttyS9
## Everyone else except members of group 'console-unrestricted'
## are restricted from everything else.
From e0b8640fb9d03feb6b01fed4469d901e3f9a5dc0 Mon Sep 17 00:00:00 2001
From: Patrick Schleizer
Date: Mon, 13 Apr 2020 06:56:34 -0400
Subject: [PATCH 0040/1926] readme
---
README.md | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
index b9ca0098..582e4459 100644
--- a/README.md
+++ b/README.md
@@ -158,8 +158,9 @@ Alternatively file `/usr/local/etc/remount-disable` or file
`/lib/systemd/system/remount-secure.service`
`/usr/lib/security-misc/remount-secure`
-* A systemd service mounts `/proc` with `hidepid=2` at boot to prevent users
-from seeing each other's processes.
+* An optional systemd service mounts `/proc` with `hidepid=2` at boot to
+prevent users from seeing each other's processes. Not enabled because not
+compatible with pkexec.
* The kernel logs are restricted to root only.
From b6dde34bfb696218cc14ac89d169ec0e37814bff Mon Sep 17 00:00:00 2001
From: Patrick Schleizer
Date: Mon, 13 Apr 2020 06:56:34 -0400
Subject: [PATCH 0041/1926] bumped changelog version
---
changelog.upstream | 59 ++++++++++++++++++++++++++++++++++++++++++++++
debian/changelog | 6 +++++
2 files changed, 65 insertions(+)
diff --git a/changelog.upstream b/changelog.upstream
index a1e1a0eb..6bf4086b 100644
--- a/changelog.upstream
+++ b/changelog.upstream
@@ -1,3 +1,62 @@
+commit e0b8640fb9d03feb6b01fed4469d901e3f9a5dc0
+Author: Patrick Schleizer
+Date: Mon Apr 13 06:56:34 2020 -0400
+
+ readme
+
+commit 253578afdf9a4aeb8c5495ca815d0326086dc986
+Author: Patrick Schleizer
+Date: Mon Apr 13 06:50:32 2020 -0400
+
+ /etc/security/access-security-misc.conf white list ttyS0 etc.
+
+ ttyS0 ttyS1 ttyS2 ttyS3 ttyS4 ttyS5 ttyS6 ttyS7 ttyS8 ttyS9
+
+ Thanks to @subpar_marlin for the bug report and helping to fix this!
+
+ https://forums.whonix.org/t/how-do-i-enter-the-whonix-shell-from-cli/7271/43
+
+ https://forums.whonix.org/t/etc-security-hardening/8592
+
+commit b3ce18f0f9f1da0552a4a1bd882a5b5dda13626e
+Author: Patrick Schleizer
+Date: Sun Apr 12 16:54:10 2020 -0400
+
+ disable proc-hidepid by default because incompatible with pkexec
+
+ and undo pkexec wrapper
+
+commit 442931529121e9e402e7ac56e27df3dcec43167b
+Author: Patrick Schleizer
+Date: Sun Apr 12 16:52:55 2020 -0400
+
+ disable proc-hidepid by default because incompatible with pkexec
+
+ and undo pkexec wrapper
+
+commit 72be31e870057b035651c1b5a7e9a9db149e9d25
+Author: Patrick Schleizer
+Date: Sun Apr 12 16:48:13 2020 -0400
+
+ disable proc-hidepid by default because incompatible with pkexec
+
+ and undo pkexec wrapper
+
+commit 938e929f39ff68296ab01a4b619f963ad3bdf535
+Author: Patrick Schleizer
+Date: Sun Apr 12 16:37:51 2020 -0400
+
+ add pkexec to suid default whitelist
+
+ /usr/bin/pkexec exactwhitelist
+ /usr/bin/pkexec.security-misc-orig exactwhitelist
+
+commit 695ad5b83d0e89b1c3b8a5f09f2d7d0a17d8e72f
+Author: Patrick Schleizer
+Date: Thu Apr 9 09:45:30 2020 +0000
+
+ bumped changelog version
+
commit 67b9d06b25a651b89e35abdd227a1740871395cd
Author: Patrick Schleizer
Date: Thu Apr 9 09:45:29 2020 +0000
diff --git a/debian/changelog b/debian/changelog
index f633d3ae..08f943e8 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+security-misc (3:18.2-1) unstable; urgency=medium
+
+ * New upstream version (local package).
+
+ -- Patrick Schleizer Mon, 13 Apr 2020 10:56:34 +0000
+
security-misc (3:18.1-1) unstable; urgency=medium
* New upstream version (local package).
From 8851c9ed29e79d2ef5df9c7b7086878e69b90bd4 Mon Sep 17 00:00:00 2001
From: Patrick Schleizer
Date: Tue, 14 Apr 2020 12:39:34 -0400
Subject: [PATCH 0042/1926] fix: disable proc-hidepid.service
---
lib/systemd/system-preset/50-security-misc.preset | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/systemd/system-preset/50-security-misc.preset b/lib/systemd/system-preset/50-security-misc.preset
index f534279a..544ba5af 100644
--- a/lib/systemd/system-preset/50-security-misc.preset
+++ b/lib/systemd/system-preset/50-security-misc.preset
@@ -11,4 +11,4 @@ disable permission-hardening.service
disable remount-secure.service
## Disable due to pkexec issues.
-proc-hidepid.service
+disable proc-hidepid.service
From df218ad6582ab88be16e66cf13951d0a5271411b Mon Sep 17 00:00:00 2001
From: Patrick Schleizer
Date: Tue, 14 Apr 2020 12:40:31 -0400
Subject: [PATCH 0043/1926] bumped changelog version
---
changelog.upstream | 12 ++++++++++++
debian/changelog | 6 ++++++
2 files changed, 18 insertions(+)
diff --git a/changelog.upstream b/changelog.upstream
index 6bf4086b..ef1599fa 100644
--- a/changelog.upstream
+++ b/changelog.upstream
@@ -1,3 +1,15 @@
+commit 8851c9ed29e79d2ef5df9c7b7086878e69b90bd4
+Author: Patrick Schleizer
+Date: Tue Apr 14 12:39:34 2020 -0400
+
+ fix: disable proc-hidepid.service
+
+commit b6dde34bfb696218cc14ac89d169ec0e37814bff
+Author: Patrick Schleizer
+Date: Mon Apr 13 06:56:34 2020 -0400
+
+ bumped changelog version
+
commit e0b8640fb9d03feb6b01fed4469d901e3f9a5dc0
Author: Patrick Schleizer
Date: Mon Apr 13 06:56:34 2020 -0400
diff --git a/debian/changelog b/debian/changelog
index 08f943e8..36aed5f5 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+security-misc (3:18.3-1) unstable; urgency=medium
+
+ * New upstream version (local package).
+
+ -- Patrick Schleizer Tue, 14 Apr 2020 16:40:31 +0000
+
security-misc (3:18.2-1) unstable; urgency=medium
* New upstream version (local package).
From cb51847085c1b62c99ab160373c52a388bdfe300 Mon Sep 17 00:00:00 2001
From: Patrick Schleizer
Date: Wed, 15 Apr 2020 14:05:37 -0400
Subject: [PATCH 0044/1926] readme
---
README.md | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 582e4459..e10ab062 100644
--- a/README.md
+++ b/README.md
@@ -374,7 +374,10 @@ Can be build using standard Debian package build tools such as:
dpkg-buildpackage -b
```
-See [instructions](https://www.whonix.org/wiki/Dev/Build_Documentation/security-misc). (Replace `package-name` with the actual name of this package.)
+See instructions. (Replace `generic-package` with the actual name of this package `security-misc`.)
+
+* **A)** [easy](https://www.whonix.org/wiki/Dev/Build_Documentation/generic-package/easy), _OR_
+* **B)** [including verifying software signatures](https://www.whonix.org/wiki/Dev/Build_Documentation/generic-package)
## Contact ##
From 701da5f6cc911e3946904c152078dc6c637e5070 Mon Sep 17 00:00:00 2001
From: Patrick Schleizer
Date: Thu, 16 Apr 2020 07:24:44 -0400
Subject: [PATCH 0045/1926] formatting
---
etc/initramfs-tools/scripts/init-bottom/sysctl-initramfs | 3 +++
1 file changed, 3 insertions(+)
diff --git a/etc/initramfs-tools/scripts/init-bottom/sysctl-initramfs b/etc/initramfs-tools/scripts/init-bottom/sysctl-initramfs
index 9a0b5210..1de700d3 100755
--- a/etc/initramfs-tools/scripts/init-bottom/sysctl-initramfs
+++ b/etc/initramfs-tools/scripts/init-bottom/sysctl-initramfs
@@ -20,11 +20,14 @@ if mount | grep "${rootmnt}" | grep -q "(ro,"; then
remount="yes"
mount -o remount,rw "${rootmnt}"
fi
+
sysctl -p ${rootmnt}/etc/sysctl.conf >/dev/null 2> "${rootmnt}/var/log/sysctl-initramfs-error.log"
sysctl -p ${rootmnt}/etc/sysctl.d/*.conf >/dev/null 2>> "${rootmnt}/var/log/sysctl-initramfs-error.log"
+
if [ "${remount}" = "yes" ]; then
mount -o remount,ro "${rootmnt}"
fi
+
grep -v "unprivileged_userfaultfd" "${rootmnt}/var/log/sysctl-initramfs-error.log"
true
From 4898a9e753e9399e83e4a39d8fa340e1ad9d4f6d Mon Sep 17 00:00:00 2001
From: Patrick Schleizer
Date: Thu, 16 Apr 2020 07:54:33 -0400
Subject: [PATCH 0046/1926] fix, sysctl-initramfs: switch log to
/run/initramfs/sysctl-initramfs-error.log
since ephemeral, in RAM, not written to disk, no conflict with grub-live
https://forums.whonix.org/t/kernel-hardening/7296/435
---
.../scripts/init-bottom/sysctl-initramfs | 17 +++++------------
1 file changed, 5 insertions(+), 12 deletions(-)
diff --git a/etc/initramfs-tools/scripts/init-bottom/sysctl-initramfs b/etc/initramfs-tools/scripts/init-bottom/sysctl-initramfs
index 1de700d3..58558fdb 100755
--- a/etc/initramfs-tools/scripts/init-bottom/sysctl-initramfs
+++ b/etc/initramfs-tools/scripts/init-bottom/sysctl-initramfs
@@ -15,19 +15,12 @@ prereqs)
;;
esac
-## ${rootmnt} is mounted read-only in the initramfs so it needs to be remounted first.
-if mount | grep "${rootmnt}" | grep -q "(ro,"; then
- remount="yes"
- mount -o remount,rw "${rootmnt}"
-fi
+## Write to '/run/initramfs' folder.
+## https://forums.whonix.org/t/kernel-hardening/7296/435
-sysctl -p ${rootmnt}/etc/sysctl.conf >/dev/null 2> "${rootmnt}/var/log/sysctl-initramfs-error.log"
-sysctl -p ${rootmnt}/etc/sysctl.d/*.conf >/dev/null 2>> "${rootmnt}/var/log/sysctl-initramfs-error.log"
+sysctl -p ${rootmnt}/etc/sysctl.conf >/dev/null 2> "/run/initramfs/sysctl-initramfs-error.log"
+sysctl -p ${rootmnt}/etc/sysctl.d/*.conf >/dev/null 2>> "/run/initramfs/sysctl-initramfs-error.log"
-if [ "${remount}" = "yes" ]; then
- mount -o remount,ro "${rootmnt}"
-fi
-
-grep -v "unprivileged_userfaultfd" "${rootmnt}/var/log/sysctl-initramfs-error.log"
+grep -v "unprivileged_userfaultfd" "/run/initramfs/sysctl-initramfs-error.log"
true
From 8d2e4b68dcae87b27f519196488e0ed7e8b95ef2 Mon Sep 17 00:00:00 2001
From: Patrick Schleizer
Date: Thu, 16 Apr 2020 08:00:31 -0400
Subject: [PATCH 0047/1926] Prevent kernel info leaks in console during boot.
By setting `kernel.printk = 3 3 3 3`.
https://phabricator.whonix.org/T950
Thanks to @madaidan for the suggestion!
---
etc/sysctl.d/30_security-misc.conf | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/etc/sysctl.d/30_security-misc.conf b/etc/sysctl.d/30_security-misc.conf
index 1ebd116c..d66566fb 100644
--- a/etc/sysctl.d/30_security-misc.conf
+++ b/etc/sysctl.d/30_security-misc.conf
@@ -8,6 +8,10 @@ kernel.core_pattern=|/bin/false
## Restricts the kernel log to root only.
kernel.dmesg_restrict=1
+## Prevent kernel info leaks in console during boot.
+## https://phabricator.whonix.org/T950
+kernel.printk = 3 3 3 3
+
## Don't allow writes to files that we don't own
## in world writable sticky directories, unless
## they are owned by the owner of the directory.
From aa5631b02b0127b4681ae08c973b08b23befd701 Mon Sep 17 00:00:00 2001
From: Patrick Schleizer
Date: Thu, 16 Apr 2020 08:43:40 -0400
Subject: [PATCH 0048/1926] bumped changelog version
---
changelog.upstream | 40 ++++++++++++++++++++++++++++++++++++++++
debian/changelog | 6 ++++++
2 files changed, 46 insertions(+)
diff --git a/changelog.upstream b/changelog.upstream
index ef1599fa..70b5a14b 100644
--- a/changelog.upstream
+++ b/changelog.upstream
@@ -1,3 +1,43 @@
+commit 8d2e4b68dcae87b27f519196488e0ed7e8b95ef2
+Author: Patrick Schleizer
+Date: Thu Apr 16 08:00:31 2020 -0400
+
+ Prevent kernel info leaks in console during boot.
+
+ By setting `kernel.printk = 3 3 3 3`.
+
+ https://phabricator.whonix.org/T950
+
+ Thanks to @madaidan for the suggestion!
+
+commit 4898a9e753e9399e83e4a39d8fa340e1ad9d4f6d
+Author: Patrick Schleizer
+Date: Thu Apr 16 07:54:33 2020 -0400
+
+ fix, sysctl-initramfs: switch log to /run/initramfs/sysctl-initramfs-error.log
+
+ since ephemeral, in RAM, not written to disk, no conflict with grub-live
+
+ https://forums.whonix.org/t/kernel-hardening/7296/435
+
+commit 701da5f6cc911e3946904c152078dc6c637e5070
+Author: Patrick Schleizer
+Date: Thu Apr 16 07:24:44 2020 -0400
+
+ formatting
+
+commit cb51847085c1b62c99ab160373c52a388bdfe300
+Author: Patrick Schleizer
+Date: Wed Apr 15 14:05:37 2020 -0400
+
+ readme
+
+commit df218ad6582ab88be16e66cf13951d0a5271411b
+Author: Patrick Schleizer
+Date: Tue Apr 14 12:40:31 2020 -0400
+
+ bumped changelog version
+
commit 8851c9ed29e79d2ef5df9c7b7086878e69b90bd4
Author: Patrick Schleizer
Date: Tue Apr 14 12:39:34 2020 -0400
diff --git a/debian/changelog b/debian/changelog
index 36aed5f5..12dc9248 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+security-misc (3:18.4-1) unstable; urgency=medium
+
+ * New upstream version (local package).
+
+ -- Patrick Schleizer Thu, 16 Apr 2020 12:43:40 +0000
+
security-misc (3:18.3-1) unstable; urgency=medium
* New upstream version (local package).
From 6485df8126b52a2072824fa442e8d1dd5cb18981 Mon Sep 17 00:00:00 2001
From: Patrick Schleizer
Date: Thu, 23 Apr 2020 12:26:31 -0400
Subject: [PATCH 0049/1926] Prevent kernel info leaks in console during boot.
add kernel parameter `quiet loglevel=0`
https://phabricator.whonix.org/T950
---
etc/default/grub.d/40_kernel_hardening.cfg | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/etc/default/grub.d/40_kernel_hardening.cfg b/etc/default/grub.d/40_kernel_hardening.cfg
index 346ea88e..61042808 100644
--- a/etc/default/grub.d/40_kernel_hardening.cfg
+++ b/etc/default/grub.d/40_kernel_hardening.cfg
@@ -59,3 +59,10 @@ fi
## Requires linux-hardened kernel patch.
## https://github.com/anthraxx/linux-hardened
GRUB_CMDLINE_LINUX="$GRUB_CMDLINE_LINUX extra_latent_entropy"
+
+## Prevent kernel info leaks in console during boot.
+## https://phabricator.whonix.org/T950
+## str_replace is provided by package helper-scripts.
+## Remove "quiet" from GRUB_CMDLINE_LINUX_DEFAULT because "quiet" must be first.
+GRUB_CMDLINE_LINUX_DEFAULT="$(echo "$GRUB_CMDLINE_LINUX_DEFAULT" | str_replace "quiet" "")"
+GRUB_CMDLINE_LINUX="$GRUB_CMDLINE_LINUX quiet loglevel=0"
From 81cb6ad2462a900f9c5193278de70ada62a5585b Mon Sep 17 00:00:00 2001
From: Patrick Schleizer
Date: Thu, 23 Apr 2020 12:27:25 -0400
Subject: [PATCH 0050/1926] bumped changelog version
---
changelog.upstream | 16 ++++++++++++++++
debian/changelog | 6 ++++++
2 files changed, 22 insertions(+)
diff --git a/changelog.upstream b/changelog.upstream
index 70b5a14b..4e6b19bc 100644
--- a/changelog.upstream
+++ b/changelog.upstream
@@ -1,3 +1,19 @@
+commit 6485df8126b52a2072824fa442e8d1dd5cb18981
+Author: Patrick Schleizer
+Date: Thu Apr 23 12:26:31 2020 -0400
+
+ Prevent kernel info leaks in console during boot.
+
+ add kernel parameter `quiet loglevel=0`
+
+ https://phabricator.whonix.org/T950
+
+commit aa5631b02b0127b4681ae08c973b08b23befd701
+Author: Patrick Schleizer
+Date: Thu Apr 16 08:43:40 2020 -0400
+
+ bumped changelog version
+
commit 8d2e4b68dcae87b27f519196488e0ed7e8b95ef2
Author: Patrick Schleizer
Date: Thu Apr 16 08:00:31 2020 -0400
diff --git a/debian/changelog b/debian/changelog
index 12dc9248..5788b625 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+security-misc (3:18.5-1) unstable; urgency=medium
+
+ * New upstream version (local package).
+
+ -- Patrick Schleizer Thu, 23 Apr 2020 16:27:25 +0000
+
security-misc (3:18.4-1) unstable; urgency=medium
* New upstream version (local package).
From 3cd7b144bba1a92ca771b16fc5215073c7561a1a Mon Sep 17 00:00:00 2001
From: Patrick Schleizer
Date: Thu, 14 May 2020 13:47:58 -0400
Subject: [PATCH 0051/1926] move "kernel.printk = 3 3 3 3" to separate file
/etc/sysctl.d/30_silent-kernel-printk.conf
so package debug-misc can easily disable it
https://phabricator.whonix.org/T950
---
etc/sysctl.d/30_security-misc.conf | 5 -----
etc/sysctl.d/30_silent-kernel-printk.conf | 6 ++++++
2 files changed, 6 insertions(+), 5 deletions(-)
create mode 100644 etc/sysctl.d/30_silent-kernel-printk.conf
diff --git a/etc/sysctl.d/30_security-misc.conf b/etc/sysctl.d/30_security-misc.conf
index d66566fb..18902ef6 100644
--- a/etc/sysctl.d/30_security-misc.conf
+++ b/etc/sysctl.d/30_security-misc.conf
@@ -8,10 +8,6 @@ kernel.core_pattern=|/bin/false
## Restricts the kernel log to root only.
kernel.dmesg_restrict=1
-## Prevent kernel info leaks in console during boot.
-## https://phabricator.whonix.org/T950
-kernel.printk = 3 3 3 3
-
## Don't allow writes to files that we don't own
## in world writable sticky directories, unless
## they are owned by the owner of the directory.
@@ -149,4 +145,3 @@ vm.unprivileged_userfaultfd=0
## - https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Performance_Tuning_Guide/s-memory-tunables.html
## - https://en.wikipedia.org/wiki/Swappiness
vm.swappiness=1
-
diff --git a/etc/sysctl.d/30_silent-kernel-printk.conf b/etc/sysctl.d/30_silent-kernel-printk.conf
new file mode 100644
index 00000000..69db9a6b
--- /dev/null
+++ b/etc/sysctl.d/30_silent-kernel-printk.conf
@@ -0,0 +1,6 @@
+## Copyright (C) 2019 - 2020 ENCRYPTED SUPPORT LP
+## See the file COPYING for copying conditions.
+
+## Prevent kernel info leaks in console during boot.
+## https://phabricator.whonix.org/T950
+kernel.printk = 3 3 3 3
From 861f9d1022e61766c7474d9eb79489ba64ac2055 Mon Sep 17 00:00:00 2001
From: Patrick Schleizer
Date: Thu, 14 May 2020 13:57:32 -0400
Subject: [PATCH 0052/1926] bumped changelog version
---
changelog.upstream | 16 ++++++++++++++++
debian/changelog | 6 ++++++
2 files changed, 22 insertions(+)
diff --git a/changelog.upstream b/changelog.upstream
index 4e6b19bc..483680e8 100644
--- a/changelog.upstream
+++ b/changelog.upstream
@@ -1,3 +1,19 @@
+commit 3cd7b144bba1a92ca771b16fc5215073c7561a1a
+Author: Patrick Schleizer
+Date: Thu May 14 13:47:58 2020 -0400
+
+ move "kernel.printk = 3 3 3 3" to separate file /etc/sysctl.d/30_silent-kernel-printk.conf
+
+ so package debug-misc can easily disable it
+
+ https://phabricator.whonix.org/T950
+
+commit 81cb6ad2462a900f9c5193278de70ada62a5585b
+Author: Patrick Schleizer