* [patch] rcmd.3: Add missing condition concerning .rhosts file
@ 2016-01-04 16:18 Nikola Forró
[not found] ` <1451924313.4749.4.camel-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
0 siblings, 1 reply; 5+ messages in thread
From: Nikola Forró @ 2016-01-04 16:18 UTC (permalink / raw)
To: Michael Kerrisk; +Cc: linux-man
The list of conditions determining if iruserok() and ruserok()
functions automatically fail is incomplete. According to glibc
source code, the functions also fail if the .rhosts file
is hardlinked anywhere.
---
man3/rcmd.3 | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/man3/rcmd.3 b/man3/rcmd.3
index 33eae3c..f32fe52 100644
--- a/man3/rcmd.3
+++ b/man3/rcmd.3
@@ -200,8 +200,8 @@ in the local user's home directory is checked to see if the request for
service is allowed.
.PP
If this file does not exist, is not a regular file, is owned by anyone
-other than the user or the superuser, or is writable by anyone other
-than the owner, the check automatically fails.
+other than the user or the superuser, is writable by anyone other
+than the owner, or is hardlinked anywhere, the check automatically fails.
Zero is returned if the machine name is listed in the
.IR hosts.equiv
file, or the host and remote username are found in the
--
2.4.3
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 5+ messages in thread[parent not found: <1451924313.4749.4.camel-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>]
* Re: [patch] rcmd.3: Add missing condition concerning .rhosts file [not found] ` <1451924313.4749.4.camel-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> @ 2016-01-08 16:24 ` Michael Kerrisk (man-pages) [not found] ` <568FE2A5.3020809-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 2016-01-17 18:13 ` Michael Kerrisk (man-pages) 1 sibling, 1 reply; 5+ messages in thread From: Michael Kerrisk (man-pages) @ 2016-01-08 16:24 UTC (permalink / raw) To: nforro-H+wXaHxf7aLQT0dZR+AlfA Cc: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w, linux-man Hello Nikola, On 01/04/2016 05:18 PM, Nikola Forró wrote: > The list of conditions determining if iruserok() and ruserok() > functions automatically fail is incomplete. According to glibc > source code, the functions also fail if the .rhosts file > is hardlinked anywhere. Just to better document the patch, could you point to the relevant location in the glibc source code? Thanks, Michael > --- > man3/rcmd.3 | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/man3/rcmd.3 b/man3/rcmd.3 > index 33eae3c..f32fe52 100644 > --- a/man3/rcmd.3 > +++ b/man3/rcmd.3 > @@ -200,8 +200,8 @@ in the local user's home directory is checked to see if the request for > service is allowed. > .PP > If this file does not exist, is not a regular file, is owned by anyone > -other than the user or the superuser, or is writable by anyone other > -than the owner, the check automatically fails. > +other than the user or the superuser, is writable by anyone other > +than the owner, or is hardlinked anywhere, the check automatically fails. > Zero is returned if the machine name is listed in the > .IR hosts.equiv > file, or the host and remote username are found in the > -- Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Linux/UNIX System Programming Training: http://man7.org/training/ -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <568FE2A5.3020809-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>]
* Re: [patch] rcmd.3: Add missing condition concerning .rhosts file [not found] ` <568FE2A5.3020809-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> @ 2016-01-11 10:06 ` Nikola Forró [not found] ` <1452506817.5951.7.camel-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> 0 siblings, 1 reply; 5+ messages in thread From: Nikola Forró @ 2016-01-11 10:06 UTC (permalink / raw) To: Michael Kerrisk (man-pages); +Cc: linux-man On Fri, 2016-01-08 at 17:24 +0100, Michael Kerrisk (man-pages) wrote: > Just to better document the patch, could you point to the > relevant location in the glibc source code? > Sure. It's iruserfopen function in inet/rcmd.c [1]. [1] https://sourceware.org/git/?p=glibc.git;a=blob;f=inet/rcmd.c;hb=HEA D#l465 -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <1452506817.5951.7.camel-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>]
* Re: [patch] rcmd.3: Add missing condition concerning .rhosts file [not found] ` <1452506817.5951.7.camel-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> @ 2016-01-11 10:11 ` Nikola Forró 0 siblings, 0 replies; 5+ messages in thread From: Nikola Forró @ 2016-01-11 10:11 UTC (permalink / raw) To: Michael Kerrisk (man-pages); +Cc: linux-man On Mon, 2016-01-11 at 11:06 +0100, Nikola Forró wrote: > Sure. It's iruserfopen function in inet/rcmd.c [1]. > Sorry, fixed link: [1] https://sourceware.org/git/?p=glibc.git;a=blob;f=inet/rcmd.c;hb=HEAD#l465 -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [patch] rcmd.3: Add missing condition concerning .rhosts file [not found] ` <1451924313.4749.4.camel-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> 2016-01-08 16:24 ` Michael Kerrisk (man-pages) @ 2016-01-17 18:13 ` Michael Kerrisk (man-pages) 1 sibling, 0 replies; 5+ messages in thread From: Michael Kerrisk (man-pages) @ 2016-01-17 18:13 UTC (permalink / raw) To: nforro-H+wXaHxf7aLQT0dZR+AlfA Cc: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w, linux-man On 01/04/2016 05:18 PM, Nikola Forró wrote: > The list of conditions determining if iruserok() and ruserok() > functions automatically fail is incomplete. According to glibc > source code, the functions also fail if the .rhosts file > is hardlinked anywhere. Thanks, Nikola. Applied. Cheers, Michael > --- > man3/rcmd.3 | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/man3/rcmd.3 b/man3/rcmd.3 > index 33eae3c..f32fe52 100644 > --- a/man3/rcmd.3 > +++ b/man3/rcmd.3 > @@ -200,8 +200,8 @@ in the local user's home directory is checked to see if the request for > service is allowed. > .PP > If this file does not exist, is not a regular file, is owned by anyone > -other than the user or the superuser, or is writable by anyone other > -than the owner, the check automatically fails. > +other than the user or the superuser, is writable by anyone other > +than the owner, or is hardlinked anywhere, the check automatically fails. > Zero is returned if the machine name is listed in the > .IR hosts.equiv > file, or the host and remote username are found in the > -- Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Linux/UNIX System Programming Training: http://man7.org/training/ -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2016-01-17 18:13 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-04 16:18 [patch] rcmd.3: Add missing condition concerning .rhosts file Nikola Forró
[not found] ` <1451924313.4749.4.camel-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2016-01-08 16:24 ` Michael Kerrisk (man-pages)
[not found] ` <568FE2A5.3020809-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2016-01-11 10:06 ` Nikola Forró
[not found] ` <1452506817.5951.7.camel-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2016-01-11 10:11 ` Nikola Forró
2016-01-17 18:13 ` Michael Kerrisk (man-pages)
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).