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

InitialWorkDir contents must be read-only by default #673

Open
anton-khodak opened this issue Feb 24, 2018 · 0 comments
Open

InitialWorkDir contents must be read-only by default #673

anton-khodak opened this issue Feb 24, 2018 · 0 comments

Comments

@anton-khodak
Copy link
Member

Related conformance test: common-workflow-language/common-workflow-language#591

Implementation hints:

  • before staging, record the permission bits of the files
  • try to change the permission bits of the files recursively to be read-only for all users, the file's group, the file's user

(this is the equivalent of:

chmod -R a-r

and if that fails

chmod -R o-r
chmod  -R g-r
chmod -R u-r

)

  • after the step execution, write back the permission bits.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant