All of lore.kernel.org
 help / color / mirror / Atom feed
From: ewalsh@tycho.nsa.gov (Eamon Walsh)
To: refpolicy@oss.tresys.com
Subject: [refpolicy] [PATCH] make consolekit_t a confined X client
Date: Fri, 30 Oct 2009 19:13:02 -0400	[thread overview]
Message-ID: <4AEB72FE.60803@tycho.nsa.gov> (raw)

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?


commit fa343fbf30f96528e06a1b487dfef5e808f3b68b
Author: Eamon Walsh <ewalsh@tycho.nsa.gov>
Date:   Fri Oct 30 18:47:17 2009 -0400

    Make consolekit_t a confined X user.
    
    The program /usr/libexec/ck-get-x11-server-pid connects to the
    X server after a user login.  The program itself doesn't do
    anything except call getpeercred(), however Xlib helpfully
    creates some objects and reads properties in XOpenDisplay().
    
    TODO: Fix consolekit to use libxcb instead...
    
    Signed-off-by: Eamon Walsh <ewalsh@tycho.nsa.gov>

diff --git a/policy/modules/services/consolekit.te b/policy/modules/services/consolekit.te
index 1ead55d..ba53a09 100644
--- a/policy/modules/services/consolekit.te
+++ b/policy/modules/services/consolekit.te
@@ -108,6 +108,7 @@ optional_policy(`
 optional_policy(`
 	xserver_read_xdm_pid(consolekit_t)
 	xserver_read_user_xauth(consolekit_t)
+	xserver_user_x_domain_template(consolekit, consolekit_t, tmpfs_t)
 	corenet_tcp_connect_xserver_port(consolekit_t)
 ')
 



-- 

Eamon Walsh 
National Security Agency

             reply	other threads:[~2009-10-30 23:13 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-30 23:13 Eamon Walsh [this message]
2009-11-02 14:08 ` [refpolicy] [PATCH] make consolekit_t a confined X client Christopher J. PeBenito
2009-11-02 16:29   ` Daniel J Walsh
2009-11-10 23:55     ` Eamon Walsh
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=4AEB72FE.60803@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.