From 4c9608fb27b0f1bef846b72291ecb515045d3507 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Thu, 10 Aug 2017 15:04:08 +0200 Subject: param: Add 'binddns dir' parameter This allows to us to have restricted access to the directory by the group 'named' which bind is a member of. BUG: https://bugzilla.samba.org/show_bug.cgi?id=12957 Signed-off-by: Andreas Schneider Reviewed-by: Andrew Bartlet --- dynconfig/dynconfig.c | 1 + dynconfig/dynconfig.h | 1 + dynconfig/wscript | 7 +++++++ 3 files changed, 9 insertions(+) (limited to 'dynconfig') diff --git a/dynconfig/dynconfig.c b/dynconfig/dynconfig.c index e75d7db553a..e70a10f8cfe 100644 --- a/dynconfig/dynconfig.c +++ b/dynconfig/dynconfig.c @@ -95,6 +95,7 @@ DEFINE_DYN_CONFIG_PARAM(PIDDIR) DEFINE_DYN_CONFIG_PARAM(NCALRPCDIR) DEFINE_DYN_CONFIG_PARAM(SMB_PASSWD_FILE) DEFINE_DYN_CONFIG_PARAM(PRIVATE_DIR) +DEFINE_DYN_CONFIG_PARAM(BINDDNS_DIR) DEFINE_DYN_CONFIG_PARAM(LOCALEDIR) DEFINE_DYN_CONFIG_PARAM(NMBDSOCKETDIR) DEFINE_DYN_CONFIG_PARAM(DATADIR) diff --git a/dynconfig/dynconfig.h b/dynconfig/dynconfig.h index 4d07c103d74..bdab2e8f242 100644 --- a/dynconfig/dynconfig.h +++ b/dynconfig/dynconfig.h @@ -46,6 +46,7 @@ DEFINE_DYN_CONFIG_PROTO(PIDDIR) DEFINE_DYN_CONFIG_PROTO(NCALRPCDIR) DEFINE_DYN_CONFIG_PROTO(SMB_PASSWD_FILE) DEFINE_DYN_CONFIG_PROTO(PRIVATE_DIR) +DEFINE_DYN_CONFIG_PROTO(BINDDNS_DIR) DEFINE_DYN_CONFIG_PROTO(LOCALEDIR) DEFINE_DYN_CONFIG_PROTO(NMBDSOCKETDIR) DEFINE_DYN_CONFIG_PROTO(DATADIR) diff --git a/dynconfig/wscript b/dynconfig/wscript index ba0c896b90e..fee37eaaf5f 100644 --- a/dynconfig/wscript +++ b/dynconfig/wscript @@ -192,6 +192,12 @@ dynconfig = { 'OPTION': '--with-statedir', 'HELPTEXT': 'Where to put persistent state files', }, + 'BINDDNS_DIR' : { + 'STD-PATH': '${LOCALSTATEDIR}/lib', + 'FHS-PATH': '${LOCALSTATEDIR}/lib/samba/bind-dns', + 'OPTION': '--with-bind-dns-dir', + 'HELPTEXT': 'bind-dns config directory', + }, 'CACHEDIR' : { 'STD-PATH': '${LOCALSTATEDIR}/cache', 'FHS-PATH': '${LOCALSTATEDIR}/cache/samba', @@ -419,6 +425,7 @@ def build(bld): bld.INSTALL_DIR("${LOGFILEBASE}") bld.INSTALL_DIR("${PRIVILEGED_SOCKET_DIR}") bld.INSTALL_DIR("${PRIVATE_DIR}", 0o700) + bld.INSTALL_DIR("${BINDDNS_DIR}", 0o770) bld.INSTALL_DIR("${STATEDIR}") bld.INSTALL_DIR("${CACHEDIR}") -- cgit v1.2.1