-
Notifications
You must be signed in to change notification settings - Fork 155
Fix permissions sweep #717
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
base: main
Are you sure you want to change the base?
Conversation
It should not be setting permissions on data that lives in the image. Fixes rogerfar#716
|
Is this right though? /app is an internal path where the .NET application lives. It should set the owner so that it's able to read from /data. |
/app is in the Docker image. My system is slowly changing the ownership of the files from root:root to abc:abc at a rate of about one file every 10-20 seconds as it alters the overlays. |
|
I'm going to close this as I don't think this is correct. The App folder should have that permission. |
|
You're right about the need for it. And the slowdown was a problem with the overlayfs when hosting the apps/docker on a spinning rust ZFS volume. Somehow, each file permission change, on the individual level, took several seconds before moving on to the next. |
|
Qodo Merge was enabled for this repository. To continue using it, please link your Git account with your Qodo account here. PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
|
Qodo Merge was enabled for this repository. To continue using it, please link your Git account with your Qodo account here. PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||
|
The more I think about it, I think it makes sense. Why would RDT be wanting to changing all the permissions of existing files? /ask "Does this make sense"? |
|
@kode54 Why does it matter that it re-set the permission on the /app folder? I was thinking it's a problem that it's setting all permissions on the /data folder? |
|
rdt-client/root/etc/s6-overlay/s6-rc.d/svc-rdt-client/run Lines 10 to 11 in 772816c
Does the |
|
I have some thoughts as to why this is happening, I've shared them here: #716 (comment) I'm not sure if the solution I proposed in that comment is ideal, but I've noted a much quicker startup time on my end, along with lower CPU usage and other stats as a result. |
User description
It should not be setting permissions on data that lives in the image.
Fixes #716
PR Type
Bug fix
Description
Restricts permissions setting to
/datadirectory onlyPrevents unnecessary chown on
/appduring container startupAddresses Docker container startup hang issue
Changes walkthrough 📝
run
Restrict chown operation to /data directory onlyroot/etc/s6-overlay/s6-rc.d/init-rdt-client/run
/appfrom the recursive chown command/datahas its ownership set toabc:abc