* Fri Aug 31 2007 Dan Walsh <dwalsh@redhat.com> 2.0.25-8

- Fix generated code for admin policy
This commit is contained in:
Daniel J Walsh 2007-08-31 21:17:12 +00:00
parent f6b16765a3
commit 7683888461
2 changed files with 11 additions and 8 deletions

View File

@ -8762,7 +8762,7 @@ diff --exclude-from=exclude -N -u -r nsapolicycoreutils/gui/system-config-selinu
+ app.stand_alone() + app.stand_alone()
diff --exclude-from=exclude -N -u -r nsapolicycoreutils/gui/templates/executable.py policycoreutils-2.0.25/gui/templates/executable.py diff --exclude-from=exclude -N -u -r nsapolicycoreutils/gui/templates/executable.py policycoreutils-2.0.25/gui/templates/executable.py
--- nsapolicycoreutils/gui/templates/executable.py 1969-12-31 19:00:00.000000000 -0500 --- nsapolicycoreutils/gui/templates/executable.py 1969-12-31 19:00:00.000000000 -0500
+++ policycoreutils-2.0.25/gui/templates/executable.py 2007-08-31 15:07:36.000000000 -0400 +++ policycoreutils-2.0.25/gui/templates/executable.py 2007-08-31 15:41:21.000000000 -0400
@@ -0,0 +1,222 @@ @@ -0,0 +1,222 @@
+# Copyright (C) 2007 Red Hat +# Copyright (C) 2007 Red Hat
+# see file 'COPYING' for use and warranty information +# see file 'COPYING' for use and warranty information
@ -8964,12 +8964,12 @@ diff --exclude-from=exclude -N -u -r nsapolicycoreutils/gui/templates/executable
+""" +"""
+ +
+if_initscript_admin=""" +if_initscript_admin="""
+ # Allow $2 to restart the apache service + # Allow $1 to restart the apache service
+ TEMPLATETYPE_script_domtrans($2) + TEMPLATETYPE_script_domtrans($1)
+ domain_role_change_exemption($2) + domain_role_change_exemption($1)
+ domain_obj_id_change_exemption($2) + domain_obj_id_change_exemption($1)
+ role_transition $1_r TEMPLATETYPE_script_exec_t system_r; + role_transition $2 TEMPLATETYPE_script_exec_t system_r;
+ allow $1_r system_r; + allow $2 system_r;
+""" +"""
+ +
+if_end_admin=""" +if_end_admin="""

View File

@ -6,7 +6,7 @@
Summary: SELinux policy core utilities Summary: SELinux policy core utilities
Name: policycoreutils Name: policycoreutils
Version: 2.0.25 Version: 2.0.25
Release: 7%{?dist} Release: 8%{?dist}
License: GPLv2+ License: GPLv2+
Group: System Environment/Base Group: System Environment/Base
Source: http://www.nsa.gov/selinux/archives/policycoreutils-%{version}.tgz Source: http://www.nsa.gov/selinux/archives/policycoreutils-%{version}.tgz
@ -200,6 +200,9 @@ if [ "$1" -ge "1" ]; then
fi fi
%changelog %changelog
* Fri Aug 31 2007 Dan Walsh <dwalsh@redhat.com> 2.0.25-8
- Fix generated code for admin policy
* Fri Aug 31 2007 Dan Walsh <dwalsh@redhat.com> 2.0.25-7 * Fri Aug 31 2007 Dan Walsh <dwalsh@redhat.com> 2.0.25-7
- Lots of fixes for role templates - Lots of fixes for role templates