From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id sBZvH4LwmmAIbAEAgWs5BA (envelope-from ) for ; Tue, 11 May 2021 23:00:50 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id kFcHG4LwmmB4RAAAbx9fmQ (envelope-from ) for ; Tue, 11 May 2021 21:00:50 +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 D6FE116479 for ; Tue, 11 May 2021 23:00:49 +0200 (CEST) Received: from localhost ([::1]:46836 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgZUm-0003Ly-EA for larch@yhetil.org; Tue, 11 May 2021 17:00:48 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44932) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lgZTE-0001jN-9D for help-guix@gnu.org; Tue, 11 May 2021 16:59:12 -0400 Received: from smtprelay08.ispgateway.de ([134.119.228.98]:2319) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lgZTC-0007bT-IO for help-guix@gnu.org; Tue, 11 May 2021 16:59:12 -0400 Received: from [93.195.160.220] (helo=milk) by smtprelay08.ispgateway.de with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1lgZSr-0001FS-Lr; Tue, 11 May 2021 22:58:49 +0200 From: Simon Streit To: Leo Famulari Subject: Re: mount.davfs: program is not setuid root References: Gcc: nnfolder+archive:sent.2021-05 Date: Tue, 11 May 2021 22:59:44 +0200 In-Reply-To: (Leo Famulari's message of "Tue, 11 May 2021 15:34:16 -0400") 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=134.119.228.98; envelope-from=lists@netpanic.org; helo=smtprelay08.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=1620766849; 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=rZUQFmaoL12LCcx1axdZrZdTeb3Q9S2bQFicqLtUdr4=; b=OatxqjH04AHViVQiOonjOju1peEa3pCXYAanOISySo8bnsp+Hq9INbqw+ZLlTdDCfyJ02H GbWwJNUcf2dwF2cLjYxf1Rdn8bZW8D5to4nSGsZEJjSjOcDqIc2qtGxBZoJh51tISh5FTG P9oIQ2gtm11iGz330iJPWqO2wsM+cWfznC5b1cm9F+C7v8gujYErzs5oLaldxaEtXe2AB0 URlE4/TzTM6otZxeKv/5fr0gwbY7fJz4U8ekJBCTanrQJn0Y9iVJU+9E/ZSQlg1ULbF5AC Ua23GtyxfhSQOOFb70KHu0EYh9s3K/OlJ9F8Bdv343C59NqAwxE0sDlS0MAxjA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1620766849; a=rsa-sha256; cv=none; b=NaNgQ7H8eThaA8MKh1f2QZoJzC/TYmDt0X3F3NTtLPlIM9RJJqOvrkgr10P75pUsvOHjCo EAIu+fbBHJTo1j6rKRBMD9kOk5gCZD07nSdvL2pNgDUlZcJDvD1bcbay20otgcTNhqZS+A nEf+GYHCCs1xVy9poTmC5L9w0xFntqWTT688Klrx+9QmWOpS0Bo6btIor/RO6wVNsCZ3vl skG1gqQbYyyAPh9LCceVCSmfLXiDhKdGkiQ3OEob9ssYU2sGhaJmrnGAo/8uR4Tqba6o95 +w1uGjn5n8BLT3hl3/iE5mQL0WrK3W+06HieiIaFJDef7mrAigmXcLPw1Q3M6g== 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: D6FE116479 X-Spam-Score: -2.45 X-Migadu-Scanner: scn0.migadu.com X-TUID: rNY4ho7tkhUG Leo Famulari writes: > On Tue, May 11, 2021 at 09:30:56PM +0200, Simon Streit wrote: >> Leo Famulari writes: >> >> > On Tue, May 11, 2021 at 07:42:40PM +0200, Simon Streit wrote: >> >> Thanks for posting the diff. I did manage to build the package locally, >> >> but that in itself isn't of much use. I'm afraid I have to ask now, how >> >> to I apply this package into my declaration so that it is available from >> >> my system to test? >> > >> > If I understand your use case correctly, you can use the built >> > mount.davfs program directly from /gnu/store, like this: >> > >> > $(guix build -f davfs2)/sbin/mount.davfs [...] >> >> hm.. alright, then I did test that already. It fails saying: >> --8<---------------cut here---------------start------------->8--- >> ./sbin/mount.davfs: program is not setuid root >> --8<---------------cut here---------------end--------------->8--- >> and nothing else. :/ > > Sorry, I don't remember the earlier discussion or what you are trying to > accomplish. But it's expected that nothing in /gnu/store is setuid. > You'd have to use sudo or become root. The problem is, that davfs2 mount points can't be mounted as user, despite the binary being setuid. To make that work I added a line in my declaration. But it doesn't work as expected. Hence Efraim's patch, that should test if this would make a difference. Mounting with as root has been working all the time and no errors are returned. So the next step would be to have this patched package put into my system declaration to test and see if setuid has been set now. My knowledge is to limited to go this far yet. Will just leave it as where it is for now. I don't need to access this mount point very often. Cheers, Simon