[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: mount.davfs: program is not setuid root
From: |
Efraim Flashner |
Subject: |
Re: mount.davfs: program is not setuid root |
Date: |
Tue, 20 Apr 2021 10:20:44 +0300 |
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 <URL> ~/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<lib dir> if you have libraries in a
nonstandard directory <lib dir>
LIBS libraries to pass to the linker, e.g. -l<library>
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
you have headers in a nonstandard directory <include dir>
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?
--
Efraim Flashner <efraim@flashner.co.il> אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
davfs-adjust-setuid-directory.diff
Description: Text document
davfs.scm
Description: Text document
signature.asc
Description: PGP signature
- mount.davfs: program is not setuid root, Simon Streit, 2021/04/16
- Re: mount.davfs: program is not setuid root, Leo Famulari, 2021/04/16
- Re: mount.davfs: program is not setuid root, Simon Streit, 2021/04/19
- Re: mount.davfs: program is not setuid root, Leo Famulari, 2021/04/19
- Re: mount.davfs: program is not setuid root, Efraim Flashner, 2021/04/20
- Re: mount.davfs: program is not setuid root,
Efraim Flashner <=
- Re: mount.davfs: program is not setuid root, Simon Streit, 2021/04/21
Re: mount.davfs: program is not setuid root, Simon Streit, 2021/04/19
Re: mount.davfs: program is not setuid root, Simon Streit, 2021/04/19