mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Rich Felker <dalias@aerifal.cx>
To: musl@lists.openwall.com
Subject: Re: ruserok et al
Date: Wed, 4 Dec 2013 12:05:07 -0500	[thread overview]
Message-ID: <20131204170507.GE24286@brightrain.aerifal.cx> (raw)
In-Reply-To: <CACCP0GqVBiv78stBjVu25GhCzFO7otKSe_cdpi6KL6eq0o9E9g@mail.gmail.com>

On Wed, Dec 04, 2013 at 02:12:31PM +0000, Raphael Cohn wrote:
> Dear List,
> 
> Whilst compiling pam_rhosts in Linux PAM 1.1.8 (pam_rhosts.c), it tries to
> use the function 'ruserok'. I believe this, and its siblings, aren't in

This is part of the legacy rhosts API for source-IP-address-based
authentication. It's useless, dangerous, and really disturbing that
PAM even supports something that was obsolete and known-dangerous a
decade before PAM was invented... My first reaction would be to say
"patch it out and send a bug report upstream".

> musl. Quite correctly, I suspect - I presume these relate to the legacy 'r'
> commands that no one in their right mind should be using. I'll be patching
> my installation to remove this module from the build (*sigh* Linux pam
> doesn't make choosing a subset of modules easy).

Yes, this is the right solution, but we should try (diplomatically :)
to get upstream fixed too.

> Would it make sense, for completeness to add stubs to musl to do either:-
> - return the failure outcome;
> - or, return a nasty warning and a failure outcome? And a syslog on runtime
> use to really give users a kick?

A stub that just returns failure would not be such a bad thing, but
when it's such a harmful a function that only a single package has
been caught using, I'd rather try to get it fixed upstream.
Compatibility with broken apps/libs is a continuous stream of choices
whether to work around the brokenness in musl (often this has tiny
marginal cost but that cost builds up over time with lots of broken
packages) or make the efforts to get the upstream fixed.

> Alternatively, it might be a good idea to not do this, but have a wiki page
> somewhere listing deliberately unimplemented and stub functions.

That might be a good idea anyway even if we don't add more such
functions.

Rich


  reply	other threads:[~2013-12-04 17:05 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-04 14:12 Raphael Cohn
2013-12-04 17:05 ` Rich Felker [this message]
2013-12-04 18:13   ` Raphael Cohn
2013-12-04 18:34     ` Daniel Cegiełka

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=20131204170507.GE24286@brightrain.aerifal.cx \
    --to=dalias@aerifal.cx \
    --cc=musl@lists.openwall.com \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

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).