Skip to content

fix: allow terminal ioctls under Landlock#92

Merged
tito merged 1 commit into
GreyhavenHQ:mainfrom
dataforxyz:fix-landlock-terminal-ioctl
May 20, 2026
Merged

fix: allow terminal ioctls under Landlock#92
tito merged 1 commit into
GreyhavenHQ:mainfrom
dataforxyz:fix-landlock-terminal-ioctl

Conversation

@dataforxyz
Copy link
Copy Markdown
Contributor

@dataforxyz dataforxyz commented May 7, 2026

Summary

  • include LANDLOCK_ACCESS_FS_IOCTL_DEV in Landlock write permissions for ABI v5+
  • allows interactive TUI apps to put /dev/tty and /dev/pts/* into raw mode
  • should help unlock Greywall usage for OpenClaw and other interactive coding-agent users that rely on terminal raw mode

Motivation

Interactive Node.js TUIs can fail under Greywall with setRawMode EACCES when Landlock handles IOCTL_DEV but the device path rule does not grant it. This was reproduced with the pi coding agent interactive mode; non-interactive commands worked, while pi failed entering raw mode.

This fix should start allowing OpenClaw-style interactive coding agent users to run safely inside Greywall instead of being limited to non-interactive commands.

Testing

  • go test ./internal/sandbox
  • manual: rebuilt Greywall and verified greywall -- pi --offline works interactively

@tito tito merged commit dba3c33 into GreyhavenHQ:main May 20, 2026
3 of 4 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.

2 participants