diff --git a/CHANGELOG.md b/CHANGELOG.md index cc28822b..1b188e19 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ All notable changes to this project will be documented in this file. ### Added +- Set right ownership for malicious-ioc files on container start ([#1926](https://github.com/wazuh/wazuh-docker/pull/1926)) - Delete services statement in wazuh agent deployment. ([#1925](https://github.com/wazuh/wazuh-docker/pull/1925)) - Add permanent_data exceptions. ([#1890](https://github.com/wazuh/wazuh-docker/pull/1890)) - Integrate bumper script via GitHub action. ([#1863](https://github.com/wazuh/wazuh-docker/pull/1863)) diff --git a/build-docker-images/wazuh-manager/config/etc/cont-init.d/0-wazuh-init b/build-docker-images/wazuh-manager/config/etc/cont-init.d/0-wazuh-init index b75501f8..ca125b1b 100644 --- a/build-docker-images/wazuh-manager/config/etc/cont-init.d/0-wazuh-init +++ b/build-docker-images/wazuh-manager/config/etc/cont-init.d/0-wazuh-init @@ -167,16 +167,17 @@ set_custom_cluster_key() { } ############################################################################## -# Modify /var/ossec/queue/rids directory owner on -# container start. +# Set correct ownership for Wazuh related directories +# on container start. ############################################################################## -set_rids_owner() { +configure_permissions() { chown -R wazuh:wazuh /var/ossec/queue/rids + chown -R wazuh:wazuh /var/ossec/etc/lists } ############################################################################## -# Change any ossec user/group to wazuh user/group +# Change any ossec user/group to wazuh user/group ############################################################################## set_correct_permOwner() { @@ -226,8 +227,8 @@ main() { # Delete temporary data folder rm -rf ${WAZUH_INSTALL_PATH}/data_tmp - # Set rids directory owner - set_rids_owner + # Set correct ownership for Wazuh related directories + configure_permissions } main