From: "Christopher J. PeBenito" <cpebenito@tresys.com>
To: "Serge E. Hallyn" <serue@us.ibm.com>
Cc: SELinux <selinux@tycho.nsa.gov>
Subject: Re: next try at refpolicy-gentoo patches
Date: Thu, 19 Jan 2006 17:48:37 -0500 [thread overview]
Message-ID: <1137710918.29815.384.camel@sgc> (raw)
In-Reply-To: <20060119203317.GA27395@sergelap.austin.ibm.com>
On Thu, 2006-01-19 at 14:33 -0600, Serge E. Hallyn wrote:
> The following set of patches lets me log in locally on a
> gentoo system in enforcing mode.
Merged, with one note,
> Third, I need to send sighld from user_t to local_login_t on login,
> else I get an endless series of error messages on console
> (login: waitpid (6328, NULL, 0) failed: No child processes)
> Is this really gentoo-specific?
With some digging, and discussion in the IRC channel, this one wasn't
Gentoo specific, and due to some missing IPC rules in the domain
transition to all user domains that local_login_t was using. I fixed
that, so this hunk isn't needed:
> Index: refpolicy/policy/modules/system/userdomain.if
> ===================================================================
> --- refpolicy.orig/policy/modules/system/userdomain.if
> +++ refpolicy/policy/modules/system/userdomain.if
> @@ -33,6 +33,10 @@ template(`base_user_template',`
> role $1_r types $1_t;
> allow system_r $1_r;
>
> + ifdef(`distro_gentoo',`
> + allow $1_t local_login_t:process { sigchld };
> + ')
> +
> # user pseudoterminal
> type $1_devpts_t;
> term_user_pty($1_t,$1_devpts_t)
--
Chris PeBenito
Tresys Technology, LLC
(410) 290-1411 x150
--
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.
prev parent reply other threads:[~2006-01-19 22:46 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-19 20:33 next try at refpolicy-gentoo patches Serge E. Hallyn
2006-01-19 21:11 ` Serge E. Hallyn
2006-01-19 22:48 ` Christopher J. PeBenito
2006-01-19 22:48 ` Christopher J. PeBenito [this message]
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=1137710918.29815.384.camel@sgc \
--to=cpebenito@tresys.com \
--cc=selinux@tycho.nsa.gov \
--cc=serue@us.ibm.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.