| 1 |
2008-11-19 Steve Dickson <[email protected]> |
| 2 |
* Version 0.1.7 released. |
| 3 |
|
| 4 |
commit bdc14d4d867a26010466138ecb37336b1f489dcb |
| 5 |
Author: Chuck Lever <[email protected]> |
| 6 |
Date: Tue Oct 28 10:15:22 2008 -0400 |
| 7 |
|
| 8 |
rpcbind: Squelch make warnings |
| 9 |
|
| 10 |
Change order of AC_PROG_LIBTOOL macro invocation in configure.in to |
| 11 |
eliminate autotool warning: |
| 12 |
|
| 13 |
Remember to add `AC_PROG_LIBTOOL' to `configure.in'. |
| 14 |
|
| 15 |
Signed-off-by: Chuck Lever <[email protected]> |
| 16 |
Signed-off-by: Steve Dickson <[email protected]> |
| 17 |
|
| 18 |
commit 3d33ad8d37ea2f955a8b06beedade424bc22efbc |
| 19 |
Author: Chuck Lever <[email protected]> |
| 20 |
Date: Tue Oct 28 10:12:20 2008 -0400 |
| 21 |
|
| 22 |
rpcbind: Squelch make warnings |
| 23 |
|
| 24 |
Eliminate make warnings when building rpcbind and rpcinfo: |
| 25 |
|
| 26 |
make[3]: Circular security.o <- security.o dependency dropped. |
| 27 |
make[3]: Circular util.o <- security.o dependency dropped. |
| 28 |
make[3]: Circular util.o <- util.o dependency dropped. |
| 29 |
make[3]: Circular util.o <- check_bound.o dependency dropped. |
| 30 |
make[3]: Circular pmap_svc.o <- security.o dependency dropped. |
| 31 |
make[3]: Circular pmap_svc.o <- util.o dependency dropped. |
| 32 |
make[3]: Circular pmap_svc.o <- check_bound.o dependency dropped. |
| 33 |
make[3]: Circular pmap_svc.o <- pmap_svc.o dependency dropped. |
| 34 |
|
| 35 |
and so on. |
| 36 |
|
| 37 |
Apparently src/Makefile.am needs either a list of source files or a |
| 38 |
list of object files, but not both. |
| 39 |
|
| 40 |
Signed-off-by: Chuck Lever <[email protected]> |
| 41 |
Signed-off-by: Steve Dickson <[email protected]> |
| 42 |
|
| 43 |
commit 1ee34cfa8cf3ce56f43690eba44215aafb1835a5 |
| 44 |
Author: Chuck Lever <[email protected]> |
| 45 |
Date: Tue Oct 28 10:10:23 2008 -0400 |
| 46 |
|
| 47 |
rpcbind: Squelch a compiler warning |
| 48 |
|
| 49 |
Remove a needless pointer-to-integer conversion. getnameinfo(3) wants |
| 50 |
a size value greater than or equal to offsetof(struct sockaddr_un, |
| 51 |
sun_path). Since pointers can be different sizes depending on the |
| 52 |
hardware platform, let's make this a simple constant instead. |
| 53 |
|
| 54 |
This eliminates the compiler warning: |
| 55 |
|
| 56 |
rpcinfo.c: In function sa_len |
| 57 |
rpcinfo.c:666: warning: cast from pointer to integer of different size |
| 58 |
|
| 59 |
when building on x86-64. |
| 60 |
|
| 61 |
Signed-off-by: Chuck Lever <[email protected]> |
| 62 |
Signed-off-by: Steve Dickson <[email protected]> |
| 63 |
|
| 64 |
commit 98ca016d5a2fb7a7da9e2332e3c59b123b820477 |
| 65 |
Author: Chuck Lever <[email protected]> |
| 66 |
Date: Tue Oct 28 10:07:58 2008 -0400 |
| 67 |
|
| 68 |
rpcbind: Squelch a compiler warning |
| 69 |
|
| 70 |
Include <nss.h> to get a forward declaration of __nss_configure_lookup(). |
| 71 |
This eliminates the compiler warning: |
| 72 |
|
| 73 |
rpcbind.c: In function main |
| 74 |
rpcbind.c:163: warning: implicit declaration of function |
| 75 |
_nss_configure_lookup |
| 76 |
|
| 77 |
Signed-off-by: Chuck Lever <[email protected]> |
| 78 |
Signed-off-by: Steve Dickson <[email protected]> |
| 79 |
|
| 80 |
commit 9266c745930cd052713e83c7ecb0917c17f33505 |
| 81 |
Author: Chuck Lever <[email protected]> |
| 82 |
Date: Tue Oct 28 10:02:42 2008 -0400 |
| 83 |
|
| 84 |
rpcbind: Squelch a compiler warning |
| 85 |
|
| 86 |
Remove unused variable in read_struct(). This eliminates |
| 87 |
the compiler warning: |
| 88 |
|
| 89 |
warmstart.c: In function read_struct |
| 90 |
warmstart.c:106: warning: unused variable sbuf |
| 91 |
|
| 92 |
Signed-off-by: Chuck Lever <[email protected]> |
| 93 |
Signed-off-by: Steve Dickson <[email protected]> |
| 94 |
|
| 95 |
commit 0b847172bb5413d200da01618402897d493f40b1 |
| 96 |
Author: Olaf Kirch <[email protected]> |
| 97 |
Date: Tue Sep 30 14:49:21 2008 -0400 |
| 98 |
|
| 99 |
Properly identify local root user over ipv4/v6 |
| 100 |
|
| 101 |
When an application registers a service through an inet transport, |
| 102 |
rpcbind will always treat the owner as "unknown". This allows random |
| 103 |
users to unregister such services, and replace them with their own - |
| 104 |
man-in-the-middle attacks for services like ypserv are trivial. |
| 105 |
|
| 106 |
This patch changes pmapproc_change to check whether the call originated |
| 107 |
from a priviliged local port, and if that is the case, it identifies the |
| 108 |
caller as "superuser". |
| 109 |
|
| 110 |
This mimics the way the current Linux portmap behaves. |
| 111 |
|
| 112 |
Signed-off-by: Olaf Kirch <[email protected]> |
| 113 |
Signed-off-by: Steve Dickson <[email protected]> |
| 114 |
|
| 115 |
commit 49e8a7c963c27ca3face271200b103a5efc50b05 |
| 116 |
Author: Olaf Kirch <[email protected]> |
| 117 |
Date: Tue Sep 30 14:44:05 2008 -0400 |
| 118 |
|
| 119 |
Fix debug output in is_loopback |
| 120 |
|
| 121 |
The security check in is_loopback wants to print the source |
| 122 |
port number, assuming that the remote address is always a |
| 123 |
sockaddr_in - which is silly. Move the printf into the |
| 124 |
address family specific switch statement. |
| 125 |
|
| 126 |
Signed-off-by: Olaf Kirch <[email protected]> |
| 127 |
Signed-off-by: Steve Dickson <[email protected]> |
| 128 |
|
| 129 |
commit 62a20676c31a1887f8151a5b0ca42932205c4f4b |
| 130 |
Author: Olaf Kirch <[email protected]> |
| 131 |
Date: Tue Sep 30 14:43:13 2008 -0400 |
| 132 |
|
| 133 |
Fix debug output in pmap_set/unset |
| 134 |
|
| 135 |
The debugging code in pmapproc_change prints the contents of |
| 136 |
the "struct pmap" argument before decoding it, which results |
| 137 |
in random garbage being displayed. |
| 138 |
|
| 139 |
Signed-off-by: Olaf Kirch <[email protected]> |
| 140 |
Signed-off-by: Steve Dickson <[email protected]> |
| 141 |
|
| 142 |
commit 3d9f63a9c308b305dfca745dafae63d8f96b313c |
| 143 |
Author: Olaf Kirch <[email protected]> |
| 144 |
Date: Tue Sep 30 14:41:35 2008 -0400 |
| 145 |
|
| 146 |
Fix for warm start |
| 147 |
|
| 148 |
If you use rpcbind with the warm start functionality, it will load *all* |
| 149 |
registrations from the warm start files, including those for rpcbind |
| 150 |
and portmap. This is wrong, as that information may be stale - a user |
| 151 |
may specifically edit the netconfig file and restart rpcbind to change |
| 152 |
the transports it supports. In this case we want the registrations |
| 153 |
to match the status quo, rather than the status before the restart. |
| 154 |
|
| 155 |
This patch changes read_warmstart() to merge the existing rpcb/pmap |
| 156 |
lists, which contain only the rpcbind/portmap entries, with the saved |
| 157 |
start lists, but ignoring any rpcbind/portmap entries present in the |
| 158 |
warm start files. |
| 159 |
|
| 160 |
Signed-off-by: Olaf Kirch <[email protected]> |
| 161 |
Signed-off-by: Steve Dickson <[email protected]> |
| 162 |
|
| 163 |
commit 1d92cd58eb471765eba08ec819f7b5ae1d5e96ab |
| 164 |
Author: Olaf Kirch <[email protected]> |
| 165 |
Date: Tue Sep 30 12:01:24 2008 -0400 |
| 166 |
|
| 167 |
Support portmap on AF_LOCAL, too |
| 168 |
|
| 169 |
This patch makes sure we support portmap (aka rpcbind v2) on ipv4 _and_ |
| 170 |
af_local. That allows rpcbind to identify the owner of a socket much |
| 171 |
better than by relying on privileged ports to tell root from non-root |
| 172 |
users. |
| 173 |
|
| 174 |
Signed-off-by: Olaf Kirch <[email protected]> |
| 175 |
Signed-off-by: Steve Dickson <[email protected]> |
| 176 |
|
| 177 |
commit 566f261ff6bae2842e2e64aaf70d2e31acc1efe7 |
| 178 |
Author: Olaf Kirch <[email protected]> |
| 179 |
Date: Tue Sep 16 10:23:48 2008 -0400 |
| 180 |
|
| 181 |
Simplify port live check in pmap_svc.c |
| 182 |
|
| 183 |
There's some hack in pmap_getport that will cause a service |
| 184 |
to be unregistered from the portmap list if we find the port |
| 185 |
is no longer in use. Apart from being a gross hack, it is |
| 186 |
also a rather inefficient hack. Since we now restrict pmap |
| 187 |
emulation to IPv4, we know the address is always 0.0.0.0, |
| 188 |
so no need to mess with uaddr strings. |
| 189 |
|
| 190 |
(The bind_check code is a huge messy no-op anyway, since |
| 191 |
all ports are added with bind_check = FALSE). |
| 192 |
|
| 193 |
Signed-off-by: [email protected] |
| 194 |
Signed-off-by: Steve Dickson <[email protected]> |
| 195 |
|
| 196 |
commit 1a94b830a6b5a248faa6fa0e4b7818d9394f6369 |
| 197 |
Author: Olaf Kirch <[email protected]> |
| 198 |
Date: Tue Sep 16 10:15:39 2008 -0400 |
| 199 |
|
| 200 |
Change how we decide on the netids to use for portmap |
| 201 |
|
| 202 |
The current code will try to use either udp or udp6, and either tcp or |
| 203 |
tcp6 for its portmap emulation code. Enabling eg both tcp6 and tcp in |
| 204 |
the netconfig file will cause error messages, and cause rpcbind to not |
| 205 |
register itself on the second transport (tcp). |
| 206 |
|
| 207 |
This is not what we want. |
| 208 |
|
| 209 |
I believe portmap emulation should only be enabled over IPv4. |
| 210 |
There's no point in enabling it over IPv6. |
| 211 |
|
| 212 |
Signed-off-by: [email protected] |
| 213 |
Signed-off-by: Steve Dickson <[email protected]> |
| 214 |
|
| 215 |
commit 3e4c74ab527375f37b6633f528e7eab0c363967b |
| 216 |
Author: Olaf Kirch <[email protected]> |
| 217 |
Date: Tue Sep 16 10:08:35 2008 -0400 |
| 218 |
|
| 219 |
Introduce helpers for ipprot/netid mapping |
| 220 |
|
| 221 |
There's a couple of places in the portmap emulation code |
| 222 |
where we translate between ip protocol numbers and netids. |
| 223 |
Encapsulate these in two helper functions: |
| 224 |
|
| 225 |
extern char *pmap_ipprot2netid(int); |
| 226 |
extern int pmap_netid2ipprot(const char *); |
| 227 |
|
| 228 |
Signed-off-by: [email protected] |
| 229 |
Signed-off-by: Steve Dickson <[email protected]> |
| 230 |
|
| 231 |
commit 3942a3b4dcd451a2c41ad95a45f3f1462cb3f133 |
| 232 |
Author: Steve Dickson <[email protected]> |
| 233 |
Date: Tue Sep 16 10:01:18 2008 -0400 |
| 234 |
|
| 235 |
Removed files that are generated from the automake process |
| 236 |
|
| 237 |
Signed-off-by: Steve Dickson <[email protected]> |
| 238 |
|
| 239 |
2008-07-09 Steve Dickson <[email protected]> |
| 240 |
* See the git://git.infradead.org/~steved/rpcbind.git GIT tree |
| 241 |
for the latest Changelog entries |
| 242 |
|
| 243 |
2004-10-13 Antoine Fraticelli <[email protected]> |
| 244 |
|
| 245 |
* Version 0.1 released. |
| 246 |
|
| 247 |
081104 Fixed bug (bad services call) |