-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Fix the /var wrong permission issue #7571
Conversation
@xumia, you mentioned
Is it possible to make normal build process same as reproducible build process? You may change either one. |
@qiluo-msft , yes, we can install the depended packages, then normal build is the same as the reproducible build. |
Why I did it Build broken when reproducible build enabled, relative to backport package systemd. The root cause is the bad permission of /var.
Why I did it Build broken when reproducible build enabled, relative to backport package systemd. The root cause is the bad permission of /var.
Why I did it Build broken when reproducible build enabled, relative to backport package systemd. The root cause is the bad permission of /var.
Why I did it
Build broken when reproducible build enabled, relative to backport package systemd.
The root cause is the bad permission of /var.
See https://dev.azure.com/mssonic/build/_build/results?buildId=14292&view=logs&j=88ce9a53-729c-5fa9-7b6e-3d98f2488e3f&t=8d99be27-49d0-54d0-99b1-cfc0d47f0318
Issue Analysis:
The owner of the folder /var is not correct, should be root:root, not 1001:redis.
See similar issue: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=950684
The package rasdaemon has dependency on systemd, the systemd is installed twice in build_debian.sh.
The first one is the package from main, the second one is the package from backport.
When reproducible build enabled, it will only install the backport one. The backport systemd was installed in the PR: #7322
Logs:
The error is "Detected unsafe path transition /var -> /var/log during canonicalization of /var/log/journal.", see more logs as below:
How I did it
Change the right ownership to root:root for /var.
How to verify it
The issue can be reproduced by following command, no issue after fixed.
Which release branch to backport (provide reason below if selected)
Description for the changelog
A picture of a cute animal (not mandatory but encouraged)