summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-04-09 08:00:19 +0000
committerJeremy Allison <jra@samba.org>2001-04-09 08:00:19 +0000
commit2b9e23855e6e4a20021bb7a1bb0df082efe4eac5 (patch)
tree1c8080de9b3e8dcf8fb0b5a8e7cd56212092795c /source3/include
parent33706e48f072fa17363155de19650764c5aa4a84 (diff)
downloadsamba-2b9e23855e6e4a20021bb7a1bb0df082efe4eac5.tar.gz
samba-2b9e23855e6e4a20021bb7a1bb0df082efe4eac5.tar.bz2
samba-2b9e23855e6e4a20021bb7a1bb0df082efe4eac5.zip
Set SD's for share. Added level 1501. Map GENERIC file bits to specific bits.
Jeremy. (This used to be commit 04976c32f319531e16d890797b45a76dab64f370)
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/proto.h1
-rw-r--r--source3/include/rpc_srvsvc.h12
2 files changed, 10 insertions, 3 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index a41c810816..e5e4b7eb2f 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -3765,6 +3765,7 @@ BOOL api_srvsvc_rpc(pipes_struct *p);
/*The following definitions come from rpc_server/srv_srvsvc_nt.c */
BOOL share_info_db_init(void);
+void map_generic_share_sd_bits(SEC_DESC *psd);
BOOL share_access_check(int snum, uint16 vuid, uint32 desired_access);
uint32 _srv_net_srv_get_info(pipes_struct *p, SRV_Q_NET_SRV_GET_INFO *q_u, SRV_R_NET_SRV_GET_INFO *r_u);
uint32 _srv_net_file_enum(pipes_struct *p, SRV_Q_NET_FILE_ENUM *q_u, SRV_R_NET_FILE_ENUM *r_u);
diff --git a/source3/include/rpc_srvsvc.h b/source3/include/rpc_srvsvc.h
index 3fb76e82e0..2224f38766 100644
--- a/source3/include/rpc_srvsvc.h
+++ b/source3/include/rpc_srvsvc.h
@@ -339,7 +339,6 @@ typedef struct str_share_info502
} SH_INFO_502_STR;
/* SRV_SHARE_INFO_502 */
-/* SRV_SHARE_INFO_2 */
typedef struct share_info_502_info
{
SH_INFO_502 info_502;
@@ -353,6 +352,12 @@ typedef struct share_info_1005_info
uint32 dfs_root_flag;
} SRV_SHARE_INFO_1005;
+/* SRV_SHARE_INFO_1501 */
+typedef struct share_info_1501_info
+{
+ SEC_DESC_BUF *sdb;
+} SRV_SHARE_INFO_1501;
+
/* SRV_SHARE_INFO_CTR */
typedef struct srv_share_info_ctr_info
{
@@ -413,6 +418,8 @@ typedef struct q_net_share_get_info_info
} SRV_Q_NET_SHARE_GET_INFO;
+/* JRA. NB. We also need level 1004 and 1006 here. */
+
/* SRV_SHARE_INFO */
typedef struct srv_share_info {
uint32 switch_value;
@@ -423,6 +430,7 @@ typedef struct srv_share_info {
SRV_SHARE_INFO_2 info2;
SRV_SHARE_INFO_502 info502;
SRV_SHARE_INFO_1005 info1005;
+ SRV_SHARE_INFO_1501 info1501;
} share;
} SRV_SHARE_INFO;
@@ -434,8 +442,6 @@ typedef struct r_net_share_get_info_info
} SRV_R_NET_SHARE_GET_INFO;
-/* JRA. NB. We also need level 1004, 1006 and 1501 here. */
-
/* SRV_Q_NET_SHARE_SET_INFO */
typedef struct q_net_share_set_info_info
{