[libsepol/f18] Revert patch that was attempting to expand filetrans attributes, but is breaking filetrans rules
Daniel J Walsh
dwalsh at fedoraproject.org
Wed Sep 19 20:23:28 UTC 2012
commit 48125d8070bdd7be6d029857f1a8130e977ca83a
Author: rhatdan <dwalsh at redhat.com>
Date: Wed Sep 19 16:23:26 2012 -0400
Revert patch that was attempting to expand filetrans attributes, but is breaking filetrans rules
libsepol-rhat.patch | 19 ++-----------------
libsepol.spec | 5 ++++-
2 files changed, 6 insertions(+), 18 deletions(-)
---
diff --git a/libsepol-rhat.patch b/libsepol-rhat.patch
index ae0995b..257b5d3 100644
--- a/libsepol-rhat.patch
+++ b/libsepol-rhat.patch
@@ -12,7 +12,7 @@ index f90a48d..9152446 100644
__POLICYDB_CAPABILITY_MAX
};
diff --git a/libsepol/src/expand.c b/libsepol/src/expand.c
-index 2003eb6..79587af 100644
+index 2003eb6..a2d209c 100644
--- a/libsepol/src/expand.c
+++ b/libsepol/src/expand.c
@@ -49,6 +49,82 @@ typedef struct expand_state {
@@ -120,22 +120,7 @@ index 2003eb6..79587af 100644
cur_rule = rules;
while (cur_rule) {
-@@ -1370,19 +1456,27 @@ static int expand_filename_trans(expand_state_t *state, filename_trans_rule_t *r
- ebitmap_init(&ttypes);
-
- if (expand_convert_type_set(state->out, state->typemap,
-- &cur_rule->stypes, &stypes, 1)) {
-+ &cur_rule->stypes, &stypes, 0)) {
- ERR(state->handle, "Out of memory!");
- return -1;
- }
-
- if (expand_convert_type_set(state->out, state->typemap,
-- &cur_rule->ttypes, &ttypes, 1)) {
-+ &cur_rule->ttypes, &ttypes, 0)) {
- ERR(state->handle, "Out of memory!");
- return -1;
- }
+@@ -1383,6 +1469,14 @@ static int expand_filename_trans(expand_state_t *state, filename_trans_rule_t *r
mapped_otype = state->typemap[cur_rule->otype - 1];
diff --git a/libsepol.spec b/libsepol.spec
index 22dda65..eb67dab 100644
--- a/libsepol.spec
+++ b/libsepol.spec
@@ -1,7 +1,7 @@
Summary: SELinux binary policy manipulation library
Name: libsepol
Version: 2.1.8
-Release: 1%{?dist}
+Release: 2%{?dist}
License: LGPLv2+
Group: System Environment/Libraries
Source: http://www.nsa.gov/selinux/archives/libsepol-%{version}.tgz
@@ -99,6 +99,9 @@ exit 0
/%{_lib}/libsepol.so.1
%changelog
+* Wed Sep 19 2012 Dan Walsh <dwalsh at redhat.com> - 2.1.8-2
+- Revert patch that was attempting to expand filetrans attributes, but is breaking filetrans rules
+
* Thu Sep 13 2012 Dan Walsh <dwalsh at redhat.com> - 2.1.8-1
- Update to upstream
* fix neverallow checking on attributes
More information about the scm-commits
mailing list