components/cups/patches/20-16182423.patch
author Sonam Gupta <sonam.x.gupta@oracle.com>
Sun, 17 Feb 2013 21:51:48 -0800
branchs11u1-sru
changeset 2495 eb04a6ca141d
permissions -rw-r--r--
15698471 cups should audit printing information in TX environments 14850597 TX printing is reported to print jobs even when request authorization fail. 16182423 Update error code for all the failed use of authorization records in CUPS 16182458 Print 3 files requesting nolabel and nobanner should produce 6 audit records 16201093 For remote print requests, the path token in AR from GZ needs modification

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