All of lore.kernel.org
 help / color / mirror / Atom feed
From: dominick.grift@gmail.com (grift)
To: refpolicy@oss.tresys.com
Subject: [refpolicy] [PATCH 8/9] Allow capability block_suspend to system_dbusd_t
Date: Tue, 18 Dec 2012 17:20:01 +0100	[thread overview]
Message-ID: <1355847601.1849.35.camel@localhost> (raw)
In-Reply-To: <20121218101839.50e371f6@soldur.bigon.be>

On Tue, 2012-12-18 at 10:18 +0100, Laurent Bigonville wrote:
> Le Tue, 18 Dec 2012 09:44:37 +0100,
> grift <dominick.grift@gmail.com> a ?crit :
> 
> > What is "host"
> 
> $ whatis host
> host (1)             - DNS lookup utility
> 
> > can you do a ps auxZ | grep system_dbusd_t
> 
> $ ps auxZ | grep system_dbusd_t
> system_u:system_r:system_dbusd_t:s0-s0:c0.c1023 message+ 3066 0.0  0.0 41632 2560 ? Ssl 09:06   0:01 /usr/bin/dbus-daemon --system
> 
> I'll try to figure out which component is calling this.
> 
> Laurent

Ok , turns out that this was actually due to the mislabeled nm
dispatcher.action program.

Now that it is correctly labeled NetworkManager_initc_exec_t and now
that system_dbusd_t can domain transition to initrc_t via any " init
script file type"  this no longer happens for system_dbusd_t.

Instead we need to allow initrc_t the block suspend capability2

We also tried to label the action program NetworkManager_exec_t but that
caused many other denials and since the same program in a different
location was already also NetworkManager_initrc_exec_t we decided to
stick to that for the sake of uniformity and because we trust that the
decision to label it NetworkManager_initrc_exec_t was well thought out.

By the way, this also made me realize that dbus session domains probably
also should not need block suspend capability.

I ported that rule from Fedora earlier but i have commented it out
( push is pending ) because i would like to reproduce and see the avc
denial

  reply	other threads:[~2012-12-18 16:20 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-17 19:58 [refpolicy] [PATCH 1/9] Properly label nm-dispatcher.action on Debian Laurent Bigonville
2012-12-17 19:58 ` [refpolicy] [PATCH 2/9] Allow system_dbusd_t to transition to networkmanager_initrc_t Laurent Bigonville
2012-12-17 20:18   ` grift
2012-12-17 19:58 ` [refpolicy] [PATCH 3/9] policykit.fc: Properly label polkit-agent-helper-1 on Debian Laurent Bigonville
2012-12-17 20:39   ` grift
2012-12-17 19:58 ` [refpolicy] [PATCH 4/9] cups.fc: Properly label cups-pk-helper-mechanism " Laurent Bigonville
2012-12-17 20:40   ` grift
2012-12-17 19:58 ` [refpolicy] [PATCH 5/9] Allow pcscd the fsetid capability Laurent Bigonville
2012-12-17 20:40   ` grift
2012-12-17 19:58 ` [refpolicy] [PATCH 6/9] Allow networkmanager_t to read crypto_sysctl_t Laurent Bigonville
2012-12-17 20:41   ` grift
2012-12-17 19:58 ` [refpolicy] [PATCH 7/9] Allow virsh_t context to read sysctl_crypto_t Laurent Bigonville
2012-12-17 20:42   ` grift
2012-12-17 19:58 ` [refpolicy] [PATCH 8/9] Allow capability block_suspend to system_dbusd_t Laurent Bigonville
2012-12-17 20:38   ` grift
2012-12-18  8:31     ` Laurent Bigonville
2012-12-18  8:44       ` grift
2012-12-18  9:18         ` Laurent Bigonville
2012-12-18 16:20           ` grift [this message]
2012-12-17 19:58 ` [refpolicy] [PATCH 9/9] Allow cupsd_t to read cupsd_log_t Laurent Bigonville
2012-12-17 20:43   ` grift
2012-12-17 20:39 ` [refpolicy] [PATCH 1/9] Properly label nm-dispatcher.action on Debian 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=1355847601.1849.35.camel@localhost \
    --to=dominick.grift@gmail.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.