author | Sonam Gupta <sonam.x.gupta@oracle.com> |
Sun, 17 Feb 2013 21:51:48 -0800 | |
branch | s11u1-sru |
changeset 2495 | eb04a6ca141d |
permissions | -rw-r--r-- |
2495
eb04a6ca141d
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 |
eb04a6ca141d
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 |
eb04a6ca141d
15698471 cups should audit printing information in TX environments
Sonam Gupta <sonam.x.gupta@oracle.com>
parents:
diff
changeset
|
3 |
@@ -128,6 +128,7 @@ |
eb04a6ca141d
15698471 cups should audit printing information in TX environments
Sonam Gupta <sonam.x.gupta@oracle.com>
parents:
diff
changeset
|
4 |
#include <deflt.h> |
eb04a6ca141d
15698471 cups should audit printing information in TX environments
Sonam Gupta <sonam.x.gupta@oracle.com>
parents:
diff
changeset
|
5 |
#include <auth_attr.h> |
eb04a6ca141d
15698471 cups should audit printing information in TX environments
Sonam Gupta <sonam.x.gupta@oracle.com>
parents:
diff
changeset
|
6 |
#include <secdb.h> |
eb04a6ca141d
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> |
eb04a6ca141d
15698471 cups should audit printing information in TX environments
Sonam Gupta <sonam.x.gupta@oracle.com>
parents:
diff
changeset
|
8 |
#endif /* HAVE_TSOL */ |
eb04a6ca141d
15698471 cups should audit printing information in TX environments
Sonam Gupta <sonam.x.gupta@oracle.com>
parents:
diff
changeset
|
9 |
|
eb04a6ca141d
15698471 cups should audit printing information in TX environments
Sonam Gupta <sonam.x.gupta@oracle.com>
parents:
diff
changeset
|
10 |
/* |
eb04a6ca141d
15698471 cups should audit printing information in TX environments
Sonam Gupta <sonam.x.gupta@oracle.com>
parents:
diff
changeset
|
11 |
@@ -1523,7 +1524,7 @@ |
eb04a6ca141d
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 |
eb04a6ca141d
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. |
eb04a6ca141d
15698471 cups should audit printing information in TX environments
Sonam Gupta <sonam.x.gupta@oracle.com>
parents:
diff
changeset
|
14 |
*/ |
eb04a6ca141d
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); |
eb04a6ca141d
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); |
eb04a6ca141d
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); |
eb04a6ca141d
15698471 cups should audit printing information in TX environments
Sonam Gupta <sonam.x.gupta@oracle.com>
parents:
diff
changeset
|
18 |
return (NULL); |
eb04a6ca141d
15698471 cups should audit printing information in TX environments
Sonam Gupta <sonam.x.gupta@oracle.com>
parents:
diff
changeset
|
19 |
} |
eb04a6ca141d
15698471 cups should audit printing information in TX environments
Sonam Gupta <sonam.x.gupta@oracle.com>
parents:
diff
changeset
|
20 |
@@ -1546,7 +1547,7 @@ |
eb04a6ca141d
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 |
eb04a6ca141d
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. |
eb04a6ca141d
15698471 cups should audit printing information in TX environments
Sonam Gupta <sonam.x.gupta@oracle.com>
parents:
diff
changeset
|
23 |
*/ |
eb04a6ca141d
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); |
eb04a6ca141d
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); |
eb04a6ca141d
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); |
eb04a6ca141d
15698471 cups should audit printing information in TX environments
Sonam Gupta <sonam.x.gupta@oracle.com>
parents:
diff
changeset
|
27 |
return (NULL); |
eb04a6ca141d
15698471 cups should audit printing information in TX environments
Sonam Gupta <sonam.x.gupta@oracle.com>
parents:
diff
changeset
|
28 |
} |