blob: 333bf0a843a3bd7ae0fa5243deb25a3970c6a4ab (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
Index: b/usr/src/lib/nsswitch/compat/common/compat_common.c
===================================================================
--- a/usr/src/lib/nsswitch/compat/common/compat_common.c
+++ b/usr/src/lib/nsswitch/compat/common/compat_common.c
@@ -32,7 +32,6 @@
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
-#include <bsm/libbsm.h>
#include <user_attr.h>
#include <pwd.h>
#include <shadow.h>
@@ -41,6 +40,16 @@
#include <dlfcn.h>
#include "compat_common.h"
+#ifndef AUDITUSER_FILENAME
+#define AUDITUSER_FILENAME "/etc/security/audit_user"
+#endif
+
+typedef struct au_user_str_s {
+ char *au_name;
+ char *au_always;
+ char *au_never;
+} au_user_str_t;
+
/*
* This should be in a header.
*/
Index: b/usr/src/lib/nsswitch/compat/common/getauuser.c
===================================================================
--- a/usr/src/lib/nsswitch/compat/common/getauuser.c
+++ b/usr/src/lib/nsswitch/compat/common/getauuser.c
@@ -28,9 +28,18 @@
#include <sys/types.h>
#include <stdlib.h>
#include <string.h>
-#include <bsm/libbsm.h>
#include "compat_common.h"
+#ifndef AUDITUSER_FILENAME
+#define AUDITUSER_FILENAME "/etc/security/audit_user"
+#endif
+
+typedef struct au_user_str_s {
+ char *au_name;
+ char *au_always;
+ char *au_never;
+} au_user_str_t;
+
static DEFINE_NSS_DB_ROOT(db_root);
static void
|