There are lots of reasons why this is useful. One is a sysadm delegating
a certain well known service to an untrusted user. Another is sticking
Tcl HTTPD 1.1.1 (http://www.sunlabs.com/research/tcl/webtk/tclhttpd.html)
up without learning tcl's command to do suid and still putting it in
place of the Apache 1.1.1 httpd that never did work since somewhere in the
2.0.? range. I'm sure there are other applications.
Anyway, somebody have a patch that already does something like that?
I'm sure I could hack in a less elegant static solution (like
"if(portnum=80&&uid==12345) goto ok;" or whatever the code would say).
Wait ... hmm ... I can't find it in the kernel source. Is this a libc
thing?