svc_getcaller in Solaris 2 - does it work ?

svc_getcaller in Solaris 2 - does it work ?

Post by Rob McMah » Sat, 28 May 1994 17:56:45



I'm trying to port an RPC program from Solaris 1 to Solaris 2.  Some of the
routines it provides are a bit sensitive ("DELUSERSFILES" springs to mind
...), so under Solaris 1 I used `svc_getcaller' to check the request was
coming from a privileged port on a trusted machine.  Trying the same thing on
Solaris 2 seems to return junk: svc_getcaller(rqstp->rq_xprt) returns things
like AF_INET port 34224 address 0.0.0.0.

I've tried cc vs. gcc, and running under inetd vs. not.  Can anyone guess from
this what I'm doing wrong ?  Can anyone confirm that this should work ?  Is
there a cleaner way to do this authentication ?

Cheers,

Rob
--
UUCP:   ...!mcsun!uknet!warwick!cudcv   PHONE:  +44 203 523037

Rob McMahon, Computing Services, Warwick University, Coventry CV4 7AL, England

 
 
 

1. Where does svc_getcaller live in Solaris 2.2 ?

I've a program which uses svc_getcaller() which I want to compile under
Solaris 2.2.  There is still a manual page for this routine, although it is
marked as superseded, but I'm damned if I can find the routine in any of the
libraries (my normal `nm -o /usr/lib/lib*.a /usr/ccs/lib/lib*.a | fgrep ...'
didn't get me anywhere).  I don't really want to get into `struct netbuf's if
I can help it, although I suppose if someone were to tell me I could just do
`sinp = (struct sockaddr_in *)netbufp->buf', then I might.

Cheers,

Rob
--
UUCP:   ...!mcsun!uknet!warwick!cudcv   PHONE:  +44 203 523037

Rob McMahon, Computing Services, Warwick University, Coventry CV4 7AL, England

2. xfishtank with 16 Bit screen depths ?

3. how do 'plug-ins' work?

4. Pre-compiled TCP-Wrappers for Solaris

5. IP Accounting doesn't work for PPP dial-ins :-(( ??

6. ? on ProFTPD as standalone.

7. Does uemacs really work ins SysV.2?

8. Squid?

9. In search of Solaris 2.5 Netscape Navigator 3.0 plug ins

10. It`s IMPORTANT!!!

11. Please Help....it′s a very small thing!!!!.PLEASE

12. Help me !!!!!! I have no Idea it′s crucial

13. svc_getcaller