- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 580
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
Extract source tarballs using permissions from umask #20481
Comments
Reviewer: Jeroen Demeyer |
comment:2
Instead of ignoring permissions for dirs, would it be possible to simply apply the user's umask on everything which gets extracted (files and directories). This would mean changing |
comment:3
That was my first thought actually. I'd be fine with that too--this was just infinitesimally simpler :) |
comment:4
Perhaps one reason not to prefer that is that if the umask is set to something useless then then applying it would be no less "safe". As it is this is only "unsafe" in the context of moving the extracted directory to someplace like /tmp. But it seems more reliable not to rely on the user's umask. |
comment:5
Replying to @embray:
I would say that the |
comment:6
0700 would break the cell server which uses a separate worker account and in general would not work for multiuser setup. Or am I missing the point? It also seems to me that using |
comment:7
I agree that building with too restrictive permissions could give problems. Some installation scripts probably just copy the directory over without changing the permissions. So |
comment:8
Okay then, umask it is. I'll update this next week. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:10
As discussed, now the customized |
This comment has been minimized.
This comment has been minimized.
Changed branch from u/embray/uncompress-permissions to |
This is the lowest-hanging fruit in addressing the issues I raised in this comment.
It changes
sage-uncompress-spkg
to apply the umask to all files and directories extracted from tarballs.This doesn't apply to zipfiles since they do not contain permission information, though in principle we could modify zipfiles to use the same policy. I don't think it matters much though.
Component: build
Author: Erik Bray
Branch/Commit:
4fe154a
Reviewer: Jeroen Demeyer
Issue created by migration from https://trac.sagemath.org/ticket/20481
The text was updated successfully, but these errors were encountered: