All of lore.kernel.org
 help / color / mirror / Atom feed
* root and change of passwords
@ 2005-01-07 19:09 DeadManMoving
  2005-01-11 13:59 ` Stephen Smalley
  0 siblings, 1 reply; 6+ messages in thread
From: DeadManMoving @ 2005-01-07 19:09 UTC (permalink / raw)
  To: sds; +Cc: SELinux

Hi,

i've recently find a bug in the implementation of SELinux in gentoo
(http://bugs.gentoo.org/show_bug.cgi?id=76701) and debian (well, at
least with md5 and shadow password enabled) that let root change other
users passwords even when he's not in sysadm_r:sysadm_t context.

I've then contacted the gentoo hardened team and told them about it.
They've asked me to fill a bug report and told me it was surely a
problem with pam and the SELinux patch for pam.

Willing to try to fix the problem by myself, i've made an ebuild for pam
with the latest SRPM of fedora pam implementation. That did not solve
the problem.

So i went back to the gentoo hardened team and told them my experience
with the fedora pam implementation. They then told me they were now
thinking the problem was with the passwd program from the shadow suite.

That was making a lot of sense since fedora do not use the passwd
program from the shadow suite but instead use the passwd suite (passwd
package and libuser package) from red hat.

Still willing to fix that, i've given the red hat passwd suite a try on
my gentoo installation and yes! it works quite well!

I say quite well (and here's my question) cause i see that root is still
able to change his own password even not in the sysadm_r:sysadm_t
context. Is that a desired behavior? Would that be easy to implement and
more secure if root could only change his own password when in the
sysadm_r:sysadm_t context?

Thanks a lot for your time,

Tony Lapointe


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2005-01-12 22:14 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-07 19:09 root and change of passwords DeadManMoving
2005-01-11 13:59 ` Stephen Smalley
2005-01-11 15:10   ` Christopher J. PeBenito
2005-01-11 15:59     ` Stephen Smalley
2005-01-11 16:06     ` Daniel J Walsh
2005-01-12 22:14   ` Stephen Smalley

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.