Skip to content

feat(win): Phase 4 — task manager (kill + PROTECTED allowlist)#10

Merged
ronylicha merged 2 commits into
masterfrom
feat/win-phase-4
Jun 26, 2026
Merged

feat(win): Phase 4 — task manager (kill + PROTECTED allowlist)#10
ronylicha merged 2 commits into
masterfrom
feat/win-phase-4

Conversation

@ronylicha

Copy link
Copy Markdown
Member

Summary

  • Real Windows kill_process via sysinfo Process::kill() (maps to TerminateProcess); replaces false stub. _force documented as moot — Windows has no graceful-signal analogue.
  • Linux PROTECTED narrowed: #[cfg(not(target_os = "macos"))]#[cfg(target_os = "linux")] (byte-identical body). Prevents accidentally giving Windows the Linux daemon list.
  • Windows PROTECTED added (16 entries): kernel pseudo-processes (System, Registry, smss, csrss), session management (wininit, winlogon), services infrastructure (services, lsass, svchost, dwm, fontdrvhost), user shell (explorer, ctfmon, RuntimeBroker), self (freeyourdisk, FreeYourDisk).

Test plan

  • Linux CI: cargo clippy -D warnings green (Linux/macOS arms unchanged)
  • Windows CI: cargo check --target x86_64-pc-windows-msvc compiles the #[cfg(windows)] arm
  • No new dependency added (sysinfo already a dep)
  • PROTECTED const shape identical across all three OS arms (&[&str])

@ronylicha ronylicha merged commit 48abfbf into master Jun 26, 2026
6 checks passed
@ronylicha ronylicha deleted the feat/win-phase-4 branch June 26, 2026 20:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant