[DSE-Dev] Bug#849463: domain_auto_trans is deprecated

cgzones cgzones at googlemail.com
Tue Dec 27 12:56:26 UTC 2016


Package: refpolicy
Version: 2:2.20161023.1-3

The usage of the macro domain_auto_trans is deprecated.
Use domain_auto_transition_pattern instead.

---
 debian/example/example.if | 2 +-
 debian/policygentool      | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/debian/example/example.if b/debian/example/example.if
index e9308e5..de3c797 100644
--- a/debian/example/example.if
+++ b/debian/example/example.if
@@ -29,7 +29,7 @@ interface(`myapp_domtrans',`
  type myapp_t, myapp_exec_t;
  ')

- domain_auto_trans($1,myapp_exec_t,myapp_t)
+ domain_auto_transition_pattern($1,myapp_exec_t,myapp_t)

  allow $1 myapp_t:fd use;
  allow myapp_t $1:fd use;
diff --git a/debian/policygentool b/debian/policygentool
index 47afdd5..1180459 100644
--- a/debian/policygentool
+++ b/debian/policygentool
@@ -42,7 +42,7 @@ interface(`TEMPLATETYPE_domtrans',`
  type TEMPLATETYPE_t, TEMPLATETYPE_exec_t;
  ')

- domain_auto_trans($1,TEMPLATETYPE_exec_t,TEMPLATETYPE_t)
+ domain_auto_transition_pattern($1,TEMPLATETYPE_exec_t,TEMPLATETYPE_t)

  allow $1 TEMPLATETYPE_t:fd use;
  allow TEMPLATETYPE_t $1:fd use;
-- 
2.8.1



More information about the SELinux-devel mailing list