Wazuh Unable to chroot to directory

17 views
Skip to first unread message

Paul Charran

unread,
Jul 1, 2026, 4:22:04 AM (2 days ago) Jul 1
to Wazuh | Mailing List
Hello, 
     I was tasked with setting Wazuh up for high security. It took me months to get a working build with read_only_root_filesystem: True.
     Now I am tackling setting Security: - > Privileged: False. I have dealt with a couple of permissions issues. Now I am getting a error on Wazuh-Manager - CRITICAL: (1132) Unable to chroot to directory '/var/ossec' due to [(1) - (Operation not permitted)].
    Everything I have found online does not work. Is there a way to give analysisd root permissions under these conditions.

Thank you in advance.

Stuti Gupta

unread,
Jul 1, 2026, 4:29:11 AM (2 days ago) Jul 1
to Wazuh | Mailing List
Hi Paul, 

Please allow me some time. I'm looking into this. 

Thank you!

Stuti Gupta

unread,
Jul 1, 2026, 5:41:45 AM (2 days ago) Jul 1
to Wazuh | Mailing List

Hi Paul,

I went through your previous discussion, so I understand this is a continuation of your work to run Wazuh with a hardened container configuration. https://groups.google.com/g/wazuh/c/aWp3Ti25jcA

The current issue is different from the previous one. The error indicates that Wazuh Manager cannot perform the chroot operation during startup:

CRITICAL: (1132) Unable to chroot to directory '/var/ossec' due to [(1) - (Operation not permitted)]

Wazuh does not provide a configuration option to grant additional privileges only to analysisd. It uses the permissions available to the process when it starts. If the deployment restricts an operation that Wazuh requires, Wazuh Manager may fail to start with this error.

Since this is a continuation of your previous hardening work, could you share what changed after you got read_only_root_filesystem: true working? In particular, did this issue start immediately after setting privileged: false, or were there any other changes made to the container security configuration?

Reply all
Reply to author
Forward
0 new messages