Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37535928
en ru br
ALT Linux repositórios
S:9.16.44-alt1
5.0: 9.3.6-alt5
4.1: 9.3.6-alt4.M41.2
+updates:9.3.6-alt4.M41.1
4.0: 9.3.6-alt4.M41.1
+updates:9.3.6-alt4.M41.1
3.0: 9.2.4.rel-alt2

Group :: Sistema/Servidores
RPM: bind

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: bind-9.2.4rc5-obsd-chroot_default.patch
Download


diff -uprk.orig bind-9.2.4rc5.orig/bin/named/include/named/globals.h bind-9.2.4rc5/bin/named/include/named/globals.h
--- bind-9.2.4rc5.orig/bin/named/include/named/globals.h	2004-06-30 18:24:22 +0400
+++ bind-9.2.4rc5/bin/named/include/named/globals.h	2004-06-30 18:24:43 +0400
@@ -97,7 +97,7 @@ EXTERN isc_resourcevalue_t	ns_g_initopen
  * Misc.
  */
 EXTERN isc_boolean_t		ns_g_coreok		INIT(ISC_TRUE);
-EXTERN const char *		ns_g_chrootdir		INIT(NULL);
+EXTERN const char *		ns_g_chrootdir		INIT("@ROOT@");
 EXTERN isc_boolean_t		ns_g_foreground		INIT(ISC_FALSE);
 EXTERN isc_boolean_t		ns_g_logstderr		INIT(ISC_FALSE);
 
@@ -107,7 +107,7 @@ EXTERN const char *		lwresd_g_defaultpid
 							    "/run/lwresd.pid");
 EXTERN const char *		ns_g_pidfile		INIT(NS_LOCALSTATEDIR
 								"/run/named.pid");
-EXTERN const char *		ns_g_username		INIT(NULL);
+EXTERN const char *		ns_g_username		INIT("named");
 
 #undef EXTERN
 #undef INIT
diff -uprk.orig bind-9.2.4rc5.orig/bin/named/named.8 bind-9.2.4rc5/bin/named/named.8
--- bind-9.2.4rc5.orig/bin/named/named.8	2004-06-30 18:24:22 +0400
+++ bind-9.2.4rc5/bin/named/named.8	2004-06-30 18:24:43 +0400
@@ -28,18 +28,19 @@ part of the BIND 9 distribution from ISC
 information on the DNS, see RFCs 1033, 1034, and 1035.
 .PP
 When invoked without arguments, \fBnamed\fR will
+\fBchroot()\fR to \fI@ROOT@\fR,
 read the default configuration file
-\fI/etc/named.conf\fR, read any initial
+\fI@ROOT@/etc/named.conf\fR, read any initial
 data, and listen for queries.
 .SH "OPTIONS"
 .TP
 \fB-c \fIconfig-file\fB\fR
 Use \fIconfig-file\fR as the
 configuration file instead of the default,
-\fI/etc/named.conf\fR. To
+\fI@ROOT@/etc/named.conf\fR. To
 ensure that reloading the configuration file continues
 to work after the server has changed its working
-directory due to to a possible
+directory due to a possible
 \fBdirectory\fR option in the configuration
 file, \fIconfig-file\fR should be
 an absolute pathname.
@@ -82,6 +83,7 @@ and may be removed or changed in a futur
 \fBchroot()\fR to \fIdirectory\fR after
 processing the command line arguments, but before
 reading the configuration file.
+By default, \fBnamed\fR \fBchroot()\fR's to \fI@ROOT@\fR.
 .sp
 .RS
 .B "Warning:"
@@ -98,6 +100,7 @@ escape a chroot jail.
 \fBsetuid()\fR to \fIuser\fR after completing
 privileged operations, such as creating sockets that
 listen on privileged ports.
+By default, \fBnamed\fR will run as user \fInamed\fR.
 .sp
 .RS
 .B "Note:"
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009