This is technically challenging. We would have to replace the
/usr/bin/sudo binary with the wrapper, as the PATH only contains
/usr/bin in some execution contexts. Moving setuid binaries around is a
risk at its own.
Further, we really want to enforce this hardening by making it
impossible to call sudo.
Felix
Actually I would prefer to not even have sudo installed, but as we use
the same container for privileged and non-privileged execution, this is
the workaround (and it also helps to issue a meaningful error message
on accidental sudo invocation).
AFAIK, there is no way to switch users, given that switching via su is
not possible as we don't set a password for root.
So yes, it's a security feature.
Felix