From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id xjOlDs0onWBt+wAAgWs5BA (envelope-from ) for ; Thu, 13 May 2021 15:25:33 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id YDi4Cc0onWDEdQAAbx9fmQ (envelope-from ) for ; Thu, 13 May 2021 13:25:33 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 34F811588C for ; Thu, 13 May 2021 15:25:32 +0200 (CEST) Received: from localhost ([::1]:40700 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lhBLH-0006Tf-Cv for larch@yhetil.org; Thu, 13 May 2021 09:25:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45466) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lhBL9-0006TW-UP for help-guix@gnu.org; Thu, 13 May 2021 09:25:23 -0400 Received: from smtprelay06.ispgateway.de ([80.67.18.29]:35981) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lhBL8-0005ZE-1e for help-guix@gnu.org; Thu, 13 May 2021 09:25:23 -0400 Received: from [91.40.249.22] (helo=milk) by smtprelay06.ispgateway.de with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1lhBKV-0004zx-UI; Thu, 13 May 2021 15:24:43 +0200 From: Simon Streit To: Leo Famulari Subject: Re: mount.davfs: program is not setuid root References: Gcc: nnfolder+archive:sent.2021-05 Date: Thu, 13 May 2021 15:25:58 +0200 In-Reply-To: (Efraim Flashner's message of "Tue, 20 Apr 2021 10:20:44 +0300") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Df-Sender: bGlzdHNAbmV0cGFuaWMub3Jn Received-SPF: none client-ip=80.67.18.29; envelope-from=lists@netpanic.org; helo=smtprelay06.ispgateway.de X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: help-guix@gnu.org Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1620912332; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=nD4xvzZnzBRh8vEhNhSzr87KClln3HvLc+bVYGamrIs=; b=lSRAMK99rO/WLHqUuqa/+GBgVkvlZkk9geo9+Th1icIntYYMBnxDVtvv+JVFmI9nu2KsZ7 H2Yl4TomVsNlGFZYyDiRw1KDdRNgeaxsim2SNPPPfVF/kRal1lHF45oFtyDc53iQVxxpTC wEr0vLln5/43UN4tKouRwOK4CxaFQHnsYmSbOPRyamhqdseymCQVQCNZ8uwJuPzCIfNybo M1l24rfJ/DzSbaYZoBc0RM75GRt+YtWDkLv8QF0j2XuruZWYGtfC4FxBf4kV4dnff9z0Vr rZnW33WcpA79t1p5G1quiR0IIf4a8K/ZAZ6YN7r9YXyrles5TGsQjZYKYbpDxA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1620912332; a=rsa-sha256; cv=none; b=gL+m65pPgd9R6DnA0ky/gvPiCV+ZDi7Jgb3lrmxlcPA69Ge+RjiNcmNg8GpGEubV6wF7ZG s0+JjLxaynmRVZV0hNWeq/13VldrLF1xp2BwS2wBjsXdSifdwXXobr9x0oBNhOjo7yOO9a sDJTq1bJ6qeR56fvnT7aBFD3yqVXk6NkeehmblKKddgod9khOfZlxaprfezO0R/oNhUZGN 8I+wZRPBATCg7isGyRE8qYCGduBLMkCQuEMm3cAVSA6EMUF+xDTaFsUMx+Z5QhDi77Lc0u 4VywXeQb8P7B8JhrUlpEiP/SfbNVZcOeWniOl4ezu2n0MLUJSsGbF4CR74kdfA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Spam-Score: -2.45 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Queue-Id: 34F811588C X-Spam-Score: -2.45 X-Migadu-Scanner: scn0.migadu.com X-TUID: Yci5GPzOyprj Efraim Flashner writes: > On Mon, Apr 19, 2021 at 08:47:08PM -0400, Leo Famulari wrote: >> On Mon, Apr 19, 2021 at 10:30:13PM +0200, Simon Streit wrote: >> > I just tried again, and called mount as: >> > --8<---------------cut here---------------start------------->8--- >> > /run/setuid-programs/mount -t ~/test/ >> > --8<---------------cut here---------------end--------------->8--- >> > where URL is my remote URL share trying to mount it to local test dir, >> > where it fails with: >> > --8<---------------cut here---------------start------------->8--- >> > /run/current-system/profile/sbin/mount.davfs: program is not setuid root >> > --8<---------------cut here---------------end--------------->8--- >> >> So, '/run/setuid-programs/mount' is somehow resolving to >> '/run/current-system/profile/sbin/mount.davfs'? >> >> The executables in /run/setuid-programs are not supposed to be links. >> > > From the ./configure script in davfs2: > > I've attached a diff against guix and also a davfs.scm for building just > the modified davfs2. Can you try building it with `guix build -f > davfs.scm` and then use the mount.davfs from there to try mounting your > davfs mountpoint? Alright, I finally got your modified file into my system declaration to test it. Guix has a steep learning curve, and am glad to be getting better at hacking on it every now and then. Now this error message doesn't appear any more. While entering `mount.davfs host ~/foo`, I get a: --8<---------------cut here---------------start------------->8--- bash: /home/ss2/.guix-profile/sbin/mount.davfs: No such file or directory --8<---------------cut here---------------end--------------->8--- and trying it with `/run/setuid-programs/mount.davfs host ~/foo`: --8<---------------cut here---------------start------------->8--- /run/setuid-programs/mount.davfs: no entry for /home/ss2/foo found in /etc/fstab --8<---------------cut here---------------end--------------->8--- Which has to do with the fact that this mount does not exist in /etf/fstab. But so far there is no way to put an URL into system declaration. The manual states that there can only be a file system label, UUID or the name of a /dev node. So I simply tested it by manually adding a mount to /etc/fstab, and it didn't work there either. I'm not really sure what to do now. Shall I post a bug report? And if, it may well be necessary to extend the file-systems module to accommodate webdav mount points. I'm not sure if it is high on anyone's agenda, or if I could make a feature request to have this implemented. It seems to me, that it doesn't happen that often someone would need to mount a webdav. Cheers Simon