All of lore.kernel.org
 help / color / mirror / Atom feed
* RE: password policy question
@ 2006-01-25 18:55 Chad Hanson
  2006-01-25 19:21 ` JANAK DESAI
  0 siblings, 1 reply; 9+ messages in thread
From: Chad Hanson @ 2006-01-25 18:55 UTC (permalink / raw)
  To: Stephen Smalley, Chad Hanson; +Cc: JANAK DESAI, selinux


Very true that this is a downgrade channel. We should probably create
another boolean for the ability of disallowing the chsh/chfn access, similar
to ping, thus closing this channel.

> 
> On Wed, 2006-01-25 at 13:35 -0500, Chad Hanson wrote:
> > This isn't an arbitrary process, this is the passwd program running in
the
> > passwd_t domain. The only thing the "trusted" program does is alter
password
> > data. The password data itself isn't classified so downgrading is
allowed in
> > this controlled instance.
> 
> Yes, but it is the caller that provides the input data (the new
> password), which could be used to leak arbitrary data through the passwd
> file.  In the case of the password itself, the channel is constrained by
> the fact that the plaintext is not saved to the file, but there is still
> a channel under the control of the caller.  In the case of other passwd
> file fields settable via chfn/chsh and some forms of the passwd program
> (not sure about the RH one), you can leak arbitrary plaintext (subject
> only to length limitations).

--
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] 9+ messages in thread
* RE: password policy question
@ 2006-01-25 18:35 Chad Hanson
  2006-01-25 18:49 ` Stephen Smalley
  0 siblings, 1 reply; 9+ messages in thread
From: Chad Hanson @ 2006-01-25 18:35 UTC (permalink / raw)
  To: Stephen Smalley, JANAK DESAI; +Cc: selinux


MLS attributes of mlsfilewrite and mlsfiledowngrade should be on passwd_t

> 
> On Wed, 2006-01-25 at 13:00 -0500, JANAK DESAI wrote:
> > What happens if you have user that is defined with mls range of
> > s3 to s9. How would this user change their password? Looking at
> > the password policy, I couldn't figure out how that would work.
> 

That is correct, these attributes need to be used for password changing.


> In that case, if the passwd file was labeled s0, they wouldn't - they
> would have to ask an admin to do it for them.  Otherwise, you are
> allowing an arbitrary user process to downgrade info through 
> the passwd file, as I said.
> 

This isn't an arbitrary process, this is the passwd program running in the
passwd_t domain. The only thing the "trusted" program does is alter password
data. The password data itself isn't classified so downgrading is allowed in
this controlled instance.

-Chad

--
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] 9+ messages in thread
* password policy question
@ 2006-01-25 15:04 JANAK DESAI
  2006-01-25 16:40 ` Stephen Smalley
  0 siblings, 1 reply; 9+ messages in thread
From: JANAK DESAI @ 2006-01-25 15:04 UTC (permalink / raw)
  To: selinux


Hello,

I am looking at the serefpolicy-2.2.2 (downloaded this morning from 
fedora core
development SRPMS) and am trying to figure out how, in an mls 
environment, a
user logged in at anything other s0 would be able to change his/her 
password. I
expected to see a "typeattribute passwd_t mlsfilewrite" in the 
monolithic policy.conf
file that I generated. What am I missing?

I haven't installed this policy on my test machine. I just created the 
policy file for
a training class.

Thanks.

-Janak

--
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] 9+ messages in thread

end of thread, other threads:[~2006-01-26 14:32 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-25 18:55 password policy question Chad Hanson
2006-01-25 19:21 ` JANAK DESAI
  -- strict thread matches above, loose matches on Subject: below --
2006-01-25 18:35 Chad Hanson
2006-01-25 18:49 ` Stephen Smalley
2006-01-26 14:31   ` Steve G
2006-01-25 15:04 JANAK DESAI
2006-01-25 16:40 ` Stephen Smalley
2006-01-25 18:00   ` JANAK DESAI
2006-01-25 18:15     ` 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.