mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Raphael Cohn <raphael.cohn@stormmq.com>
To: musl@lists.openwall.com
Subject: Re: ruserok et al
Date: Wed, 4 Dec 2013 18:13:52 +0000	[thread overview]
Message-ID: <CACCP0GrRu4FV4K01ehyzh031pB2QFqGZny0FU=4khkXeZ5M7Lw@mail.gmail.com> (raw)
In-Reply-To: <20131204170507.GE24286@brightrain.aerifal.cx>

[-- Attachment #1: Type: text/plain, Size: 2915 bytes --]

I'm not sure I'll get anywhere with upstream... There's other dubious stuff
in Linux PAM, too. Indeed a quick list of stuff that looks at least suspect
to my mind is:-

wheel (sudo et al are a better solution)
userdb (why? Isn't /etc/passwd already a local database?)
tally (defunct)
time (obsolecent; why restrict logins to certain times in this day and age
when not using time shared systems and dial up)
pwhistory (stores previous passwords ?potentially recoverably)
permit (insecure)
nologin (security risk; forces root to be special)
mail (old-fashioned and of limited use in a server or desktop today)
group (security risk; unnecessary extra complexity in addition to
/etc/group)
ftp (in 2013? And it reckons it's easily spoofed in its own man page)
debug (unnecessary)

but none of that has to do with musl (although dropping time means there's
less patching to do to support legacy NIS junk)...

Anyway, now I'm off-topic.


On 4 December 2013 17:05, Rich Felker <dalias@aerifal.cx> wrote:

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

[-- Attachment #2: Type: text/html, Size: 3736 bytes --]

  reply	other threads:[~2013-12-04 18:13 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
2013-12-04 18:13   ` Raphael Cohn [this message]
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='CACCP0GrRu4FV4K01ehyzh031pB2QFqGZny0FU=4khkXeZ5M7Lw@mail.gmail.com' \
    --to=raphael.cohn@stormmq.com \
    --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).