All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chad Sellers <csellers@tresys.com>
To: Chad Hanson <chanson@TrustedCS.com>
Cc: SELinux List <selinux@tycho.nsa.gov>,
	Stephen Smalley <sds@tycho.nsa.gov>
Subject: Re: [PATCH] mls passwd policy
Date: Thu, 26 Jan 2006 21:58:57 -0500	[thread overview]
Message-ID: <43D98C71.9010601@tresys.com> (raw)
In-Reply-To: <20060126222637.GB13279@dhcp-236.il.tcs-sec.com>

Chad Hanson wrote:
> Below is a patch to enable generic user password changing at labels above s0.
> The passwd command only changes the shadow file and does not touch the
> password file. The chfn/chsh commands do not have MLS privileges, so there
> is not a downgrade channel at the current time.

At first look, chage is labeled passwd_exec_t as well, so that's a
bigger downgrade channel. So, if we want to make passwd a trusted
program, we have to split out chage into a separate domain, and make
sure nothing else can get into passwd_t.

That said, as Steve S. pointed out, passwd is still a downgrade channel.
It may be somewhat limited in bandwidth, but it's available to all users
of the system. So, we need to at least document these channels, as Steve
G. pointed out.

Chad Sellers

> 
> -Chad
> 
> 
> diff -Nur serefpolicy-2.2.4/policy/modules/admin/usermanage.te serefpolicy-2.2.4.new/policy/modules/admin/usermanage.te
> --- serefpolicy-2.2.4/policy/modules/admin/usermanage.te	2006-01-23 07:33:45.000000000 -0600
> +++ serefpolicy-2.2.4.new/policy/modules/admin/usermanage.te	2006-01-25 15:54:16.000000000 -0600
> @@ -328,6 +328,9 @@
>  
>  miscfiles_read_localization(passwd_t)
>  
> +mls_file_write_down(passwd_t)
> +mls_file_downgrade(passwd_t)
> +
>  seutil_dontaudit_search_config(passwd_t)
>  
>  userdom_use_unpriv_users_fd(passwd_t)
> 


-- 

----------------------
Chad Sellers
Tresys Technology, LLC
http://www.tresys.com


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

  reply	other threads:[~2006-01-27  2:58 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-26 22:26 [PATCH] mls passwd policy Chad Hanson
2006-01-27  2:58 ` Chad Sellers [this message]
  -- strict thread matches above, loose matches on Subject: below --
2006-01-27 16:46 Chad Hanson

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=43D98C71.9010601@tresys.com \
    --to=csellers@tresys.com \
    --cc=chanson@TrustedCS.com \
    --cc=sds@tycho.nsa.gov \
    --cc=selinux@tycho.nsa.gov \
    /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.