|
From: <ew...@us...> - 2008-02-25 20:54:00
|
Revision: 2814
http://selinux.svn.sourceforge.net/selinux/?rev=2814&view=rev
Author: ewalsh
Date: 2008-02-25 12:53:58 -0800 (Mon, 25 Feb 2008)
Log Message:
-----------
applied r2811:2812 from trunk
Modified Paths:
--------------
branches/stable/1_0/libselinux/src/avc.c
Modified: branches/stable/1_0/libselinux/src/avc.c
===================================================================
--- branches/stable/1_0/libselinux/src/avc.c 2008-02-25 20:47:12 UTC (rev 2813)
+++ branches/stable/1_0/libselinux/src/avc.c 2008-02-25 20:53:58 UTC (rev 2814)
@@ -1004,10 +1004,12 @@
struct avc_entry_ref *aeref, void *auditdata)
{
struct av_decision avd = { 0, 0, 0, 0, 0 };
- int rc;
+ int errsave, rc;
rc = avc_has_perm_noaudit(ssid, tsid, tclass, requested, aeref, &avd);
+ errsave = errno;
avc_audit(ssid, tsid, tclass, requested, &avd, rc, auditdata);
+ errno = errsave;
return rc;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|