Re: [chrony-dev] Seccomp issue on Alpine linux

[ Thread Index | Date Index | More chrony.tuxfamily.org/chrony-dev Archives ]


On Wed, May 31, 2023 at 04:28:51PM +0200, jvoisin wrote:
> alpine:/home/jvoisin/chrony/test/system# cat tmp/chronyd.log
> 2023-05-31T14:28:33Z chronyd version DEVELOPMENT starting (+CMDMON +NTP
> +REFCLOCK +RTC -PRIVDROP +SCFILTER +SIGND +ASYNCDNS -NTS -SECHASH +IPV6
> -DEBUG)
> 2023-05-31T14:28:33Z Wrong owner of /home/jvoisin/chrony/test/system/tmp
> (GID != 0)
> 2023-05-31T14:28:33Z Disabled command socket
> /home/jvoisin/chrony/test/system/tmp/chronyd.sock

It seems the tmp directory is being created with a different group than 0
(root). Is it a wheel group?

Can you please try it again with this patch?

diff --git a/test/system/test.common b/test/system/test.common
index 7005c9e1..aa48ac67 100644
--- a/test/system/test.common
+++ b/test/system/test.common
@@ -42,6 +42,8 @@ test_start() {
                su "$user" -s /bin/sh -c "touch $TEST_DIR/test" 2> /dev/null || \
                        test_skip "$user cannot access $TEST_DIR"
                rm "$TEST_DIR/test"
+       else
+               chown 0:0 "$TEST_DIR" || test_skip "could not chown $TEST_DIR"
        fi
 
        echo "Testing $*:"

-- 
Miroslav Lichvar


-- 
To unsubscribe email chrony-dev-request@xxxxxxxxxxxxxxxxxxxx with "unsubscribe" in the subject.
For help email chrony-dev-request@xxxxxxxxxxxxxxxxxxxx with "help" in the subject.
Trouble?  Email listmaster@xxxxxxxxxxxxxxxxxxxx.


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/