summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2014-02-02 14:21:12 +0100
committerAndrew Bartlett <abartlet@samba.org>2014-02-03 13:26:51 +1300
commitcdb6af95dd744869a743d8ca82682e1fd11b3382 (patch)
tree1bfea9a842638fdaff1e2d69721afaa6f8af5ce1
parentc48c4daf4a28e91db1047a1e3e9e2ab1d259735f (diff)
downloadsamba-cdb6af95dd744869a743d8ca82682e1fd11b3382.tar.gz
samba-cdb6af95dd744869a743d8ca82682e1fd11b3382.tar.xz
samba-cdb6af95dd744869a743d8ca82682e1fd11b3382.zip
loadparm: rename lp[cfg]_hostsdeny to lp[cfg]_hosts_deny for consistency with docs
Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz>
-rw-r--r--lib/param/param_functions.c2
-rw-r--r--source3/rpc_server/spoolss/srv_spoolss_nt.c2
-rw-r--r--source3/smbd/process.c4
-rw-r--r--source3/smbd/service.c2
-rw-r--r--source3/utils/testparm.c6
-rw-r--r--source4/param/share_classic.c2
-rw-r--r--source4/smbd/service_stream.c2
7 files changed, 10 insertions, 10 deletions
diff --git a/lib/param/param_functions.c b/lib/param/param_functions.c
index fef85507e50..797c35ee067 100644
--- a/lib/param/param_functions.c
+++ b/lib/param/param_functions.c
@@ -29,7 +29,7 @@
FN_LOCAL_STRING(path, path)
FN_LOCAL_LIST(hosts_allow, hosts_allow)
-FN_LOCAL_LIST(hostsdeny, hostsdeny)
+FN_LOCAL_LIST(hosts_deny, hostsdeny)
FN_LOCAL_STRING(fstype, fstype)
FN_LOCAL_LIST(ntvfs_handler, ntvfs_handler)
FN_LOCAL_BOOL(msdfs_root, msdfs_root)
diff --git a/source3/rpc_server/spoolss/srv_spoolss_nt.c b/source3/rpc_server/spoolss/srv_spoolss_nt.c
index 5433d9c221e..cae3cddf43a 100644
--- a/source3/rpc_server/spoolss/srv_spoolss_nt.c
+++ b/source3/rpc_server/spoolss/srv_spoolss_nt.c
@@ -1888,7 +1888,7 @@ WERROR _spoolss_OpenPrinterEx(struct pipes_struct *p,
rhost = raddr;
}
- if (!allow_access(lp_hostsdeny(snum), lp_hosts_allow(snum),
+ if (!allow_access(lp_hosts_deny(snum), lp_hosts_allow(snum),
rhost, raddr)) {
DEBUG(3, ("access DENIED (hosts allow/deny) for printer open\n"));
ZERO_STRUCTP(r->out.handle);
diff --git a/source3/smbd/process.c b/source3/smbd/process.c
index 93cdb7f0a83..30323a22741 100644
--- a/source3/smbd/process.c
+++ b/source3/smbd/process.c
@@ -1545,7 +1545,7 @@ static connection_struct *switch_message(uint8 type, struct smb_request *req)
* Haven't we checked this in smbd_process already???
*/
- ok = allow_access(lp_hostsdeny(-1), lp_hosts_allow(-1),
+ ok = allow_access(lp_hosts_deny(-1), lp_hosts_allow(-1),
sconn->remote_hostname, raddr);
TALLOC_FREE(raddr);
@@ -3483,7 +3483,7 @@ void smbd_process(struct tevent_context *ev_ctx,
sconn->remote_hostname,
locaddr);
- if (!allow_access(lp_hostsdeny(-1), lp_hosts_allow(-1),
+ if (!allow_access(lp_hosts_deny(-1), lp_hosts_allow(-1),
sconn->remote_hostname,
remaddr)) {
/*
diff --git a/source3/smbd/service.c b/source3/smbd/service.c
index 32032afd8f1..90f216d003c 100644
--- a/source3/smbd/service.c
+++ b/source3/smbd/service.c
@@ -248,7 +248,7 @@ static NTSTATUS share_sanity_checks(const struct tsocket_address *remote_address
}
if (!lp_snum_ok(snum) ||
- !allow_access(lp_hostsdeny(snum), lp_hosts_allow(snum),
+ !allow_access(lp_hosts_deny(snum), lp_hosts_allow(snum),
rhost, raddr)) {
return NT_STATUS_ACCESS_DENIED;
}
diff --git a/source3/utils/testparm.c b/source3/utils/testparm.c
index f0c8e5fdc4b..f905875a658 100644
--- a/source3/utils/testparm.c
+++ b/source3/utils/testparm.c
@@ -338,7 +338,7 @@ static int do_global_checks(void)
*/
static void do_per_share_checks(int s)
{
- const char **deny_list = lp_hostsdeny(s);
+ const char **deny_list = lp_hosts_deny(s);
const char **allow_list = lp_hosts_allow(s);
int i;
@@ -569,8 +569,8 @@ static void do_per_share_checks(int s)
/* this is totally ugly, a real `quick' hack */
for (s=0;s<1000;s++) {
if (VALID_SNUM(s)) {
- if (allow_access(lp_hostsdeny(-1), lp_hosts_allow(-1), cname, caddr)
- && allow_access(lp_hostsdeny(s), lp_hosts_allow(s), cname, caddr)) {
+ if (allow_access(lp_hosts_deny(-1), lp_hosts_allow(-1), cname, caddr)
+ && allow_access(lp_hosts_deny(s), lp_hosts_allow(s), cname, caddr)) {
fprintf(stderr,"Allow connection from %s (%s) to %s\n",
cname,caddr,lp_servicename(talloc_tos(), s));
} else {
diff --git a/source4/param/share_classic.c b/source4/param/share_classic.c
index 52a08e382d3..ae7412496cb 100644
--- a/source4/param/share_classic.c
+++ b/source4/param/share_classic.c
@@ -291,7 +291,7 @@ static const char **sclassic_string_list_option(TALLOC_CTX *mem_ctx, struct shar
}
if (strcmp(opt_name, SHARE_HOSTS_DENY) == 0) {
- return lpcfg_hostsdeny(s, lpcfg_default_service(lp_ctx));
+ return lpcfg_hosts_deny(s, lpcfg_default_service(lp_ctx));
}
if (strcmp(opt_name, SHARE_NTVFS_HANDLER) == 0) {
diff --git a/source4/smbd/service_stream.c b/source4/smbd/service_stream.c
index f6db934e666..e19d0085d1d 100644
--- a/source4/smbd/service_stream.c
+++ b/source4/smbd/service_stream.c
@@ -179,7 +179,7 @@ static void stream_new_connection(struct tevent_context *ev,
srv_conn->event.ctx = ev;
srv_conn->lp_ctx = lp_ctx;
- if (!socket_check_access(sock, "smbd", lpcfg_hosts_allow(NULL, lpcfg_default_service(lp_ctx)), lpcfg_hostsdeny(NULL, lpcfg_default_service(lp_ctx)))) {
+ if (!socket_check_access(sock, "smbd", lpcfg_hosts_allow(NULL, lpcfg_default_service(lp_ctx)), lpcfg_hosts_deny(NULL, lpcfg_default_service(lp_ctx)))) {
stream_terminate_connection(srv_conn, "denied by access rules");
return;
}