All of lore.kernel.org
 help / color / mirror / Atom feed
From: guido@trentalancia.com (Guido Trentalancia)
To: refpolicy@oss.tresys.com
Subject: [refpolicy] refpolicy-2.20101213 (mcs) and dbus messages
Date: Wed, 12 Jan 2011 22:32:10 +0100	[thread overview]
Message-ID: <1294867930.1731.34.camel@tesla.lan> (raw)

Hello,

I have just built and installed refpolicy-2.20101213 (mcs) but I get
problems with dbus, such as the following:

Jan 11 18:54:04 tesla gnome-session[2744]: WARNING: Could not connect to
ConsoleKit: An SELinux policy prevents this sender from sending this
message to this recipient (rejected message had sender "(unset)"
interface "org.freedesktop.DBus" member "Hello" error name "(unset)"
destination "org.freedesktop.DBus")
Jan 11 07:41:59 tesla gdm-binary[2513]: WARNING: Couldn't connect to
system bus: An SELinux policy prevents this sender from sending this
message to this recipient (rejected message had sender "(unset)"
interface "org.freedesktop.DBus" member "Hello" error name "(unset)"
destination "org.freedesktop.DBus")
Jan 12 21:58:29 tesla pulseaudio[31181]: hal-util.c: Unable to contact
DBUS system bus: org.freedesktop.DBus.Error.AccessDenied: An SELinux
policy prevents this sender from sending this message to this recipient
(rejected message had sender "(unset)" interface "org.freedesktop.DBus"
member "Hello" error name "(unset)" destination "org.freedesktop.DBus")

or in terms of audit, things like:

type=USER_AVC msg=audit(1294728121.875:414): user pid=6167 uid=81
auid=4294967295 ses=4294967295
subj=system_u:system_r:local_login_t:s0-s0:c0.c1023 msg='avc:  denied
{ send_msg } for msgtype=method_call interface=org.freedesktop.DBus
member=Hello dest=org.freedesktop.DBus spid=6211
scontext=system_u:system_r:initrc_t:s0
tcontext=system_u:system_r:local_login_t:s0-s0:c0.c1023 tclass=dbus :
exe="/bin/dbus-daemon" sauid=81 hostname=? addr=? terminal=?'
type=USER_AVC msg=audit(1294728121.925:415): user pid=6167 uid=81
auid=4294967295 ses=4294967295
subj=system_u:system_r:local_login_t:s0-s0:c0.c1023 msg='avc:  denied
{ send_msg } for msgtype=method_call interface=org.freedesktop.DBus
member=Hello dest=org.freedesktop.DBus spid=6222
scontext=system_u:system_r:initrc_t:s0
tcontext=system_u:system_r:local_login_t:s0-s0:c0.c1023 tclass=dbus :
exe="/bin/dbus-daemon" sauid=81 hostname=? addr=? terminal=?'

Now, the dbus module is loaded:

dbus	1.14.0

I had to relabel /sbin/upstart by modifying the default contexts. In
fact, nowadays /sbin/init is often a symlink to /sbin/upstart (see
Debian, Fedora and possibly others) but unfortunately this is not
contemplated in the default file_contexts.

Anyway, after relabelling /sbin/upstart sestatus also looks fine:

SELinux status:                 enabled
SELinuxfs mount:                /selinux
Current mode:                   enforcing
Mode from config file:          permissive
Policy version:                 24
Policy from config file:        refpolicy-mcs

Process contexts:
Current context:
system_u:system_r:local_login_t:s0-s0:c0.c1023
Init context:                   system_u:system_r:init_t:s0
/sbin/mingetty                  system_u:system_r:getty_t:s0

So, what is missing ? Any idea on how to sort this out would be greatly
appreciated !

Regards,

Guido

             reply	other threads:[~2011-01-12 21:32 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-12 21:32 Guido Trentalancia [this message]
2011-01-13  9:19 ` [refpolicy] refpolicy-2.20101213 (mcs) and dbus messages Dominick Grift
2011-01-13 12:25   ` Guido Trentalancia
2011-01-13 12:34     ` Dominick Grift
     [not found]       ` <1294931759.3153.25.camel@tesla.lan>
2011-01-13 15:38         ` Dominick Grift
2011-01-13 19:24           ` Guido Trentalancia
2011-01-13 19:57             ` Dominick Grift
2011-01-13 21:37               ` Guido Trentalancia
2011-01-13 21:43                 ` Dominick Grift
2011-01-13 23:15                   ` Guido Trentalancia
2011-01-14  9:34                     ` Dominick Grift
2011-01-14 14:27                       ` Guido Trentalancia
2011-01-14 14:36                         ` Dominick Grift
2011-01-14 14:55                           ` Guido Trentalancia
2011-01-15 15:06                       ` Guido Trentalancia
  -- strict thread matches above, loose matches on Subject: below --
2011-01-13 15:21 Guido Trentalancia
2011-01-13 15:45 ` Dominick Grift
2011-01-13 19:49   ` Guido Trentalancia
2011-01-13 18:51     ` 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=1294867930.1731.34.camel@tesla.lan \
    --to=guido@trentalancia.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.