From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id PSxoI6mcgGAAfwAAgWs5BA (envelope-from ) for ; Wed, 21 Apr 2021 23:44:09 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id oOgNHqmcgGDmWwAA1q6Kng (envelope-from ) for ; Wed, 21 Apr 2021 21:44:09 +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 D8C2E2023F for ; Wed, 21 Apr 2021 23:44:08 +0200 (CEST) Received: from localhost ([::1]:34048 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lZKdj-0004Ze-NX for larch@yhetil.org; Wed, 21 Apr 2021 17:44:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42078) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lZKdO-0004Lz-80 for help-guix@gnu.org; Wed, 21 Apr 2021 17:43:46 -0400 Received: from smtprelay05.ispgateway.de ([80.67.18.28]:9739) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lZKdM-0002AQ-5E for help-guix@gnu.org; Wed, 21 Apr 2021 17:43:45 -0400 Received: from [93.195.160.205] (helo=milk) by smtprelay05.ispgateway.de with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92.3) (envelope-from ) id 1lZKbs-0008Kc-D2; Wed, 21 Apr 2021 23:42:12 +0200 From: Simon Streit To: Leo Famulari Subject: Re: mount.davfs: program is not setuid root References: Gcc: nnfolder+archive:sent.2021-04 Date: Wed, 21 Apr 2021 23:43:51 +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.28; envelope-from=lists@netpanic.org; helo=smtprelay05.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, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, 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=1619041449; 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=u/BG9rgKVuEYDp3IAb0REypnqStv1/+21HFiOYdloUw=; b=eTc2+UNPnTyZHpfGcAi2U6v7RUaopdZVFamAtccdWlGoXYmgw02luypQ71fii4yKCevHD6 8mLc1h9URFyYjm/zf6V94iGIGsyMb6HyCImhM0lBDwrxcGfuXLUHY2G/4QqjEJnB+l7Jq4 7JGgS/7FloTTwZ7Sr2H+QrrkTWb48sRCbp4XF4LEZTF42w1xJ9KhdEWaM0Tf76H3Q1YHi0 46caviHswdE2tFCk8PNuVkk85UZRq728Vzyaqiup7HNyPUe5Dc8APftJy9HldU+gLnNIRL zAEk8c+vBi+KI2yVfiGePeT0/E/hn+oQne1qOqav1YvsK14Ck2Nq8DBtHpNDpA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1619041449; a=rsa-sha256; cv=none; b=HRugyGTeqiKdSO4pgfAbxmDxbizByv9174w+scapxp4l/axyqkgah2crXzxaRHt8iOmX0/ uQTs0yWcu7YEE78Kpx4sQDBtr66f23xiA3wMzYTNsC6MltQ+5HX+NpdwE3JLQrtFg5RakC UrZ5it3BEYmbWcTEbNHovReqxqwxPpQPk6DVYlkKESbIcsPgF73BPv2pN5iRcK51zJiIfK sq93Q2y20ld4a1zLcBgf9BVMQarOVUxxC9m2MCPDJZMmEMVWQ1a66EbhNu9APFwxRg7l/9 M/vtlSg2nq47GDLRKmpkCLSOeoUvz59dJ+R+u7oc85RYAvW6rcXH3rW4n1Wg1g== 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.44 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: D8C2E2023F X-Spam-Score: -2.44 X-Migadu-Scanner: scn0.migadu.com X-TUID: LrGqmirwBK3Y 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: > > Some influential environment variables: > CC C compiler command > CFLAGS C compiler flags > LDFLAGS linker flags, e.g. -L if you have libraries in a > nonstandard directory > LIBS libraries to pass to the linker, e.g. -l > CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if > you have headers in a nonstandard directory > CPP C preprocessor > dav_user if invoked by root, mount.davfs runs as this user [davfs2] > dav_group the group, the mount.davfs daemon belongs to [davfs2] > ssbindir where mount will search for mount-helpers [/sbin] > dav_localstatedir > directory to store pid-files in [/var/run] > dav_syscachedir > cache directory [/var/cache] > LINGUAS select languages for messages and documentation > > 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? Thanks for your reply. I'll come back to this next week. Hopefully I can test it before. Unfortunately, my time is very limited at the moment. Cheers Simon