source: hybrid/branches/releng-10/nanobsd/ports/dns/maradns2/files/patch-change-default-uid

Last change on this file was 10612, checked in by rick, 13 years ago

Make port building whole bunch more stupid:

1) Bundle ports in the tree itself, instead of global shared banch.
2) Copy the local ports just in the /usr/ports tree to allow playing around

with just the ordenary tools.

File size: 3.6 KB
Line 
1--- MaraDns.h.orig 2012-02-10 22:16:39.000000000 +0100
2+++ MaraDns.h 2012-02-10 22:17:25.000000000 +0100
3@@ -77,16 +77,16 @@
4 line to point to Bash
5 */
6
7-#define MARADNS_DEFAULT_UID 99
8+#define MARADNS_DEFAULT_UID 53
9
10 /* The default GID (Group ID) that MaraDNS has; see the default UID notes
11 above. Again: CHANGE THE MARARC MAN PAGE IF YOU CHANGE THIS VALUE */
12-#define MARADNS_DEFAULT_GID 99
13+#define MARADNS_DEFAULT_GID 53
14
15 /* The UID that the Duende logging process uses. CHANGE THE DUENDE MAN
16 PAGE IF YOU CHANGE THIS VALUE (same general process as changing the
17 mararc man page; the source file for the duende man page is duende.ej) */
18-#define DUENDE_LOGGER_UID 66
19+#define DUENDE_LOGGER_UID 65534
20
21 /* The directory that Duende runs in. This directory has to exist for
22 Duende to be able to run. Again, IF YOU CHANGE THIS, CHANGE THE
23--- doc/en/examples/example_full_mararc.orig 2011-02-06 03:21:42.000000000 +0100
24+++ doc/en/examples/example_full_mararc 2012-02-11 02:13:22.000000000 +0100
25@@ -14,11 +14,11 @@
26 # "10.1.2.3,10.1.2.4,127.0.0.1"
27 ipv4_bind_addresses = "127.0.0.1"
28 # The directory with all of the zone files
29-chroot_dir = "/etc/maradns"
30+chroot_dir = "/usr/local/etc/maradns"
31 # The numeric UID MaraDNS will run as
32-maradns_uid = 99
33+maradns_uid = 65534
34 # The (optional) numeric GID MaraDNS will run as
35-# maradns_gid = 99
36+# maradns_gid = 65534
37
38 # Normally, MaraDNS has some MaraDNS-specific features, such as DDIP
39 # synthesizing, a special DNS query ("erre-con-erre-cigarro.maradns.org."
40--- doc/en/man/deadwood.1.orig 2012-02-10 22:20:19.000000000 +0100
41+++ doc/en/man/deadwood.1 2012-02-10 22:22:17.000000000 +0100
42@@ -178,15 +178,14 @@
43 \fBmaradns_uid\fR
44 .PP
45 The user-id Deadwood runs as. This can be any number
46-between 10 and 65535; the default value is 99 (nobody on
47-RedHat-derived Linux distributions). This value is not
48-used on Windows systems.
49+between 10 and 65535; the default value is 65534 (nobody).
50+This value is not used on Windows systems.
51 .PP
52 .in -3
53 \fBmaradns_gid\fR
54 .PP
55 The group-id Deadwood runs as. This can be any
56-number between 10 and 65535; the default value is 99. This
57+number between 10 and 65535; the default value is 65534 (nobody). This
58 value is not used on Windows systems.
59 .PP
60 .in -3
61--- doc/en/man/mararc.5.orig 2012-02-10 22:20:28.000000000 +0100
62+++ doc/en/man/mararc.5 2012-02-10 22:21:03.000000000 +0100
63@@ -592,7 +592,7 @@
64 damage a potential attacker can cause should there be a security
65 problem with MaraDNS. This is the UID maradns becomes.
66 .PP
67-The default UID is 99.
68+The default UID is 65534.
69 .PP
70 .in -3
71 \fBmaradns_gid\fR
72@@ -601,7 +601,7 @@
73 .PP
74 This accepts a single numerical value: The GID to run MaraDNS as.
75 .PP
76-The default GID is 99.
77+The default GID is 65534.
78 .PP
79 .in -3
80 \fBmax_ar_chain\fR
81--- deadwood/doc/dwood3rc.orig 2011-11-01 17:25:23.000000000 +0100
82+++ deadwood/doc/dwood3rc 2012-02-11 02:15:16.000000000 +0100
83@@ -6,7 +6,7 @@
84 # The following line is disabled by being commented out
85 #bind_address="::1" # We have optional IPv6 support
86
87-chroot_dir = "/etc/deadwood" # Directory we run program from (not used in Win32)
88+chroot_dir = "/usr/local/etc/deadwood" # Directory we run program from (not used in Win32)
89
90 # The following upstream DNS servers are Google's newly-announced (as of
91 # December, 2009) public DNS servers. For more information, see
92@@ -37,8 +37,8 @@
93 maxprocs = 8 # Maximum number of pending requests
94 handle_overload = 1 # Send SERVER FAIL when overloaded
95
96-maradns_uid = 99 # UID Deadwood runs as
97-maradns_gid = 99 # GID Deadwood runs as
98+maradns_uid = 65534 # UID Deadwood runs as
99+maradns_gid = 65534 # GID Deadwood runs as
100
101 maximum_cache_elements = 60000
102
Note: See TracBrowser for help on using the repository browser.