All of lore.kernel.org
 help / color / mirror / Atom feed
From: dwalsh@redhat.com (Daniel J Walsh)
To: refpolicy@oss.tresys.com
Subject: [refpolicy] useradd/passwd patch
Date: Thu, 25 Sep 2008 16:11:39 -0400	[thread overview]
Message-ID: <48DBF07B.30000@redhat.com> (raw)
In-Reply-To: <200809251712.08588.russell@coker.com.au>

Russell Coker wrote:
> On Thursday 25 September 2008 07:38, Mike Edenfield <kutulu@kutulu.org> wrote:
>> Allows passwd and useradd to execute unix_chkpwd (and related binaries)
>> to read and update user passwords.
> 
> Why would passwd and useradd ever need to do that?
> 
> unix_chkpwd is only ever called if the shadow file can't be read directly.  
> passwd needs direct read access and while it might be possible to write a 
> useradd that doesn't need read access (if based on the assumption 
> that /etc/shadow would never be in any way corrupt or out of sync 
> with /etc/paasswd), realistically it will always need such access.
> 
Perhaps they are using pam to verify password entry, pam defaults to
unix_chkpwd so this could cause the avc.  I don't see where this is a
problem though.

  reply	other threads:[~2008-09-25 20:11 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-24 21:38 [refpolicy] useradd/passwd patch Mike Edenfield
2008-09-25  7:12 ` Russell Coker
2008-09-25 20:11   ` Daniel J Walsh [this message]
2008-09-25 20:57     ` Russell Coker
2008-09-26 12:45       ` Daniel J Walsh
2008-09-26 20:30         ` Russell Coker

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=48DBF07B.30000@redhat.com \
    --to=dwalsh@redhat.com \
    --cc=refpolicy@oss.tresys.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.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.