Add support for substituting bools to sesearch and seinfo
This commit is contained in:
parent
9bac5f8821
commit
fa48245323
24
0014-boolsub.patch
Normal file
24
0014-boolsub.patch
Normal file
@ -0,0 +1,24 @@
|
||||
diff -up ./setools-3.3.7/secmds/seinfo.c~ ./setools-3.3.7/secmds/seinfo.c
|
||||
--- ./setools-3.3.7/secmds/seinfo.c~ 2013-03-14 15:26:31.467121596 -0400
|
||||
+++ ./setools-3.3.7/secmds/seinfo.c 2013-03-14 15:35:20.154650517 -0400
|
||||
@@ -1705,7 +1705,7 @@ int main(int argc, char **argv)
|
||||
case 'b': /* conditional booleans */
|
||||
bools = 1;
|
||||
if (optarg != 0)
|
||||
- bool_name = optarg;
|
||||
+ bool_name = selinux_boolean_sub(optarg);
|
||||
break;
|
||||
case OPT_INITIALSID:
|
||||
isids = 1;
|
||||
diff -up ./setools-3.3.7/secmds/sesearch.c~ ./setools-3.3.7/secmds/sesearch.c
|
||||
--- ./setools-3.3.7/secmds/sesearch.c~ 2013-03-14 15:26:31.539121944 -0400
|
||||
+++ ./setools-3.3.7/secmds/sesearch.c 2013-03-14 15:34:36.615445562 -0400
|
||||
@@ -1056,7 +1056,7 @@ int main(int argc, char **argv)
|
||||
printf("Missing boolean for -b (--bool)\n");
|
||||
exit(1);
|
||||
}
|
||||
- cmd_opts.bool_name = strdup(optarg);
|
||||
+ cmd_opts.bool_name = strdup(selinux_boolean_sub(optarg));
|
||||
if (!cmd_opts.bool_name) {
|
||||
fprintf(stderr, "%s\n", strerror(errno));
|
||||
exit(1);
|
@ -5,7 +5,7 @@
|
||||
|
||||
Name: setools
|
||||
Version: %{setools_maj_ver}.%{setools_min_ver}
|
||||
Release: 34%{?dist}
|
||||
Release: 35%{?dist}
|
||||
License: GPLv2
|
||||
URL: http://oss.tresys.com/projects/setools
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
||||
@ -25,6 +25,7 @@ Patch10: 0010-selinux_current_policy_path.patch
|
||||
Patch11: 0011-setools-noship.patch
|
||||
Patch12: 0012-seaudit.patch
|
||||
Patch13: 0013-swig.patch
|
||||
Patch14: 0014-boolsub.patch
|
||||
|
||||
Summary: Policy analysis tools for SELinux
|
||||
Group: System Environment/Base
|
||||
@ -185,6 +186,7 @@ This package includes the following graphical tools:
|
||||
%patch11 -p 1 -b .noship
|
||||
%patch12 -p 1 -b .seaudit
|
||||
%patch13 -p 1 -b .swig
|
||||
%patch14 -p 2 -b .boolsub
|
||||
%ifarch sparc sparcv9 sparc64 s390 s390x
|
||||
for file in `find . -name Makefile.am`; do
|
||||
sed -i -e 's:-fpic:-fPIC:' $file;
|
||||
@ -310,6 +312,9 @@ rm -rf ${RPM_BUILD_ROOT}
|
||||
%postun libs-tcl -p /sbin/ldconfig
|
||||
|
||||
%changelog
|
||||
* Thu Mar 14 2013 Dan Walsh <dwalsh@redhat.com> - 3.3.7-35
|
||||
- Add support for substituting bools to sesearch and seinfo
|
||||
|
||||
* Wed Jan 30 2013 Dan Walsh <dwalsh@redhat.com> - 3.3.7-34
|
||||
- Rebuild using pristine source from Tresys
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user