rpms/libselinux/devel libselinux-rhat.patch, 1.145, 1.146 libselinux.spec, 1.310, 1.311

Daniel J Walsh (dwalsh) fedora-extras-commits at redhat.com
Fri Jan 25 16:11:48 UTC 2008


Author: dwalsh

Update of /cvs/extras/rpms/libselinux/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv21192

Modified Files:
	libselinux-rhat.patch libselinux.spec 
Log Message:
* Fri Jan 25 2008 Dan Walsh <dwalsh at redhat.com> - 2.0.49-2
- Fix audit2why to grab latest policy versus the one selected by the kernel


libselinux-rhat.patch:

Index: libselinux-rhat.patch
===================================================================
RCS file: /cvs/extras/rpms/libselinux/devel/libselinux-rhat.patch,v
retrieving revision 1.145
retrieving revision 1.146
diff -u -r1.145 -r1.146
--- libselinux-rhat.patch	23 Jan 2008 21:52:01 -0000	1.145
+++ libselinux-rhat.patch	25 Jan 2008 16:11:42 -0000	1.146
@@ -1,6 +1,6 @@
-diff --exclude-from=exclude -N -u -r nsalibselinux/include/selinux/av_permissions.h libselinux-2.0.48/include/selinux/av_permissions.h
+diff --exclude-from=exclude -N -u -r nsalibselinux/include/selinux/av_permissions.h libselinux-2.0.49/include/selinux/av_permissions.h
 --- nsalibselinux/include/selinux/av_permissions.h	2007-11-15 15:52:46.000000000 -0500
-+++ libselinux-2.0.48/include/selinux/av_permissions.h	2008-01-23 14:39:58.000000000 -0500
++++ libselinux-2.0.49/include/selinux/av_permissions.h	2008-01-25 10:31:28.000000000 -0500
 @@ -900,6 +900,8 @@
  #define PACKET__SEND                              0x00000001UL
  #define PACKET__RECV                              0x00000002UL
@@ -10,9 +10,29 @@
  #define KEY__VIEW                                 0x00000001UL
  #define KEY__READ                                 0x00000002UL
  #define KEY__WRITE                                0x00000004UL
-diff --exclude-from=exclude -N -u -r nsalibselinux/src/matchpathcon.c libselinux-2.0.48/src/matchpathcon.c
+diff --exclude-from=exclude -N -u -r nsalibselinux/src/audit2why.c libselinux-2.0.49/src/audit2why.c
+--- nsalibselinux/src/audit2why.c	2008-01-23 16:47:07.000000000 -0500
++++ libselinux-2.0.49/src/audit2why.c	2008-01-25 10:58:28.000000000 -0500
+@@ -5,6 +5,7 @@
+ #include <getopt.h>
+ #include <limits.h>
+ #include <sepol/sepol.h>
++#include <sepol/policydb.h>
+ #include <sepol/policydb/services.h>
+ #include <Python.h>
+ #include <selinux/selinux.h>
+@@ -200,7 +201,7 @@
+ 			return 0;    // trigger exception
+ 		}
+ 	} else {
+-		vers = security_policyvers();
++		vers = sepol_policy_kern_vers_max();
+ 		if (vers < 0) {
+ 			snprintf(errormsg, sizeof(errormsg), 
+ 				 "Could not get policy version:  %s\n",
+diff --exclude-from=exclude -N -u -r nsalibselinux/src/matchpathcon.c libselinux-2.0.49/src/matchpathcon.c
 --- nsalibselinux/src/matchpathcon.c	2007-09-28 09:48:58.000000000 -0400
-+++ libselinux-2.0.48/src/matchpathcon.c	2008-01-23 14:39:58.000000000 -0500
++++ libselinux-2.0.49/src/matchpathcon.c	2008-01-25 10:31:28.000000000 -0500
 @@ -2,6 +2,7 @@
  #include <string.h>
  #include <errno.h>
@@ -30,9 +50,9 @@
  	va_end(ap);
  }
  
-diff --exclude-from=exclude -N -u -r nsalibselinux/src/selinuxswig.i libselinux-2.0.48/src/selinuxswig.i
+diff --exclude-from=exclude -N -u -r nsalibselinux/src/selinuxswig.i libselinux-2.0.49/src/selinuxswig.i
 --- nsalibselinux/src/selinuxswig.i	2008-01-23 14:36:29.000000000 -0500
-+++ libselinux-2.0.48/src/selinuxswig.i	2008-01-23 14:39:58.000000000 -0500
++++ libselinux-2.0.49/src/selinuxswig.i	2008-01-25 10:31:28.000000000 -0500
 @@ -14,6 +14,7 @@
  
  %typedef unsigned mode_t;


Index: libselinux.spec
===================================================================
RCS file: /cvs/extras/rpms/libselinux/devel/libselinux.spec,v
retrieving revision 1.310
retrieving revision 1.311
diff -u -r1.310 -r1.311
--- libselinux.spec	23 Jan 2008 21:52:01 -0000	1.310
+++ libselinux.spec	25 Jan 2008 16:11:42 -0000	1.311
@@ -4,7 +4,7 @@
 Summary: SELinux library and simple utilities
 Name: libselinux
 Version: 2.0.49
-Release: 1%{?dist}
+Release: 2%{?dist}
 License: Public Domain
 Group: System Environment/Libraries
 Source: http://www.nsa.gov/selinux/archives/%{name}-%{version}.tgz
@@ -137,6 +137,9 @@
 %{python_sitearch}/selinux/*
 
 %changelog
+* Fri Jan 25 2008 Dan Walsh <dwalsh at redhat.com> - 2.0.49-2
+- Fix audit2why to grab latest policy versus the one selected by the kernel
+
 * Wed Jan 23 2008 Dan Walsh <dwalsh at redhat.com> - 2.0.49-1
 * Merged audit2why python binding from Dan Walsh.
 




More information about the fedora-extras-commits mailing list