httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 19086] New: - chroot, /bin/sh and rotatelogs
Date Wed, 16 Apr 2003 18:33:20 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19086>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19086

chroot, /bin/sh and rotatelogs

           Summary: chroot, /bin/sh and rotatelogs
           Product: Apache httpd-1.3
           Version: 1.3.27
          Platform: Alpha
        OS/Version: Other
            Status: NEW
          Severity: Minor
          Priority: Other
         Component: mod_log_config
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: Conor@kerna.ie


Apache 1.3.27, Digital Unix 4.0 (aka OSF1).
Problem running httpd in chroot environment and using "|rotatelogs ..." piped 
log files. 
httpd is exec-ing "/bin/sh -c rotatelog ...", which means there'd better be a
/bin/sh in the chroot jail, something I'd rather not have :)
I assume it's doing this so that shell type things work as expected.
A workaround is to use a dummy wrapper /bin/sh (30 lines of C) to parse and 
split the command line parameters, and invoke an execv(). Or use syslog. Or
rotate manually.
See src/main/http_log.c .

Thanks - Conor.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message