[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#37569: Mount does not honor 'user' option.
From: |
Diego Nicola Barbato |
Subject: |
bug#37569: Mount does not honor 'user' option. |
Date: |
Fri, 04 Oct 2019 08:59:22 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) |
Diego Nicola Barbato <address@hidden> writes:
> Hello Danny,
>
> Danny Milosavljevic <address@hidden> writes:
>
>> Hmm, how is that solved with other distributions? Is "mount" suid root
>> there?
>
> Indeed, in Debian both mount and umount are suid root:
>
> $ stat -c "%a %U:%G %n" /bin/*mount
> 4755 root:root /bin/fusermount
> 4755 root:root /bin/mount
> 4755 root:root /bin/umount
I've tried adding "mount" and "umount" to `setuid-programs' in my
operating-system config:
--8<---------------cut here---------------start------------->8---
(setuid-programs (cons*
#~(string-append #$util-linux "/bin/mount")
#~(string-append #$util-linux "/bin/umount")
%setuid-programs))
--8<---------------cut here---------------end--------------->8---
Mounting as an unprivileged user now works as expected (even the fancy
9p stuff). Is there any rationale for not adding "mount" and "umount"
to `%setuid-programs' by default?
Thanks,
Diego