From: cpebenito@tresys.com (Christopher J. PeBenito)
To: refpolicy@oss.tresys.com
Subject: [refpolicy] gpg domains
Date: Wed, 8 Oct 2014 09:13:15 -0400 [thread overview]
Message-ID: <5435386B.9030801@tresys.com> (raw)
In-Reply-To: <1691561.ZPqvGCpHjc@russell.coker.com.au>
On 10/3/2014 4:47 AM, Russell Coker wrote:
> In Debian/Testing we have the gpg-agent launching the dbus session, which then
> launches the user session. So we have user_t -> gpg_agent_t -> user_dbusd_t
> -> user_t. Making this work for multiple user domains requires having
> multiple gpg_agent_t domains (which we apparently used to have).
>
> Removing the multiple $1_gpg_t domains without removing the
> user_t/unconfined_t/staff_t split doesn't seem to be viable.
>
> Also why do we have gpg_agent_t, gpg_helper_t, and gpg_pinentry_t? What
> benefit does this give us over having a single domain for GPG stuff that's other
> than gpg_t? What is the logic behind a gpg_pinentry_t/gpg_agent_t anyway?
> Are those things that can even be properly split?
I did some analysis, and it looks like the main gpg_agent_t difference
from gpg_t is not having any network access. Since gpg_agent_t is long
running and gpg_t isn't, I'd be inclined to keep it separate.
gpg_pinentry_t is typically short running like gpg_t and doesn't seem to
have significant differences other than the X-related perms, so I could
see gpg_pinentry_t potentially being folded back into gpg_t.
I'm not sure about gpg_helper_t, as I'm not familiar with the gpgkeys.*
commands. Based on the policy, I'm guessing that the gpg helper is/was
for separating out the network permissions from the gpg main process, so
the process with network access (e.g. to pull public keys from a network
server) was separated from the process with gpg secrets access. That
separation seems to have broken down over time, so the domain could
probably be dropped.
--
Chris PeBenito
Tresys Technology, LLC
www.tresys.com | oss.tresys.com
next prev parent reply other threads:[~2014-10-08 13:13 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-03 8:47 [refpolicy] gpg domains Russell Coker
2014-10-08 13:13 ` Christopher J. PeBenito [this message]
2014-10-10 9:07 ` Dominick Grift
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=5435386B.9030801@tresys.com \
--to=cpebenito@tresys.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.