Skip to content
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

cmd/initContainer: Don't rely on user D-Bus to track time zone configuration #591

Merged

Conversation

debarshiray
Copy link
Member

This is one more step towards enabling toolbox(1) to be run as root.
When invoked as 'sudo toolbox ...' there's no user or session D-Bus
instance available for the root user, which prevents the use of D-Bus
services like o.fd.Flatpak.SessionHelper.

#267

@softwarefactory-project-zuul
Copy link

Build failed.

@debarshiray debarshiray changed the title cmd/initContainer: Don't rely on user D-Bus to track /etc/localtime cmd/initContainer: Don't rely on user D-Bus to track time zone configuration Oct 23, 2020
@softwarefactory-project-zuul
Copy link

Build failed.

@softwarefactory-project-zuul
Copy link

Build failed.

@softwarefactory-project-zuul
Copy link

Build failed.

@softwarefactory-project-zuul
Copy link

Build failed.

@softwarefactory-project-zuul
Copy link

Build failed.

@softwarefactory-project-zuul
Copy link

Build failed.

@softwarefactory-project-zuul
Copy link

Build failed.

@HarryMichal HarryMichal added this to In progress in Enable Rootfull Toolbox Oct 24, 2020
@HarryMichal
Copy link
Member

The last CI fail is partially caused by a race condition I introduced in #567. The fix for this is in #594. The other part (in Fedora 33) is in my opinion not caused by the CI but a bug in Podman.

This is one more step towards enabling toolbox(1) to be run as root.
When invoked as 'sudo toolbox ...' there's no user or session D-Bus
instance available for the root user, which prevents the use of D-Bus
services like org.freedesktop.Flatpak.SessionHelper.

containers#267
This is one more step towards enabling toolbox(1) to be run as root.
When invoked as 'sudo toolbox ...' there's no user or session D-Bus
instance available for the root user, which prevents the use of D-Bus
services like org.freedesktop.Flatpak.SessionHelper.

The code is forgiving to runtime errors when reacting to file system
events because it's not worth abruptly terminating the entry point
because of what might be a passing error. However, it's a lot stricter
when initially configuring the container because the failure mode isn't
as surprising for the user and it's worth starting from a valid state.

containers#267
It's no longer used to keep /etc/localtime and /etc/timezone
synchronized with the host.

containers#267
... that were created to have a bind mount at /run/host/monitor. Newly
created containers no longer need org.freedesktop.Flatpak.SessionHelper
and hence the D-Bus service doesn't need to be started for them.

containers#267
@softwarefactory-project-zuul
Copy link

Build failed.

@debarshiray
Copy link
Member Author

The last CI fail is partially caused by a race condition I introduced in #567.
The fix for this is in #594. The other part (in Fedora 33) is in my opinion not
caused by the CI but a bug in Podman.

Thanks for the insight. I was beginning to get a bit confused.

@debarshiray debarshiray merged commit 82c32be into containers:master Oct 26, 2020
@debarshiray debarshiray deleted the wip/rishi/monitor-config-files branch October 26, 2020 15:13
@HarryMichal HarryMichal moved this from In progress to Done in Enable Rootfull Toolbox Dec 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

2 participants