-
Notifications
You must be signed in to change notification settings - Fork 44
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
Block builds from creating/deleting users/groups #274
Comments
Also from @mmlr:
|
I wonder why we use Python's tar handling support anyway. It appears all the things we do with it can be done via |
It appears |
I suppose, that, when cross-building, the provided tar version can be very different. |
Probably not, if the build modifies any of these files. It's difficult to say if some recipes would hit that specific problem.
How did that even affect the builder? Creating a user should change the /etc/passwd file inside the chroot, but not the one used by the OS, right? So once the build is done, that user disappears? Otherwise, it is a chroot leak and that is a problem that should be solved on Haiku side? |
The |
Realistically, this should be done on the Haiku side; right now anything which is UID 0 (even if it's in a chroot) can do this. But for the moment, we can prevent this from happening by creating a package settings file blocklisting
useradd
,groupadd
, etc. in chroot setup (haikuporter/HaikuPorter/ShellScriptlets.py
Line 862 in 007d868
This problem was the cause of the new Git recipe (haikuports/haikuports#9569) failing to build:
root
. As the root user on Haiku is just calleduser
, the newroot
user had a UID greater than 1000, not0
.sources-2
contains a directory entry for.
that is owned byroot:root
. (In contrast, the first sources archive does not contain an entry for.
, so itssources
directory did not have its ownership changed)fatal: dubious ownership...
during initialization.(Likely we should also adjust HaikuPorter so that git-init failures display their proper error messages; and also to ignore the user/groups of tar archives entirely.)
The text was updated successfully, but these errors were encountered: