Fix handling of semanage args

This commit is contained in:
Dan Walsh 2013-06-06 16:19:32 -04:00
parent b8c1b26e16
commit 39c0a6ec6a
2 changed files with 7 additions and 4 deletions

View File

@ -1,6 +1,6 @@
diff -up policycoreutils-2.1.14/semanage/semanage.semanage policycoreutils-2.1.14/semanage/semanage
--- policycoreutils-2.1.14/semanage/semanage.semanage 2013-06-05 13:24:34.958339017 -0400
+++ policycoreutils-2.1.14/semanage/semanage 2013-06-05 13:24:53.591429169 -0400
--- policycoreutils-2.1.14/semanage/semanage.semanage 2013-06-06 16:18:07.684562186 -0400
+++ policycoreutils-2.1.14/semanage/semanage 2013-06-06 16:18:20.773620042 -0400
@@ -1,5 +1,7 @@
#! /usr/bin/python -Es
-# Copyright (C) 2005-2012 Red Hat
@ -697,7 +697,7 @@ diff -up policycoreutils-2.1.14/semanage/semanage.semanage policycoreutils-2.1.1
+
+def make_args(sys_args):
+ args = []
+ for i in sys_args:
+ for i in sys_args[1:]:
+ if i == '-o':
+ args += [ "export", "-f" ]
+ continue

View File

@ -7,7 +7,7 @@
Summary: SELinux policy core utilities
Name: policycoreutils
Version: 2.1.14
Release: 50%{?dist}
Release: 51%{?dist}
License: GPLv2
Group: System Environment/Base
# Based on git repository with tag 20101221
@ -311,6 +311,9 @@ The policycoreutils-restorecond package contains the restorecond service.
%systemd_postun_with_restart restorecond.service
%changelog
* Thu Jun 6 2013 Dan Walsh <dwalsh@redhat.com> - 2.1.14-51
- Fix handling of semanage args
* Thu Jun 6 2013 Dan Walsh <dwalsh@redhat.com> - 2.1.14-50
- Fix sepolicy generate --confined_admin to generate tunables
- Add new interface to generate entrypoints for use with new gui