forked from wazuh/wazuh-docker
Merge pull request #1926 from wazuh/bug/1920-set-right-permissions-for-malicious-ioc-list-files
Set right ownership for malicious-ioc files on container start
This commit is contained in:
@@ -5,6 +5,7 @@ All notable changes to this project will be documented in this file.
|
|||||||
|
|
||||||
### Added
|
### 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))
|
- 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))
|
- 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))
|
- Integrate bumper script via GitHub action. ([#1863](https://github.com/wazuh/wazuh-docker/pull/1863))
|
||||||
|
|||||||
@@ -167,16 +167,17 @@ set_custom_cluster_key() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
##############################################################################
|
##############################################################################
|
||||||
# Modify /var/ossec/queue/rids directory owner on
|
# Set correct ownership for Wazuh related directories
|
||||||
# container start.
|
# on container start.
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
set_rids_owner() {
|
configure_permissions() {
|
||||||
chown -R wazuh:wazuh /var/ossec/queue/rids
|
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() {
|
set_correct_permOwner() {
|
||||||
@@ -226,8 +227,8 @@ main() {
|
|||||||
# Delete temporary data folder
|
# Delete temporary data folder
|
||||||
rm -rf ${WAZUH_INSTALL_PATH}/data_tmp
|
rm -rf ${WAZUH_INSTALL_PATH}/data_tmp
|
||||||
|
|
||||||
# Set rids directory owner
|
# Set correct ownership for Wazuh related directories
|
||||||
set_rids_owner
|
configure_permissions
|
||||||
}
|
}
|
||||||
|
|
||||||
main
|
main
|
||||||
|
|||||||
Reference in New Issue
Block a user