|
From: <ssm...@us...> - 2008-01-28 13:05:19
|
Revision: 2762
http://selinux.svn.sourceforge.net/selinux/?rev=2762&view=rev
Author: ssmalley
Date: 2008-01-28 05:05:17 -0800 (Mon, 28 Jan 2008)
Log Message:
-----------
Author: Dan Walsh
Email: dw...@re...
Date: Fri, 25 Jan 2008 10:31:28 -0500
Fix audit2why to use sepol_policy_kern_vers_max() rather than
security_policyvers() as the upper bound for the search for
a policy file.
Modified Paths:
--------------
trunk/libselinux/src/audit2why.c
Modified: trunk/libselinux/src/audit2why.c
===================================================================
--- trunk/libselinux/src/audit2why.c 2008-01-25 19:06:56 UTC (rev 2761)
+++ trunk/libselinux/src/audit2why.c 2008-01-28 13:05:17 UTC (rev 2762)
@@ -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>
@@ -197,10 +198,10 @@
"unable to open %s: %s\n",
path, strerror(errno));
PyErr_SetString( PyExc_ValueError, errormsg);
- return 0; // trigger exception
+ return 1;
}
} else {
- vers = security_policyvers();
+ vers = sepol_policy_kern_vers_max();
if (vers < 0) {
snprintf(errormsg, sizeof(errormsg),
"Could not get policy version: %s\n",
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|