[selinux-policy: 3047/3172] Use ps_process_pattern to read state.

Daniel J Walsh dwalsh at fedoraproject.org
Thu Oct 7 23:31:08 UTC 2010


commit 23952dea2e360089e38fc122ba0398a953fdec43
Author: Dominick Grift <domg472 at gmail.com>
Date:   Mon Sep 20 15:19:44 2010 +0200

    Use ps_process_pattern to read state.

 policy/modules/services/postfix.if |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/policy/modules/services/postfix.if b/policy/modules/services/postfix.if
index 036373e..38857ec 100644
--- a/policy/modules/services/postfix.if
+++ b/policy/modules/services/postfix.if
@@ -273,7 +273,8 @@ interface(`postfix_read_local_state',`
 		type postfix_local_t;
 	')
 
-	read_files_pattern($1, postfix_local_t, postfix_local_t)
+	kernel_search_proc($1)
+	ps_process_pattern($1, postfix_local_t)
 ')
 
 ########################################
@@ -291,7 +292,8 @@ interface(`postfix_read_master_state',`
 		type postfix_master_t;
 	')
 
-	read_files_pattern($1, postfix_master_t, postfix_master_t)
+	kernel_search_proc($1)
+	ps_process_pattern($1, postfix_master_t)
 ')
 
 ########################################


More information about the scm-commits mailing list