Karel Zak wrote:
ruid = getuid();
euid = geteuid();
cxt->restricted = (uid_t) 0 == ruid && ruid == euid ? 0 : 1;
in your case geteuid() returns 5013.
----
But my EUID isn't 5013 ("LOGINUID" is). That's the complaint/bug.
I looked at 'id': it doesn't show euid:
Ishtar:/tmp> sudo bash -c 'id; echo "UID=$UID, EUID=$EUID"; /bin/mount
devpts /tmp/mnt -t devpts'
uid=0(root) gid=0(root) groups=...
UID=0, EUID=0
mount: only root can use "--types" option (effective UID is 5013)
I also mentioned I'm using
'sudo', which also sets both the UID & EUID to the new USER (unless
you go out of your way to configure it not to do so -- in which case
many things don't function normally -- including bash which would
operate in restricted mode (like rbash).
--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html