Wayne Davison
ce571e64b6
Close the socket fds in the "post-xfer exec" process.
2010-06-19 10:50:28 -07:00
Matt McCutchen
9a54a640f7
Don't set the umask to 0 any more: it's ugly and pointless.
2010-04-24 09:28:58 -07:00
Wayne Davison
afccb3d326
If a module has no path setting, return an error.
2010-02-06 13:40:12 -08:00
Wayne Davison
cece2e3f5e
Make use of seteuid() determined by configure.
2009-11-08 20:17:02 -08:00
Wayne Davison
23a0d1e200
Get rid of some unneeded externs.
2009-10-27 12:38:30 -07:00
Wayne Davison
8b3e6fb985
Make sure daemon's io_timeout is used as a maximum value.
2009-10-20 15:05:15 -07:00
Wayne Davison
d720569422
Moved a few group-related functions with some minor tweaks;
2009-10-20 07:54:21 -07:00
Wayne Davison
0a9fbe17de
Allow %VAR% environment references in daemon-config parameter values.
2009-10-17 16:30:23 -07:00
Wayne Davison
d23cc156aa
Call seteuid() when calling setuid().
2009-10-17 15:03:11 -07:00
Wayne Davison
d8587b4690
Change the msg pipe to use a real multiplexed IO mode
...
for the data that goes from the receiver to the generator.
2009-10-02 14:18:51 -07:00
Matt McCutchen
c8fa85b23b
Refactorings to the filter code, most notably:
...
- Improve function name: parse_rule -> parse_filter_str (to make the
similarity with parse_filter_file clearer, and better indicate that
it can parse multiple rules when FILTRULE_WORD_SPLIT is specified).
- In preparation for rule prefixes containing information beyond the
rflags, change the code to pass around a full "template" filter_rule
instead of just rflags. Callers of parse_filter_{str,file} that want
to specify only rflags can use rule_template(rflags) .
- Remove the MODIFIERS_* strings and instead hand-code the condition
under which each modifier is valid. This should make it easier to
see that the conditions are correct.
- Tighten up default modifiers on merge rules:
- Disallow "!" because it isn't useful.
- If the merge rule specifies a side via "s" or "r", the rules in the
file cannot also specify a side via "s", "r", "hide", etc.
[Patch was changed by Wayne a bit prior to application.]
2009-05-23 11:20:40 -07:00
Wayne Davison
7b6c5c7794
Use typedefs for the filter structures.
2009-05-23 09:07:43 -07:00
Wayne Davison
b32d425451
Change filter MATCHFLGs to FILTRULEs.
2009-05-23 09:07:35 -07:00
Wayne Davison
56017d3150
Enhance name_to_{u,g}id() to optionally parse numbers and rename
...
to {user,group}_to_*(). Based on a patch by Matt McCutchen.
2009-05-07 07:34:42 -07:00
Wayne Davison
e8d6fe6261
Properly indent some lines.
2009-02-19 23:09:20 -08:00
Wayne Davison
7f367bb1b4
Added a way for supplementary groups to be specified in the rsyncd.conf
...
file. Also made explicitly-set uid/gid values no longer ignored by a
daemon that was not run by a super-user.
2009-02-19 23:08:48 -08:00
Wayne Davison
df694f72ed
Change some args from "char *" to "const char *" in order to get rid of
...
a compiler warning that was just introduced. Also avoids changing the
host string to lower-case in access.c (by using iwildmatch()).
2009-01-15 00:23:07 -08:00
Matt McCutchen
11ef77b76a
Added the "reverse lookup" daemon-config parameter.
2009-01-15 00:22:36 -08:00
Wayne Davison
b3bf9b9df9
Update the copyright year.
2009-01-03 10:57:14 -08:00
Wayne Davison
9411292489
Fixed a bunch of "warn_unused_result" compiler warnings.
2008-11-09 18:56:21 -08:00
Wayne Davison
26e21efc5a
Convey the cleaned-up module-path to the user in all cases.
...
Fixed a just-introduced problem with a relative module-path.
2008-09-11 07:35:40 -07:00
Wayne Davison
433c6753a8
Fix the %P logfile escape inside a chroot.
2008-09-10 16:45:06 -07:00
Wayne Davison
5dd14f0c33
Split up the ifuncs.h file into 3 .h files.
2008-09-01 19:11:36 -07:00
Wayne Davison
41adbcec9f
Added a client --munge-links option that works like the daemon
...
"munge symlinks" parameter.
2008-07-28 16:35:03 -07:00
Wayne Davison
2206abf884
Added a command-line override for daemon config parameters:
...
--dparam=PARAMETER=VALUE (-M PARAMETER=VALUE).
2008-07-27 12:13:35 -07:00
Wayne Davison
b583594ac7
Change the references to "service" to be either "section" or "module".
2008-07-26 19:11:32 -07:00
Wayne Davison
93465f51bc
Improved var-checker and tweaked all the issues it found.
2008-07-21 00:10:22 -07:00
Wayne Davison
b791d6802b
Include the array-size in array externs so that IBM's code-checker
...
can do more checking for us.
2008-07-20 22:41:29 -07:00
Wayne Davison
951e826b75
Added the --info=FLAGS an --debug=FLAGS options, which allows
...
fine-grained output control (in addition to the coarse -v).
2008-07-13 20:51:08 -07:00
Wayne Davison
1c3e6e8b26
Moved the setting of the socket options before the connect().
2008-04-15 08:34:17 -07:00
Wayne Davison
29a89172f7
Improved the chdir() code:
...
- Renamed push_dir() to change_dir() and revised it a little so that it
can chdir() to a relative path without an intervening chdir() back to
the staring path.
- Renamed push_pathname() to change_pathname() and revised it to take
different args and to only call path_is_daemon_excluded() on a new
path (not a revisit of a file's already-checked path).
- Fixed change_pathname() to set the right pathname value when a chdir()
call fails.
- Set orig_dir once outside of the change_pathname() function.
- Got rid of pop_dir().
2008-03-30 15:44:46 -07:00
Wayne Davison
f5aeb6ff9b
Added XFLG_DIR2WILD3 flag that the daemon uses to transform any
...
config-file dir/ exclude rule into a dir/*** rule.
2008-03-22 14:02:34 -07:00
Wayne Davison
819bfe4599
Changed the name of the server_filter_list to be
...
daemon_filter_list, for improved clarity.
2008-03-20 10:42:43 -07:00
Wayne Davison
d4c5cb2b01
A couple more changes for dealing with "checker" warnings.
2008-03-17 10:50:11 -07:00
Wayne Davison
aa0e6b9977
Attempting to silence some more "checker" warnings.
2008-03-17 07:35:19 -07:00
Wayne Davison
18f3cb6957
Changed stat() call to do_stat().
2008-03-16 21:44:33 -07:00
Wayne Davison
53936ef935
Fixed the use of --protect-args (-s) with a daemon.
2008-03-15 11:56:18 -07:00
Wayne Davison
cbbd8e2e8b
The --fake-super option conflicts with -XX (which copies internal
...
rsync xattrs literally).
2008-03-07 15:23:39 -08:00
Wayne Davison
d1c06c2180
Fixing a problem with a NULL config_file pointer when accessing
...
a single-use daemon without no --config option specified. Added
a test to ensure that this doesn't break in the future.
2008-03-03 18:33:11 -08:00
Wayne Davison
d3d07a5e86
Include 2008 in the copyright years.
2008-03-01 12:01:41 -08:00
Wayne Davison
5b3aa8028b
Added missing init_iconv() call when initiating a daemon transfer.
2008-02-27 07:19:13 -08:00
Wayne Davison
15dbffc215
Fixed a compilation problem when iconv support is disabled.
2008-02-18 16:48:20 -08:00
Wayne Davison
beef86d0dd
A few minor changes, including better push_dir()/pop_dir() verbosity.
2008-02-15 22:19:43 -08:00
Wayne Davison
2fe1feea75
Added a way to specify where the chroot should occur in the module's
...
path, which allows a daemon admin to have chroot protection and still
have files that are outside the transfer area (such as libraries).
2008-02-15 19:01:35 -08:00
Wayne Davison
0b52f94da7
Some daemon security improvements, including the new parameters
...
"charset" and "numeric ids".
2008-02-15 17:39:21 -08:00
Wayne Davison
d348d5fd5f
Add a trailing slash to a modname arg that has no path information.
...
This ensures that the user gets a "skipping" message if they didn't
specify -r or -d. (A trailing-slash was already being added to a
lone modname for --list-only transfers.)
2008-02-09 22:07:03 -08:00
Wayne Davison
3e8fe565ed
A daemon needs to call setup_iconv() after parsing the options
...
it receives.
2008-02-06 16:13:37 -08:00
Wayne Davison
62a6b8df72
Made read_arg_from_pipe() handle EINTR.
2008-01-02 17:20:44 -08:00
Wayne Davison
9585b27678
Add a new daemon security option: "munge symlinks".
2007-11-27 07:34:59 -08:00
Wayne Davison
5223b786ca
A daemon needs to set dry_run with --only-write-batch.
2007-11-22 11:19:34 -08:00