All of lore.kernel.org
 help / color / mirror / Atom feed
From: paul.moore@hp.com
To: selinux@tycho.nsa.gov
Cc: cpebenito@tresys.com, Paul Moore <paul.moore@hp.com>
Subject: [PATCH 3/4] Policy patches to add a MLS socket write-to-clearance interface
Date: Thu, 14 Dec 2006 14:24:17 -0500	[thread overview]
Message-ID: <20061214192904.819757000@hp.com> (raw)
In-Reply-To: 20061214192414.551708000@hp.com

From: Paul Moore <paul.moore@hp.com>

This adds a mls_socket_write_to_clearance() interface which is similar in
fashion to the mls_socket_read_to_clearance() interface.

Signed-off-by: Paul Moore <paul.moore@hp.com>
---
 policy/modules/kernel/mls.if |   20 ++++++++++++++++++++
 1 files changed, 20 insertions(+)

Index: refpolicy/policy/modules/kernel/mls.if
===================================================================
--- refpolicy.orig/policy/modules/kernel/mls.if
+++ refpolicy/policy/modules/kernel/mls.if
@@ -154,6 +154,26 @@ interface(`mls_socket_read_to_clearance'
 ########################################
 ## <summary>
 ##	Make specified domain MLS trusted
+##	for writing to sockets at any level
+##	that is dominated by the process clearance.
+## </summary>
+## <param name="domain">
+##	<summary>
+##	Domain allowed access.
+##	</summary>
+## </param>
+#
+interface(`mls_socket_write_to_clearance',`
+	gen_require(`
+		attribute mlsnetwritetoclr;
+	')
+
+	typeattribute $1 mlsnetwritetoclr;
+')
+
+########################################
+## <summary>
+##	Make specified domain MLS trusted
 ##	for writing to sockets at any level.
 ## </summary>
 ## <param name="domain">

--
paul moore
linux security @ hp

--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

  parent reply	other threads:[~2006-12-14 19:28 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-14 19:24 [PATCH 0/4] NetLabel and MLS fixes for Reference Policy paul.moore
2006-12-14 19:24 ` [PATCH 1/4] Policy patches to add NetLabel to support to various domains paul.moore
2006-12-14 19:24 ` [PATCH 2/4] Policy patches to add NetLabel support for Raw IP sockets paul.moore
2006-12-14 19:24 ` paul.moore [this message]
2006-12-14 19:24 ` [PATCH 4/4] Policy patches to add MLS read/write-to-clearance access to inetd_t paul.moore
2006-12-20 16:13 ` [PATCH 0/4] NetLabel and MLS fixes for Reference Policy Paul Moore

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=20061214192904.819757000@hp.com \
    --to=paul.moore@hp.com \
    --cc=cpebenito@tresys.com \
    --cc=selinux@tycho.nsa.gov \
    /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.