blob: c2f08e0236ebb433252fa26f7bf346fea4248619 (
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
#include "includes.h"
/*
this is a set of temporary stub functions used during the core smbd rewrite.
This file will need to go away before the rewrite is complete
*/
void mangle_reset_cache(void)
{}
void reset_stat_cache(void)
{}
BOOL set_current_service(void *conn, BOOL x)
{ return True; }
void change_to_root_user(void)
{}
void load_printers(void)
{}
void file_init(void)
{}
void init_rpc_pipe_hnd(void)
{}
BOOL init_oplocks(void)
{ return True; }
BOOL init_change_notify(void)
{ return True; }
BOOL pcap_printername_ok(const char *service, char *foo)
{ return True; }
void become_root(void)
{}
void unbecome_root(void)
{}
BOOL namecache_enable(void)
{ return True; }
BOOL locking_init(int read_only)
{ return True; }
BOOL share_info_db_init(void)
{ return True; }
BOOL init_registry(void)
{ return True; }
BOOL share_access_check(struct request_context *req, struct tcon_context *conn, int snum, uint32 desired_access)
{ return True; }
BOOL init_names(void)
{ return True; }
BOOL uid_to_sid(DOM_SID *sid, uid_t uid)
{
*sid = *get_global_sam_sid();
sid_append_rid(sid, uid*2);
return True;
}
BOOL gid_to_sid(DOM_SID *sid, gid_t gid)
{
*sid = *get_global_sam_sid();
sid_append_rid(sid, gid*2 + 1);
return True;
}
BOOL become_user_permanently(uid_t uid, gid_t gid)
{ return True; }
|