From: ewalsh@tycho.nsa.gov (Eamon Walsh)
To: refpolicy@oss.tresys.com
Subject: [refpolicy] [PATCH] make consolekit_t a confined X client
Date: Tue, 10 Nov 2009 18:55:30 -0500 [thread overview]
Message-ID: <4AF9FD72.1040501@tycho.nsa.gov> (raw)
In-Reply-To: <4AEF0907.1040806@redhat.com>
On 11/02/2009 11:29 AM, Daniel J Walsh wrote:
> On 11/02/2009 09:08 AM, Christopher J. PeBenito wrote:
>
>> On Fri, 2009-10-30 at 19:13 -0400, Eamon Walsh wrote:
>>
>>> Note: I don't know what to put for the third argument to xserver_user_x_domain_template.
>>> tmpfs_t? user_tmpfs_t? Why does this template have a tmpfs argument anyway?
>>>
>> Its designed for full X apps that use the display for their tmpfs type
>> used for the shm. Does consolekit need a subset of whats in
>> xserver_user_x_domain_template?
>>
In the case of the consolekit ck-get-x11-server-pid program, it does not
create any shared memory segments, so no it does not need the tmpfs
argument.
The reason the tmpfs argument is there is so the X server can get
permission to read the shared memory segment created by the domain. I
wonder if the X server could simply be granted access to all such
segments in a blanket typealias rule. This would eliminate the need for
the tmpfs argument.
Barring that, I think it might be worthwhile to separate out the tmpfs
stuff into a separate interface. I'll see if I can put something together.
> I think there should be an interface called xserver_common_app()
> Which just takes the type, no setting up random tmpfs, or random template types. Too complicated, for any policy writer to understand.
>
>
I think we should be able to get there. Just need to work on the tmpfs
thing and maybe have another interface that doesn't call
xserver_object_types_template (it would use an already defined set of X
object types).
--
Eamon Walsh
National Security Agency
next prev parent reply other threads:[~2009-11-10 23:55 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-30 23:13 [refpolicy] [PATCH] make consolekit_t a confined X client Eamon Walsh
2009-11-02 14:08 ` Christopher J. PeBenito
2009-11-02 16:29 ` Daniel J Walsh
2009-11-10 23:55 ` Eamon Walsh [this message]
2009-11-11 14:46 ` Christopher J. PeBenito
2009-12-01 0:11 ` Eamon Walsh
2009-12-02 14:03 ` Christopher J. PeBenito
2009-12-03 15:08 ` Christopher J. PeBenito
2009-12-03 15:56 ` Dominick Grift
2009-12-09 1:49 ` Eamon Walsh
2009-12-09 18:25 ` Daniel J Walsh
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=4AF9FD72.1040501@tycho.nsa.gov \
--to=ewalsh@tycho.nsa.gov \
--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.