All of lore.kernel.org
 help / color / mirror / Atom feed
From: dominick.grift@gmail.com (Dominick Grift)
To: refpolicy@oss.tresys.com
Subject: [refpolicy] [PATCH 1/2] Declare a loop control device node type and label /dev/loop-control accordingly
Date: Fri, 31 Aug 2012 19:38:21 +0200	[thread overview]
Message-ID: <1346434702-30274-2-git-send-email-dominick.grift@gmail.com> (raw)
In-Reply-To: <1346434702-30274-1-git-send-email-dominick.grift@gmail.com>

Signed-off-by: Dominick Grift <dominick.grift@gmail.com>
---
 policy/modules/kernel/devices.fc | 1 +
 policy/modules/kernel/devices.te | 3 +++
 2 files changed, 4 insertions(+)

diff --git a/policy/modules/kernel/devices.fc b/policy/modules/kernel/devices.fc
index 84e7337..5214c08 100644
--- a/policy/modules/kernel/devices.fc
+++ b/policy/modules/kernel/devices.fc
@@ -57,6 +57,7 @@
 /dev/lirc[0-9]+		-c	gen_context(system_u:object_r:lirc_device_t,s0)
 /dev/lircm		-c	gen_context(system_u:object_r:mouse_device_t,s0)
 /dev/logibm		-c	gen_context(system_u:object_r:mouse_device_t,s0)
+/dev/loop-control	-c	gen_context(system_u:object_r:loop_control_device_t,s0)
 /dev/lp.*		-c	gen_context(system_u:object_r:printer_device_t,s0)
 /dev/mcelog		-c	gen_context(system_u:object_r:kmsg_device_t,mls_systemhigh)
 /dev/mei		-c	gen_context(system_u:object_r:mei_device_t,s0)
diff --git a/policy/modules/kernel/devices.te b/policy/modules/kernel/devices.te
index 17e0915..99fe460 100644
--- a/policy/modules/kernel/devices.te
+++ b/policy/modules/kernel/devices.te
@@ -115,6 +115,9 @@ dev_node(kvm_device_t)
 type lirc_device_t;
 dev_node(lirc_device_t)
 
+type loop_control_device_t;
+dev_node(loop_control_device_t)
+
 #
 # Type for /dev/mapper/control
 #
-- 
1.7.11.4

  reply	other threads:[~2012-08-31 17:38 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-31 17:38 [refpolicy] [PATCH 0/2] label some character device nodes Dominick Grift
2012-08-31 17:38 ` Dominick Grift [this message]
2012-09-05 17:45   ` [refpolicy] [PATCH 1/2] Declare a loop control device node type and label /dev/loop-control accordingly Christopher J. PeBenito
2012-08-31 17:38 ` [refpolicy] [PATCH 2/2] Declare a virtio port device type and label /dev/vport.* accordingly Dominick Grift
2012-09-04 10:28   ` Miroslav Grepl
2012-09-04 12:50     ` Dominick Grift
2012-09-04 18:31       ` Miroslav Grepl
2012-09-04 19:08         ` Dominick Grift
2012-09-04 19:23         ` 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=1346434702-30274-2-git-send-email-dominick.grift@gmail.com \
    --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.