From c7afd1ea752aeff0310ac7c6b78d091ac360c760 Mon Sep 17 00:00:00 2001 From: salmonik Date: Sun, 15 Nov 2026 15:38:57 +0100 Subject: 0.4.3: kill process groups, bound bash output, keep the key out of tool env - setsid-style process group kill on timeout and on Ctrl-C - 64 MiB RLIMIT_FSIZE so a runaway command cannot fill /tmp - OPENCODE_API_KEY removed from child environment - sessions 0600/0700, history 0600 and trimmed --- tests/sessions.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests/sessions.rs') diff --git a/tests/sessions.rs b/tests/sessions.rs index 8d17fc5..b445242 100644 --- a/tests/sessions.rs +++ b/tests/sessions.rs @@ -35,6 +35,12 @@ fn sessions_create_list_and_replay() { ) .unwrap(); + { + use std::os::unix::fs::PermissionsExt; + let mode = fs::metadata(alpha.path()).unwrap().permissions().mode() & 0o777; + assert_eq!(mode, 0o600, "sessions must not be group/world readable"); + } + assert!(session::exists("alpha")); assert!(!session::exists("nope")); -- cgit v1.2.3