2724 Commits

Author SHA1 Message Date
e3ce9c38c5 bumped changelog version 46.3-1 2025-07-02 20:52:17 +00:00
b06fb54280 Merge remote-tracking branch 'github-kicksecure/master' 2025-07-02 13:47:12 -04:00
468cf40e2a Merge pull request #306 from raja-grewal/erst
Set `erst_disable`
2025-07-02 13:45:28 -04:00
865a052bf4 Merge pull request #309 from RebornRider/patch-1
remove  TemporaryTimeout=0 in Bluetooth config
2025-07-02 13:44:17 -04:00
bb208fb134 Merge branch 'Kicksecure:master' into erst 2025-07-02 11:35:50 +10:00
4314b1e85b Add comment 2025-07-01 13:36:39 +10:00
e3c4519179 remove misleading TemporaryTimeout=0 in Bluetooth config 2025-06-16 10:35:16 +01:00
115b6f6aa2 bumped changelog version 46.2-1 2025-06-14 11:51:44 +00:00
4639d1aab5 Merge remote-tracking branch 'ArrayBolt3/arraybolt3/approx' 2025-06-13 15:09:52 -04:00
109c013467 Add comment related to approx package caching proxy 2025-06-12 01:08:34 -05:00
72613203b9 Add reference 2025-06-06 13:07:52 +00:00
dd0b55cc45 Add reference 2025-06-03 12:32:17 +10:00
5159de6343 bumped changelog version 46.1-1 2025-05-28 13:48:11 +00:00
3e102df765 fix 2025-05-28 08:37:03 -04:00
d5edc243ac bumped changelog version 46.0-1 2025-05-28 12:12:00 +00:00
eda1d0aef6 Merge remote-tracking branch 'github-kicksecure/master' 2025-05-28 07:22:16 -04:00
5a10ad031d Merge pull request #307 from maybebyte/ssh-agent-to-allowlist
fix(permission-hardener): ssh-agent gets 2755 perms
2025-05-28 07:21:31 -04:00
3559bc86b7 fix(permission-hardener): ssh-agent gets 2755 perms
Change from exactwhitelist to matchwhitelist. Discussion revealed that
there's a good reason to leave setgid in here, which is essentially
defense-in-depth (sometimes users may want to revert Kicksecure's
default of kernel.yama.ptrace_scope=2, e.g. to debug a program, and
Kicksecure should not be less secure than vanilla Debian in that
situation).
2025-05-27 15:32:41 -06:00
c59b2e4bc5 Merge branch 'Kicksecure:master' into ssh-agent-to-allowlist 2025-05-27 20:33:07 +00:00
e966774862 bumped changelog version 45.9-1 2025-05-27 19:41:25 +00:00
017ee29eb3 Merge branch 'Kicksecure:master' into ssh-agent-to-allowlist 2025-05-27 18:25:47 +00:00
5195977be4 protect against grep pipefail 2025-05-27 11:57:21 -04:00
abb2207313 bumped changelog version 45.8-1 2025-05-27 15:51:50 +00:00
45016146f7 Merge remote-tracking branch 'github-kicksecure/master' 2025-05-27 11:03:23 -04:00
395169fbce Merge pull request #308 from maybebyte/permission-hardener-speedboost
perf(permission-hardener): optimize string match
2025-05-27 10:58:50 -04:00
1c35303204 Merge branch 'Kicksecure:master' into erst 2025-05-23 20:20:19 +10:00
ace45d7c95 bumped changelog version 45.7-1 2025-05-21 22:06:02 +00:00
142ea21189 fix 2025-05-21 12:42:16 -04:00
a969fa350e fix 2025-05-21 12:40:27 -04:00
f023651c98 nounset 2025-05-21 12:35:37 -04:00
f086787464 fix 2025-05-21 12:35:23 -04:00
d7643954d1 minor 2025-05-21 12:33:50 -04:00
aa905fc887 further validation of output of faillock 2025-05-21 12:32:16 -04:00
92d3a36a0f fix 2025-05-21 12:29:01 -04:00
2c1abb23e0 output 2025-05-21 12:26:46 -04:00
0801b96ae7 output 2025-05-21 12:25:49 -04:00
ef8515ba82 improve error handling 2025-05-21 12:23:45 -04:00
784867e24b fix 2025-05-21 12:21:45 -04:00
0eea681ce8 bumped changelog version 45.6-1 2025-05-21 15:52:16 +00:00
e1bae1c68a fix 2025-05-21 11:50:59 -04:00
bd01a68305 bumped changelog version 45.5-1 2025-05-21 13:58:18 +00:00
14cf205579 fix 2025-05-21 08:36:16 -04:00
ff6bc5d5b6 bumped changelog version 45.4-1 2025-05-21 11:23:39 +00:00
353b6e83c5 test that wc is functional
https://github.com/Kicksecure/security-misc/pull/305#issuecomment-2892378246
2025-05-21 07:20:13 -04:00
5930e27052 pam-info: improve error handling
https://github.com/Kicksecure/security-misc/pull/305#issuecomment-2892378246
2025-05-21 07:05:25 -04:00
5c981e0891 pam-info: fix, consistently write errors and warnings to stderr 2025-05-21 06:55:09 -04:00
e14b81b15e perf(permission-hardener): optimize string match
Replace subprocess grep calls with bash substring matching in
check_nosuid_whitelist function. This eliminates ~10k unneeded
subprocess spawns that were causing significant performance
degradation.

In testing, it improves overall script execution speed by an
order of magnitude:

Before patch:
$ sudo hyperfine -- './permission-hardener enable'
Benchmark 1: ./permission-hardener enable
  Time (mean ± σ):     11.906 s ±  0.974 s    [User: 3.639 s, System: 8.728 s]
  Range (min … max):   10.430 s … 14.090 s    10 runs

After patch:
$ sudo hyperfine -- './permission-hardener enable'
Benchmark 1: ./permission-hardener enable
  Time (mean ± σ):     802.8 ms ± 178.5 ms    [User: 283.0 ms, System: 471.9 ms]
  Range (min … max):   639.4 ms … 1092.3 ms    10 runs
2025-05-20 21:34:03 -06:00
7a079c3de8 fix(permission-hardener): add exactwhitelist here
Without this, the permissions for ssh-agent won't be changed properly.
2025-05-20 18:41:48 -06:00
94dc9da4ab fix(permission-hardener): ssh-agent gets 755 perms
Replace the commented-out matchwhitelist entry for ssh-agent with an
explicit permission entry (755) for /usr/bin/ssh-agent.

When ssh-agent's matchwhitelist entry was commented out in commit
7a5f8b87af, permission-hardener began resetting it to restrictive
defaults (744), preventing non-root users from executing ssh-agent. This
broke split SSH functionality in Qubes OS for me because I was using
Kicksecure in the vault qube, and ssh-agent runs under a non-root user in
that configuration (see https://forum.qubes-os.org/t/split-ssh/19060).

As noted in the comment, Debian installs with 2755 permissions as a way
to mitigate ptrace attacks, but this rationale doesn't apply due to
kernel.yama.ptrace_scope=2 being set in Kicksecure.
2025-05-20 18:04:46 -06:00
19d7e1af5d bumped changelog version 45.3-1 2025-05-20 11:40:27 +00:00