fix: change file permissions from 777 to 755 for security improvements #1473
+9
−9
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request standardizes file and directory permissions across the codebase by changing
chmodcommands from777(full access for everyone) to755(full access for owner, read/execute for others). This improves security by reducing unnecessary write access for group and other users. The changes affect backend installation logic, update procedures, Dockerfile setup, and user-facing installation instructions.Backend installation and update logic:
chmodarguments from777to755inagent/collectors/filebeat_amd64.go,agent/updates/dependencies.go, andagent/updates/update.goto restrict permissions when installing or updating files and services. [1] [2] [3] [4]Dockerfile permissions:
chmodcommand inetc/opensearch/2.x/Dockerfileto use755instead of777for the.utm_geoipdirectory, enhancing container security.Frontend installation instructions:
frontend/src/app/app-module/guides/guide-as400/constants.tsandfrontend/src/app/app-module/guides/guide-linux-agent/guide-linux-agent.component.tsto set permissions to755instead of777for agent and collector installers, aligning user guidance with backend changes. [1] [2] [3] [4]