From: dominick.grift@gmail.com (Dominick Grift)
To: refpolicy@oss.tresys.com
Subject: [refpolicy] [PATCH v1 2/2] Implement files_create_all_files_as() for cachefilesd
Date: Sun, 23 Sep 2012 17:15:40 +0200 [thread overview]
Message-ID: <1348413340-23536-3-git-send-email-dominick.grift@gmail.com> (raw)
In-Reply-To: <1348413340-23536-1-git-send-email-dominick.grift@gmail.com>
Signed-off-by: Dominick Grift <dominick.grift@gmail.com>
---
policy/modules/kernel/files.if | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/policy/modules/kernel/files.if b/policy/modules/kernel/files.if
index e1e814d..d1e42ac 100644
--- a/policy/modules/kernel/files.if
+++ b/policy/modules/kernel/files.if
@@ -1182,6 +1182,24 @@ interface(`files_list_all',`
########################################
## <summary>
+## Create all files as is.
+## </summary>
+## <param name="domain">
+## <summary>
+## Domain allowed access.
+## </summary>
+## </param>
+#
+interface(`files_create_all_files_as',`
+ gen_require(`
+ attribute file_type;
+ ')
+
+ allow $1 file_type:kernel_service create_files_as;
+')
+
+########################################
+## <summary>
## Do not audit attempts to search the
## contents of any directories on extended
## attribute filesystems.
--
1.7.11.4
next prev parent reply other threads:[~2012-09-23 15:15 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-23 15:15 [refpolicy] [PATCH v1 0/2] Support cachefiles Dominick Grift
2012-09-23 15:15 ` [refpolicy] [PATCH v1 1/2] Declare a cachfiles device node type Dominick Grift
2012-09-23 15:15 ` Dominick Grift [this message]
2012-10-04 12:25 ` [refpolicy] [PATCH v1 0/2] Support cachefiles Christopher J. PeBenito
2012-10-04 12:42 ` Sven Vermeulen
2012-10-04 14:16 ` 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=1348413340-23536-3-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.