All of lore.kernel.org
 help / color / mirror / Atom feed
* Bug: mount doing bad security check: only root can use -types, (effective EUID is 5013)
@ 2017-06-05 23:07 L A Walsh
  2017-06-06  9:36 ` Karel Zak
  0 siblings, 1 reply; 10+ messages in thread
From: L A Walsh @ 2017-06-05 23:07 UTC (permalink / raw)
  To: util-linux

mount is Using util-linux 2.30-rc2 (libmount 2.30.0: smack, btrfs, mtab, 
debug).

Trying to mount any file system, thinks I have bad UID:

Ishtar:/mnt# /bin/mount /dev/tmpfs /mnt/tmpfs -t tmpfs
mount: only root can use "--types" option (effective UID is 5013)
Ishtar:/mnt# echo "$UID $EUID"
0 0

The previous version of mount works fine -- so it seems clear that the
new version of mount is doing something wrong.

Someone else had a problem w/mount doing some bad check
that wasn't the case.  Think they had the right bits (CAP_SYS_ADMIN),
but the mount command was ignoring caps and looking for UID==0.

But in this case, it "double" shouldn't matter, since I'm
running as root.









^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2017-06-20 11:15 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-05 23:07 Bug: mount doing bad security check: only root can use -types, (effective EUID is 5013) L A Walsh
2017-06-06  9:36 ` Karel Zak
2017-06-06 14:15   ` L A Walsh
2017-06-06 15:10     ` Karel Zak
2017-06-06 15:11     ` L A Walsh
2017-06-06 15:21       ` Tilman Schmidt
2017-06-06 16:03         ` Karel Zak
2017-06-06 16:10         ` L A Walsh
2017-06-06 17:12           ` Patch: ensure mount & umount are root-owned before setting SUID bit L A Walsh
2017-06-20 11:14             ` Karel Zak

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.