Add ostree-tmp-chmod.service to fix /tmp permissions on existing installs.
Updates may require up to 24 hours to propagate to mirrors. If the following command doesn't work, please retry later:
sudo dnf upgrade --refresh --advisory=FEDORA-2015-5f8e9e7d20
Please login to add feedback.
This update has been submitted for testing by walters.
Here's some reproducer instructions:
The patch takes effect during boot, so you do need to be using a real Atomic Host. Check permissions on /sysroot/tmp. It should be world-writable (01777).
Apply the update, but before rebooting change the /sysroot/tmp permission on 01755 (only root can write). After rebooting, verify the direction is once again world-writable (01777) and also verify that the "ostree-remount" systemd unit executed successfully during boot.
I wrote the patch but I've also tested it. Works for me.
This update has been pushed to testing.
This update has been submitted for stable by bodhi.
I upgraded my host on the testing tree from 23.13 (d2094abdba) to 23.15 ( 135a8282ac). The upgrade included
ostree 2015.9-2.fc23 -> 2015.9-3.fc23
.Before upgrade:
After upgrade:
So this appears to work, but I don't see a new systemd unit. Doesn't really matter how it gets done as long as we get the right permissions on boot.
Using a F23 Atomic Host, I rebased to a custom ostree compose that included the latest package.
I used the reproducer above to verify the changes and noted the permissions were correct:
And the systemd unit file was fired off
Also rebased on the 23.15 tree in updates-testing and verified the expected behaviour (correct permissions on
/sysroot/tmp
, and properly firedostree-remount
service).This update has been pushed to stable.