Subject: Re: Question about HOSTALIASES changes
To: Atsushi Onoe <firstname.lastname@example.org>
From: Kazushi (Jam) Marukawa <email@example.com>
Date: 08/14/2000 02:30:30
On Aug 14, 15:59, Atsushi Onoe wrote:
> Subject: Re: Question about HOSTALIASES changes
> > since this modification changes the behavior of NetBSD. I
> > checked all messages in current-user but I couldn't find any
> > message.
> The discussions would be found in archive of tech-net on late April.
Thank you for pointing out it.
> > On the other hand, for example, rshd already checks a
> > ~/.rhosts file permission in lib/libc/net/rcmd.c. It just
> > changes effective uid while opening .rhosts file. This
> > implemetaion seems enough simple. Does following code have
> > a problem? Probably it has since I've just written this.
> > But is this idea wrong?
> Since hostalias() is in the library code and it is not called
> explicitly, hostalias() cannot know what uid/gid should be used
> to check permission. Suppose the application may call gethostbyname()
> even after it swaps ruid and euid.
That's true. Recent many applications I've read just set
only euid to access files, so I've forgotten others.
Setting all to euid value is possible. Moreover, old
applications were swapping euid and uid.
I'll read tech mailing list archive. Thanks again.