The point is, why do we need all the security-checking code if there will
never be a uid != 0 on the machine ever?
A CONFIG_NO_SECURITY option which lets GCC skip all the user+group+whatever
checks (or indeed the fields in the data structures) would probably be a
good idea for embedded situations where you want to squeeze every bit your
don't need out of the kernel.
Unfortunately, the simpleminded approach of
#define suser() 1
won't work because the kernel checks suser() last, so that a future version
of suser() can log the fact that it was needed.
-- Matthias Urlichs \ noris network GmbH / Xlink-POP Nürnberg Schleiermacherstraße 12 \ Linux+Internet / EMail: urlichs@noris.de 90491 Nürnberg (Germany) \ Consulting+Programming+Networking+etc'ing PGP: 1024/4F578875 1B 89 E2 1C 43 EA 80 44 15 D2 29 CF C6 C7 E0 DE Click <A HREF="http://info.noris.de/~smurf/finger">here</A>. 42