Skip to content

New feature: containment: add runtime limits and optional cgroup targeting#276

Merged
ghantoos merged 11 commits intopre-releasefrom
f/limits
Mar 18, 2026
Merged

New feature: containment: add runtime limits and optional cgroup targeting#276
ghantoos merged 11 commits intopre-releasefrom
f/limits

Conversation

@ghantoos
Copy link
Owner

@ghantoos ghantoos commented Mar 18, 2026

Summary

This PR introduces runtime containment controls in lshell and wires them into command/session execution paths.

What’s included

  • max_sessions_per_user: enforce per-user concurrent session caps.
  • max_background_jobs: enforce active & job limits.
  • command_timeout: enforce per-command wall-clock timeout.
  • max_processes: apply RLIMIT_NPROC to spawned commands.

Additional changes

  • Config/schema/docs updated (etc/lshell.conf, README, man page, changelog).
  • Audit/config handling updated to report denial/warning reasons clearly.
  • New containment unit + functional tests, plus related audit/security test updates.

@ghantoos ghantoos merged commit 009234d into pre-release Mar 18, 2026
6 checks passed
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