Skip to content

refactor: always call setsid for exec processes#138

Merged
ComixHe merged 1 commit into
OpenAtom-Linyaps:masterfrom
ComixHe:master
Jan 21, 2026
Merged

refactor: always call setsid for exec processes#138
ComixHe merged 1 commit into
OpenAtom-Linyaps:masterfrom
ComixHe:master

Conversation

@ComixHe
Copy link
Copy Markdown
Collaborator

@ComixHe ComixHe commented Jan 21, 2026

Ensure every exec process starts in a new session to achieve:

  • Isolation: Decouples the process from the caller's session and controlling terminal to prevent unexpected signal propagation.
  • Security: Mitigates TIOCSTI terminal injection attacks by ensuring the process has no terminal to push characters back to.
  • TTY Setup: Provides the required clean state for the process to properly acquire its own PTY if terminal=true.

Ensure every exec process starts in a new session to achieve:

- Isolation: Decouples the process from the caller's session and
  controlling terminal to prevent unexpected signal propagation.
- Security: Mitigates TIOCSTI terminal injection attacks by
  ensuring the process has no terminal to push characters back to.
- TTY Setup: Provides the required clean state for the process to
  properly acquire its own PTY if terminal=true.

Signed-off-by: ComixHe <ComixHe1895@outlook.com>
@ComixHe ComixHe merged commit 3bf4ace into OpenAtom-Linyaps:master Jan 21, 2026
12 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