Allow filename transitions to use + in a file name

This commit is contained in:
Dan Walsh 2012-04-03 18:58:26 -04:00
parent 071409ede1
commit 186fd9068c
2 changed files with 19 additions and 3 deletions

View File

@ -70,3 +70,16 @@ index 4882999..9dc2d32 100644
types.append(i)
if len(types) == 1:
rule.comment += "#!!!! The source type '%s' can write to a '%s' of the following type:\n# %s\n" % ( av.src_type, av.obj_class, ", ".join(types))
diff --git a/sepolgen/src/sepolgen/refparser.py b/sepolgen/src/sepolgen/refparser.py
index 9a79340..a4adbd8 100644
--- a/sepolgen/src/sepolgen/refparser.py
+++ b/sepolgen/src/sepolgen/refparser.py
@@ -245,7 +245,7 @@ def t_refpolicywarn(t):
t.lexer.lineno += 1
def t_IDENTIFIER(t):
- r'[a-zA-Z_\$\"][a-zA-Z0-9_\-\.\$\*\"~]*'
+ r'[a-zA-Z_\$\"][a-zA-Z0-9_\-\+\.\$\*\"~]*'
# Handle any keywords
t.type = reserved.get(t.value,'IDENTIFIER')
return t

View File

@ -7,7 +7,7 @@
Summary: SELinux policy core utilities
Name: policycoreutils
Version: 2.1.11
Release: 1%{?dist}
Release: 3%{?dist}
License: GPLv2
Group: System Environment/Base
# Based on git repository with tag 20101221
@ -342,8 +342,11 @@ fi
%{_bindir}/systemctl try-restart restorecond.service >/dev/null 2>&1 || :
%changelog
* Fri Mar 29 2012 Dan Walsh <dwalsh@redhat.com> - 2.1.11-2
- Change policycoreutils-python to require -devel package
* Tue Apr 3 2012 Dan Walsh <dwalsh@redhat.com> - 2.1.11-3
- Allow filename transitions to use + in a file name
* Fri Mar 30 2012 Dan Walsh <dwalsh@redhat.com> - 2.1.11-2
- Change policycoreutils-python to require selinux-policy-devel package
* Thu Mar 29 2012 Dan Walsh <dwalsh@redhat.com> - 2.1.11-1
- Update to upstream