Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

audit container script file ownership #413

Open
jmtd opened this issue Nov 8, 2023 · 2 comments
Open

audit container script file ownership #413

jmtd opened this issue Nov 8, 2023 · 2 comments

Comments

@jmtd
Copy link
Member

jmtd commented Nov 8, 2023

We have a pattern of doing stuff like

chown -R $USER:root $SCRIPT_DIR
chmod -R ug+rwX $SCRIPT_DIR
chmod ug+x ${ARTIFACTS_DIR}/opt/jboss/container/(something)

Consequently, many of the container executable scripts are owned by and writable by the running user, but that is not actually necessary for operation: furthermore, it isn't desirable because it increases an attack surface area.

@jmtd
Copy link
Member Author

jmtd commented Mar 4, 2024

All of /opt/jboss/container is owned by the running user and probably shouldn't be

@jmtd
Copy link
Member Author

jmtd commented Mar 4, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant