All of lore.kernel.org
 help / color / mirror / Atom feed
From: dac.override@gmail.com (Dominick Grift)
To: refpolicy@oss.tresys.com
Subject: [refpolicy] [PATCH] init: update the initrc_t domain policy
Date: Fri, 30 Dec 2016 21:20:55 +0100	[thread overview]
Message-ID: <29718ae9-d4b8-01fa-65c3-cf1d17cf4bbc@gmail.com> (raw)
In-Reply-To: <1483129169.3970.21.camel@trentalancia.net>

On 12/30/2016 09:19 PM, Guido Trentalancia via refpolicy wrote:
> On Fri, 30/12/2016 at 21.12 +0100, Dominick Grift via refpolicy wrote:
>> On 12/30/2016 09:09 PM, Guido Trentalancia via refpolicy wrote:
>>>
>>> On Fri, 30/12/2016 at 21.01 +0100, Dominick Grift via refpolicy
>>> wrote:
>>>>
>>>> On 12/30/2016 08:30 PM, Chris PeBenito via refpolicy wrote:
>>>>>
>>>>>
>>>>> On 12/29/16 17:49, Guido Trentalancia via refpolicy wrote:
>>>>>>
>>>>>>
>>>>>> Update the initrc_t domain policy in the init module with
>>>>>> some
>>>>>> missing permissions.
>>>>>>
>>>>>> Signed-off-by: Guido Trentalancia <guido@trentalancia.net>
>>>>>> ---
>>>>>>  policy/modules/kernel/terminal.if |   21
>>>>>> +++++++++++++++++++++
>>>>>>  policy/modules/system/init.te     |   19 +++++++++++++++++--
>>>>>>  2 files changed, 38 insertions(+), 2 deletions(-)
> 
> [...]
> 
>>>>>> +# plymouth
>>>>>> +kernel_stream_connect(initrc_t)
>>>>>
>>>>> Plymouth has a domain, so this seems unnecessary.
>>>>
>>>> Plymouthd is running from initramfs before policy is loaded. So
>>>> once
>>>> the
>>>> policy gets loaded and root is switched the kernel isid kicks in
>>>> and
>>>> associates kernel_t with the process
>>>
>>> Yes, I confirm. Plymouthd is running in the kernel_t domain because
>>> it
>>> is started before the policy is loaded.
>>>
>>
>> The question is then what is running in initrc_t in that event? is it
>> the plymouth client stream connecting to plymouthd?
>>
>> is the plymouth client an init_system_domain()?
> 
> The comment is misleading in some sense. It's plymouthd, I wrote
> "plymouth" referring to the package.
> 
> I'll fix the comment in the next version.

Yes ok, but then why does a process associated with initrc_t need to
stream connect to it?

what is that process running in initrc_t?

> 
> Regards,
> 
> Guido
> _______________________________________________
> refpolicy mailing list
> refpolicy at oss.tresys.com
> http://oss.tresys.com/mailman/listinfo/refpolicy
> 


-- 
Key fingerprint = 5F4D 3CDB D3F8 3652 FBD8  02D5 3B6C 5F1D 2C7B 6B02
https://sks-keyservers.net/pks/lookup?op=get&search=0x3B6C5F1D2C7B6B02
Dominick Grift

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 648 bytes
Desc: OpenPGP digital signature
Url : http://oss.tresys.com/pipermail/refpolicy/attachments/20161230/a3f202b8/attachment.bin 

  reply	other threads:[~2016-12-30 20:20 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-29 22:49 [refpolicy] [PATCH] init: update the initrc_t domain policy Guido Trentalancia
2016-12-30 19:30 ` Chris PeBenito
2016-12-30 20:01   ` Dominick Grift
2016-12-30 20:09     ` Guido Trentalancia
2016-12-30 20:12       ` Dominick Grift
2016-12-30 20:19         ` Guido Trentalancia
2016-12-30 20:20           ` Dominick Grift [this message]
2016-12-30 20:50             ` Guido Trentalancia
2016-12-30 20:52               ` Dominick Grift
2016-12-30 21:06                 ` Guido Trentalancia
2016-12-30 21:09                   ` Dominick Grift
2016-12-30 20:15   ` Guido Trentalancia
2016-12-30 20:17     ` Dominick Grift
2016-12-30 20:53     ` Guido Trentalancia
2016-12-31 15:43       ` Chris PeBenito
2016-12-31 16:05         ` Guido Trentalancia
2016-12-31 16:22           ` Chris PeBenito
2016-12-31 16:28             ` Guido Trentalancia
2016-12-30 22:16   ` Guido Trentalancia
2016-12-30 22:28 ` [refpolicy] [PATCH v2] " Guido Trentalancia

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=29718ae9-d4b8-01fa-65c3-cf1d17cf4bbc@gmail.com \
    --to=dac.override@gmail.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.