components/cups/patches/20-16182423.patch
author April Chin <april.chin@oracle.com>
Mon, 24 Mar 2014 11:33:41 -0700
branchs11-update
changeset 3002 baadf45ecbdd
parent 2490 ee4391c71c07
permissions -rw-r--r--
18299226 problem in PYTHON-MOD/LOGILAB-COMMON

--- scheduler/ipp.c	Thu Jan 17 01:48:12 2013
+++ scheduler/ipp.c	Thu Jan 17 01:47:45 2013
@@ -128,6 +128,7 @@
 #include <deflt.h>
 #include <auth_attr.h>
 #include <secdb.h>
+#include <bsm/adt_event.h>
 #endif /* HAVE_TSOL */
 
 /*
@@ -1523,7 +1524,7 @@
            * print request will fail since user
            * does not have the required authorization.
            */
-	  cups_audit_print_request_denial(con, NULL, printer, -1, EACCES);
+	  cups_audit_print_request_denial(con, NULL, printer, -1, ADT_FAIL_VALUE_AUTH);
 	  send_http_error(con, HTTP_UNAUTHORIZED, printer);
 	  return (NULL);
         }
@@ -1546,7 +1547,7 @@
              * print request will fail since user
              * does not have the required authorization.
              */
-            cups_audit_print_request_denial(con, NULL, printer, -1, EACCES);
+            cups_audit_print_request_denial(con, NULL, printer, -1, ADT_FAIL_VALUE_AUTH);
             send_http_error(con, HTTP_UNAUTHORIZED, printer);
             return (NULL);
           }