strip setuid/setgid bits on backup (was Re: small security-related rsync extension)

Robert Weber Robert.Weber at Colorado.EDU
Tue Jul 9 08:38:59 EST 2002


> 
> > never seen a file created with a newline in the filename
> > (except, perhaps as a test).  The newline in filename issue
> 
> And in security exploits :-)  Given a newline-based format, one *must*
> quote or deny newlines in filenames, not assume they're rare.  (No
> obvious reason not to use URL-style %-quoting, or mime-style
> =-quoting, if you want to preserve ease of filtering...)
> 
----------
This brings up an issue that I believe can be solved in a simpler way than
with brute force C code.  I suspect some of you will cringe when you hear
this, but a taintperl log parsing program would be best for this.  rsync
could generate a verbose log file that is not human readable, designed to
be read by a perl postprocessing script.  I think this would allow greater
flexibility, and modularize the functionality to avoid some possible
security problems.  This way log parsing would not be done at the
authentication level of rsync(root) but at some lower level with read
access to the log file.  Does this sound like a reasonable solution?


						Robert Weber
						University of Colorado




More information about the rsync mailing list