]> glassweightruler.freedombox.rocks Git - waydroid.git/commit
lxc: Workaround against lxc changing logfile permissions
authorAlessandro Astone <ales.astone@gmail.com>
Wed, 4 Jan 2023 14:03:09 +0000 (15:03 +0100)
committerAlessandro Astone <ales.astone@gmail.com>
Wed, 4 Jan 2023 14:03:11 +0000 (15:03 +0100)
commitfb92d3a016a956e8520e938b59f55bd0fe9c2deb
treeef5e5277d5c9d1a1f0386885c393381ce1c951bb
parent3b3081af3da09ae93449f34cb16556ed84caad07
lxc: Workaround against lxc changing logfile permissions

Running lxc-start changes the permissions of stdout/stderr to 700.

The previous workaround of changing the permissions back after lxc-status
only worked because of the lxc-status loop in container_manager.start

Make it more generic by applying it to every caller of helpers.lxc.start

See: https://github.com/lxc/lxc/blob/6564e6ccb22e6e3c6cf36e6ae3cb5d5f73122486/src/lxc/utils.c#L1859
tools/actions/container_manager.py
tools/helpers/lxc.py