author | Stefan Teleman <stefan.teleman@oracle.com> |
Thu, 14 Feb 2013 18:44:43 -0800 | |
branch | s11-update |
changeset 2493 | 9911278899a3 |
parent 2490 | ee4391c71c07 |
permissions | -rw-r--r-- |
2490
ee4391c71c07
15698471 cups should audit printing information in TX environments
Sonam Gupta <sonam.x.gupta@oracle.com>
parents:
diff
changeset
|
1 |
--- scheduler/ipp.c Thu Jan 17 01:48:12 2013 |
ee4391c71c07
15698471 cups should audit printing information in TX environments
Sonam Gupta <sonam.x.gupta@oracle.com>
parents:
diff
changeset
|
2 |
+++ scheduler/ipp.c Thu Jan 17 01:47:45 2013 |
ee4391c71c07
15698471 cups should audit printing information in TX environments
Sonam Gupta <sonam.x.gupta@oracle.com>
parents:
diff
changeset
|
3 |
@@ -128,6 +128,7 @@ |
ee4391c71c07
15698471 cups should audit printing information in TX environments
Sonam Gupta <sonam.x.gupta@oracle.com>
parents:
diff
changeset
|
4 |
#include <deflt.h> |
ee4391c71c07
15698471 cups should audit printing information in TX environments
Sonam Gupta <sonam.x.gupta@oracle.com>
parents:
diff
changeset
|
5 |
#include <auth_attr.h> |
ee4391c71c07
15698471 cups should audit printing information in TX environments
Sonam Gupta <sonam.x.gupta@oracle.com>
parents:
diff
changeset
|
6 |
#include <secdb.h> |
ee4391c71c07
15698471 cups should audit printing information in TX environments
Sonam Gupta <sonam.x.gupta@oracle.com>
parents:
diff
changeset
|
7 |
+#include <bsm/adt_event.h> |
ee4391c71c07
15698471 cups should audit printing information in TX environments
Sonam Gupta <sonam.x.gupta@oracle.com>
parents:
diff
changeset
|
8 |
#endif /* HAVE_TSOL */ |
ee4391c71c07
15698471 cups should audit printing information in TX environments
Sonam Gupta <sonam.x.gupta@oracle.com>
parents:
diff
changeset
|
9 |
|
ee4391c71c07
15698471 cups should audit printing information in TX environments
Sonam Gupta <sonam.x.gupta@oracle.com>
parents:
diff
changeset
|
10 |
/* |
ee4391c71c07
15698471 cups should audit printing information in TX environments
Sonam Gupta <sonam.x.gupta@oracle.com>
parents:
diff
changeset
|
11 |
@@ -1523,7 +1524,7 @@ |
ee4391c71c07
15698471 cups should audit printing information in TX environments
Sonam Gupta <sonam.x.gupta@oracle.com>
parents:
diff
changeset
|
12 |
* print request will fail since user |
ee4391c71c07
15698471 cups should audit printing information in TX environments
Sonam Gupta <sonam.x.gupta@oracle.com>
parents:
diff
changeset
|
13 |
* does not have the required authorization. |
ee4391c71c07
15698471 cups should audit printing information in TX environments
Sonam Gupta <sonam.x.gupta@oracle.com>
parents:
diff
changeset
|
14 |
*/ |
ee4391c71c07
15698471 cups should audit printing information in TX environments
Sonam Gupta <sonam.x.gupta@oracle.com>
parents:
diff
changeset
|
15 |
- cups_audit_print_request_denial(con, NULL, printer, -1, EACCES); |
ee4391c71c07
15698471 cups should audit printing information in TX environments
Sonam Gupta <sonam.x.gupta@oracle.com>
parents:
diff
changeset
|
16 |
+ cups_audit_print_request_denial(con, NULL, printer, -1, ADT_FAIL_VALUE_AUTH); |
ee4391c71c07
15698471 cups should audit printing information in TX environments
Sonam Gupta <sonam.x.gupta@oracle.com>
parents:
diff
changeset
|
17 |
send_http_error(con, HTTP_UNAUTHORIZED, printer); |
ee4391c71c07
15698471 cups should audit printing information in TX environments
Sonam Gupta <sonam.x.gupta@oracle.com>
parents:
diff
changeset
|
18 |
return (NULL); |
ee4391c71c07
15698471 cups should audit printing information in TX environments
Sonam Gupta <sonam.x.gupta@oracle.com>
parents:
diff
changeset
|
19 |
} |
ee4391c71c07
15698471 cups should audit printing information in TX environments
Sonam Gupta <sonam.x.gupta@oracle.com>
parents:
diff
changeset
|
20 |
@@ -1546,7 +1547,7 @@ |
ee4391c71c07
15698471 cups should audit printing information in TX environments
Sonam Gupta <sonam.x.gupta@oracle.com>
parents:
diff
changeset
|
21 |
* print request will fail since user |
ee4391c71c07
15698471 cups should audit printing information in TX environments
Sonam Gupta <sonam.x.gupta@oracle.com>
parents:
diff
changeset
|
22 |
* does not have the required authorization. |
ee4391c71c07
15698471 cups should audit printing information in TX environments
Sonam Gupta <sonam.x.gupta@oracle.com>
parents:
diff
changeset
|
23 |
*/ |
ee4391c71c07
15698471 cups should audit printing information in TX environments
Sonam Gupta <sonam.x.gupta@oracle.com>
parents:
diff
changeset
|
24 |
- cups_audit_print_request_denial(con, NULL, printer, -1, EACCES); |
ee4391c71c07
15698471 cups should audit printing information in TX environments
Sonam Gupta <sonam.x.gupta@oracle.com>
parents:
diff
changeset
|
25 |
+ cups_audit_print_request_denial(con, NULL, printer, -1, ADT_FAIL_VALUE_AUTH); |
ee4391c71c07
15698471 cups should audit printing information in TX environments
Sonam Gupta <sonam.x.gupta@oracle.com>
parents:
diff
changeset
|
26 |
send_http_error(con, HTTP_UNAUTHORIZED, printer); |
ee4391c71c07
15698471 cups should audit printing information in TX environments
Sonam Gupta <sonam.x.gupta@oracle.com>
parents:
diff
changeset
|
27 |
return (NULL); |
ee4391c71c07
15698471 cups should audit printing information in TX environments
Sonam Gupta <sonam.x.gupta@oracle.com>
parents:
diff
changeset
|
28 |
} |