-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
replace 777 by 775 and change file owner to seluser #1963
Conversation
Can you explain why this is needed? |
Hi @eravion, may I know your security dept checks this compliance and reports it by which tool? |
Hello @VietND96 |
This change seems logical to me. |
thanks @luisfcorreia |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please check the comments and update your PR with the changes from trunk
?
# change right for /opt/bin*.sh file | ||
RUN chmod 775 /opt/bin/*.sh |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please do the COPY
with chmod
as mentioned in the Docker documentation https://docs.docker.com/engine/reference/builder/#copy
@@ -72,7 +74,10 @@ COPY supervisord.conf /etc | |||
#========== | |||
RUN mkdir -p /opt/selenium /opt/selenium/assets /var/run/supervisor /var/log/supervisor \ | |||
&& touch /opt/selenium/config.toml \ | |||
&& chmod -R 777 /opt/selenium /opt/selenium/assets /var/run/supervisor /var/log/supervisor /etc/passwd \ | |||
# && chown seluser:seluser /var/run/supervisor /var/log/supervisor /opt/selenium /etc/passwd \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are you keeping this commented line?
@@ -72,7 +74,10 @@ COPY supervisord.conf /etc | |||
#========== | |||
RUN mkdir -p /opt/selenium /opt/selenium/assets /var/run/supervisor /var/log/supervisor \ | |||
&& touch /opt/selenium/config.toml \ | |||
&& chmod -R 777 /opt/selenium /opt/selenium/assets /var/run/supervisor /var/log/supervisor /etc/passwd \ | |||
# && chown seluser:seluser /var/run/supervisor /var/log/supervisor /opt/selenium /etc/passwd \ | |||
&& chown seluser:seluser /var/run/supervisor /var/log/supervisor /opt/selenium \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did you remove /etc/passwd
?
Please use the new image tag |
Thanks for contributing to the Docker-Selenium project!
A PR well described will help maintainers to quickly review and merge it
Before submitting your PR, please check our contributing guidelines, applied for this repository.
Avoid large PRs, help reviewers by making them as simple and short as possible.
Description
Motivation and Context
Types of changes
Checklist