linux-man.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Nikola Forró" <nforro-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
To: Michael Kerrisk <mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: linux-man <linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: [patch] rcmd.3: Add missing condition concerning .rhosts file
Date: Mon, 04 Jan 2016 17:18:33 +0100	[thread overview]
Message-ID: <1451924313.4749.4.camel@redhat.com> (raw)

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

             reply	other threads:[~2016-01-04 16:18 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-04 16:18 Nikola Forró [this message]
     [not found] ` <1451924313.4749.4.camel-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2016-01-08 16:24   ` [patch] rcmd.3: Add missing condition concerning .rhosts file 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)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1451924313.4749.4.camel@redhat.com \
    --to=nforro-h+wxahxf7alqt0dzr+alfa@public.gmane.org \
    --cc=linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).