components/cups/patches/20-16182423.patch
author Rich Burridge <rich.burridge@oracle.com>
Tue, 02 May 2017 17:33:26 -0700
changeset 7964 d9801318ed3d
parent 1150 b6dd488e8bb7
permissions -rw-r--r--
25981468 Build ilmbase and openexr with the GNU compilers

--- 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);
           }