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] Use ps_process_pattern() in domain_read_state interfaces. Seem though that not everyone read domain state needs to be able to get attributes of target process types.
Date: Wed, 29 Aug 2012 19:59:42 +0200	[thread overview]
Message-ID: <1346263182-11122-1-git-send-email-dominick.grift@gmail.com> (raw)


Signed-off-by: Dominick Grift <dominick.grift@gmail.com>
diff --git a/policy/modules/kernel/domain.if b/policy/modules/kernel/domain.if
index 6a1e4d1..9f82171 100644
--- a/policy/modules/kernel/domain.if
+++ b/policy/modules/kernel/domain.if
@@ -623,10 +623,7 @@
 		attribute domain;
 	')
 
-	kernel_search_proc($1)
-	allow $1 domain:dir list_dir_perms;
-	read_files_pattern($1, domain, domain)
-	read_lnk_files_pattern($1, domain, domain)
+	ps_process_pattern($1, domain)
 ')
 
 ########################################
@@ -683,10 +680,7 @@
 		attribute domain, unconfined_domain_type;
 	')
 
-	kernel_search_proc($1)
-	allow $1 { domain -unconfined_domain_type }:dir list_dir_perms;
-	read_files_pattern($1, { domain -unconfined_domain_type }, { domain -unconfined_domain_type })
-	read_lnk_files_pattern($1, { domain -unconfined_domain_type }, { domain -unconfined_domain_type })
+	ps_process_pattern($1, { domain -unconfined_domain_type })
 
 	dontaudit $1 unconfined_domain_type:dir search_dir_perms;
 	dontaudit $1 unconfined_domain_type:file read_file_perms;

             reply	other threads:[~2012-08-29 17:59 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-29 17:59 Dominick Grift [this message]
2012-09-05 17:27 ` [refpolicy] [PATCH] Use ps_process_pattern() in domain_read_state interfaces. Seem though that not everyone read domain state needs to be able to get attributes of target process types Christopher J. PeBenito
2012-09-05 17:45   ` Dominick Grift
2012-09-05 18:16     ` Christopher J. PeBenito

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=1346263182-11122-1-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.