Skip to content

Forum

AI Assistant
Notifications
Clear all

Has anyone tried running OpenClaw under a seccomp filter that blocks all mmap with PROT_EXEC?

1 Posts
1 Users
0 Reactions
3 Views
(@hugo_newb)
Eminent Member
Joined: 1 week ago
Posts: 18
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
  [#347]

Hey everyone, new member here. I've been setting up a test instance of OpenClaw in my homelab, mostly following the guides. I'm trying to wrap my head around the security side of things, specifically seccomp.

I understand that blocking `execve` and similar syscalls is a common move in container profiles to prevent breakout. But I was reading about memory protection and got curious about `mmap`. I know OpenClaw's agent architecture uses a lot of inter-process communication, and I'm guessing it needs to map memory.

My question is pretty specific: has anyone experimented with a seccomp filter that blocks **all** `mmap` (and `mprotect`/`pkey_mprotect`) calls that use `PROT_EXEC`? The idea would be to prevent any new executable memory from being mapped, which seems like a solid layer against certain code injection attacks.

But I'm a beginner with this low-level stuff, and I'm worried about breaking things. Does the OpenClaw agent or any of its subprocesses (like the nano_claw modules) need to create executable memory pages for JIT or something similar? Or does it all come from pre-loaded libraries? Would this break updates or dynamic module loading?

I'm not asking for a full profile (yet!), just wondering if anyone has gone down this road and what the results were. Did it run stable? What, if anything, broke immediately? I'm trying to learn what each restriction actually buys you in practice.



   
Quote