public inbox for gentoo-hardened@lists.gentoo.org
 help / color / mirror / Atom feed
From: Udo Siewert <algenib@lavabit.com>
To: gentoo-hardened@lists.gentoo.org
Subject: Re: [gentoo-hardened] SeLinux system_u:system_r:initrc_t inside KDE
Date: Thu, 11 Aug 2011 19:25:31 +0200	[thread overview]
Message-ID: <20110811192531.0f6ac64c@studio11c> (raw)
In-Reply-To: <CAPzO=NxCz+jsAkQVX_yvVt2+dgDSKBKHNtaDUjucvV1G8NxKpQ@mail.gmail.com>

On Thu, 11 Aug 2011 16:52:46 +0200
Sven Vermeulen <sven.vermeulen@siphos.be> wrote:

Hi,

> On Thu, Aug 11, 2011 at 2:38 PM, Udo Siewert <algenib@lavabit.com>
> wrote:
> 
> > don't use /etc/init.d/xdm to start KDE but start it by the 'startx'
> > command with an .xinitrc file in /home/user which should contain
> > 'exec startkde'.
> >
> >
> SELinux-wise, it is fine to use xdm, gdm, kdm or whatever. However,
> it is possible that our policies are not correct yet to handle this.
> So we'll need to figure that out first ;-)
> 
> What context does the gdm/xdm/kdm binary have on your system? Where
> is the binary located?

/usr/bin/kdm system_u:object_r:xdm_exec_t
/usr/bin/xdm system_u:object_r:xdm_exec_t

When starting KDE by /etc/init.d/xdm  'id -Z' ->
system_u:system_r:xdm_t

and all KDE processes -> system_u:system_r:xdm_t

Using the 'startx' command  'id-Z' ->
unconfined_u:unconfined_r:unconfined_t

KDE processes -> unconfined_u:unconfined_r:unconfined_t

which should be correctly.

> It looks like the context should be xdm_exec_t, offered through the
> xserver module. Is sec-policy/selinux-xserver installed on your
> system?

Nope, emerging fails due to file collisions.

Probably cause I've installed sec-policy/selinux-Desktop-2.20101213.

semodule -l 

[...]

xserver 3.5.0


Regards,

Udo








  reply	other threads:[~2011-08-11 17:26 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-10 18:57 [gentoo-hardened] SeLinux system_u:system_r:initrc_t inside KDE Radosław Smogura
2011-08-11 12:26 ` Mike Edenfield
2011-08-11 12:38 ` Udo Siewert
2011-08-11 14:52   ` Sven Vermeulen
2011-08-11 17:25     ` Udo Siewert [this message]
2011-08-12 22:25       ` Sven Vermeulen
2011-08-13  4:18         ` Udo Siewert
2011-08-15  1:17           ` Radosław Smogura
2011-08-13 18:33         ` Mike Edenfield
2011-08-14  9:25           ` Sven Vermeulen
2011-08-14 13:00             ` Udo Siewert
2011-08-14 13:02             ` Mike Edenfield
2011-08-14 13:27               ` Sven Vermeulen

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=20110811192531.0f6ac64c@studio11c \
    --to=algenib@lavabit.com \
    --cc=gentoo-hardened@lists.gentoo.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox