Re: external mount utilities and utab

Karel Zak
2013-11-14T08:39:15Z

On Wed, Nov 13, 2013 at 01:28:28PM -0500, Phillip Susi wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 11/4/2013 9:07 AM, Phillip Susi wrote:
> > Are you saying then that all of the helpers should now be using
> > libmount, and taking care of the utab updates themselves rather
> > than just having mount do it?
>
> ping... still wondering if the proper fix for this is to link
> mount.cifs with libmount and make it suid, or if mount needs fixed to
> do the utab update?

I have improved libmount (in git tree) and now it updates utab for the
helpers.

Anyway if your mount.cifs is not suid then user= does not make sense
and you also don't have to care about utab at all. For example on
Fedora we don't have suid mount.cifs for years.

IMHO it's better to minimize number of suid binaries. I guess that
the user= functionality has been introduced to mount regular
filesystems (ext2, ...) from removable devices.