-
Notifications
You must be signed in to change notification settings - Fork 138
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
(t) Suboptimal permissions on crontabs created by Rockstor #2556
Milestone
Comments
FroggyFlox
changed the title
(t) Harden permissions on crontabs created by Rockstor
(t) Suboptimal permissions on crontabs created by Rockstor
May 23, 2023
FroggyFlox
referenced
this issue
in FroggyFlox/rockstor-core
May 23, 2023
Following our transition to Poetry, some local files generated by Rockstor can still include now-legacy path to Rockstor binaries. This commit ensures these local files include the new paths to the binaries in the Poetry venv or correct when necessary at Rockstor's start time.
FroggyFlox
added a commit
to FroggyFlox/rockstor-core
that referenced
this issue
May 25, 2023
Our crontabs are currently created in-place with a 644 mask. This commit instead writes the crontabs to a tempfile that is then set with a 600 mask before being moved to its final destination.
FroggyFlox
added a commit
to FroggyFlox/rockstor-core
that referenced
this issue
May 25, 2023
phillxnet
added a commit
that referenced
this issue
May 27, 2023
…n_crontabs_created_by_Rockstor Improve permissions on crontabs created by rockstor #2556
Closing as: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This issue results from a discussion with @phillxnet related to #2540: FroggyFlox@5fb66a6#r114644668
As detailed and demonstrated by @phillxnet in that conversation thread, our current creation of crontabs keeps the default mode of 644 whereas security hardening would recommend keeping these files accessible by
root
only.It is thus proposed that we ensure a mode of 600 for the creation of our crontabs:
rockstor-core/src/rockstor/smart_manager/views/task_scheduler.py
Line 88 in 8e65ada
rockstor-core/src/rockstor/smart_manager/views/replication.py
Line 40 in 8e65ada
The text was updated successfully, but these errors were encountered: