Skip to content

Issue-1398: set umask when launching browsers #1399

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

Merged
merged 9 commits into from
Oct 26, 2021

Conversation

therealdjryan
Copy link
Contributor

@therealdjryan therealdjryan commented Sep 16, 2021

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.

Set umask to 002 before launching browsers. This will cause downloaded files to 664 (-rw-rw-r)
#1398

Description

Motivation and Context

Allows changing downloaded files when run in an environment where the userids don't map

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • I have read the contributing document.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

Copy link
Member

@diemol diemol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would this fix #1095?

Copy link
Member

@diemol diemol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, I know we do not have a wrapper for Firefox, but are files downloaded with Firefox also affected by #1398?

@gjoc96

This comment has been minimized.

@therealdjryan
Copy link
Contributor Author

Would this fix #1095?

This is one of the symptoms I saw which caused me to look for a solution. I'm not actually very happy with the solution I've come up with as it is too high level, I would prefer 002 to be the default for all user processes, or at least for seluser's. I did try to modify /etc/profile and seluser's profile, but I couldn't get it to work. Maybe the real solution is to make the change to supervisord.conf, but I don't have much experience with supervisord (I was a sys admin when Solaris was king!)

@therealdjryan
Copy link
Contributor Author

Also, I know we do not have a wrapper for Firefox, but are files downloaded with Firefox also affected by #1398?

I believe it firefox will also have this problem, but we don't use Firefox in our environment

@CLAassistant
Copy link

CLAassistant commented Oct 6, 2021

CLA assistant check
All committers have signed the CLA.

@therealdjryan
Copy link
Contributor Author

@diemol, I believe I have addressed the changes you requested.

@diemol
Copy link
Member

diemol commented Oct 14, 2021

Apologies for the delay reviewing this PR, we've been busy with the 4.0 release. We will review this in the next couple of days. Thanks!

@therealdjryan
Copy link
Contributor Author

therealdjryan commented Oct 14, 2021 via email

@diemol
Copy link
Member

diemol commented Oct 25, 2021

@therealdjryan I was going to start reviewing this but seems something went wrong with the latest commits. Why are there so many changes in the this PR?

@therealdjryan
Copy link
Contributor Author

@diemol wow that's ugly! Pretty sure all I did was to sync the fork in IntelliJ. I'll ditch this fork and create a clean one.

@therealdjryan
Copy link
Contributor Author

@diemol, I updated my fork using the github UI and my commits look normal again.

Copy link
Member

@diemol diemol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This does not fix #1095 because it is a different issue.

Thanks for contributing, @therealdjryan!

@diemol diemol merged commit 501efb9 into SeleniumHQ:trunk Oct 26, 2021
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

Successfully merging this pull request may close these issues.

4 participants