@@ -32,8 +32,8 @@ that service if it is enabled.
3232It verifies that the directory has the magic file "git-daemon-export-ok", and
3333it will refuse to export any Git directory that hasn't explicitly been marked
3434for export this way (unless the `--export-all` parameter is specified). If you
35- pass some directory paths as 'git daemon' arguments, you can further restrict
36- the offers to a whitelist comprising of those.
35+ pass some directory paths as 'git daemon' arguments, the offers are limited to
36+ repositories within those directories .
3737
3838By default, only `upload-pack` service is enabled, which serves
3939'git fetch-pack' and 'git ls-remote' clients, which are invoked
@@ -50,7 +50,7 @@ OPTIONS
5050 Match paths exactly (i.e. don't allow "/foo/repo" when the real path is
5151 "/foo/repo.git" or "/foo/repo/.git") and don't do user-relative paths.
5252 'git daemon' will refuse to start when this option is enabled and no
53- whitelist is specified .
53+ directory arguments are provided .
5454
5555--base-path=<path>::
5656 Remap all the path requests as relative to the given path.
@@ -73,7 +73,7 @@ OPTIONS
7373 %IP for the server's IP address, %P for the port number,
7474 and %D for the absolute path of the named repository.
7575 After interpolation, the path is validated against the directory
76- whitelist .
76+ list .
7777
7878--export-all::
7979 Allow pulling from all directories that look like Git repositories
@@ -218,9 +218,11 @@ standard output to be sent to the requestor as an error message when
218218it declines the service.
219219
220220<directory>::
221- A directory to add to the whitelist of allowed directories. Unless
222- --strict-paths is specified this will also include subdirectories
223- of each named directory.
221+ The remaining arguments provide a list of directories. If any
222+ directories are specified, then the `git-daemon` process will
223+ serve a requested directory only if it is contained in one of
224+ these directories. If `--strict-paths` is specified, then the
225+ requested directory must match one of these directories exactly.
224226
225227SERVICES
226228--------
@@ -264,9 +266,8 @@ git 9418/tcp # Git Version Control System
264266
265267'git daemon' as inetd server::
266268 To set up 'git daemon' as an inetd service that handles any
267- repository under the whitelisted set of directories, /pub/foo
268- and /pub/bar, place an entry like the following into
269- /etc/inetd all on one line:
269+ repository within `/pub/foo` or `/pub/bar`, place an entry like
270+ the following into `/etc/inetd` all on one line:
270271+
271272------------------------------------------------
272273 git stream tcp nowait nobody /usr/bin/git
0 commit comments