bug-inetutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-inetutils] inetd patch: server args passed incorrectly


From: Sergey Poznyakoff
Subject: Re: [bug-inetutils] inetd patch: server args passed incorrectly
Date: Tue, 11 Nov 2003 11:44:25 +0200

Hi Dan,

> inetd from inetutils-1.4.2 does not pass server arguments correctly to the
> servers it invokes. This is due to the way the argv array passed to
> execv(2) is constructed: argv [0] is supposed to contain the program name,
> but is in fact ignored.

Not quite so. The last part of each inetd.conf entry takes the form

    server program arguments

where `server' is the full pathname to the program to be executed,
`program' is the value for argv[0] (sic!), `arguments' are any arguments
the program might need (see man inetd for more derails).
 
> This prevents servers that require command line arguments (e.g. rlogin -o)

Use the following line:

rlogin  stream  tcp  nowait  root  /usr/sbin/rlogin rlogin -o

If you wish to protect it by tcpd:

rlogin  stream  tcp  nowait  root  /usr/sbin/tcpd /usr/sbin/rlogin -o

Regards,
Sergey





reply via email to

[Prev in Thread] Current Thread [Next in Thread]