>Number: 3264
>Category: suexec
>Synopsis: symlinks don't work in CGI scripts when using SUEXEC
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: apache
>State: open
>Class: sw-bug
>Submitter-Id: apache
>Arrival-Date: Wed Oct 21 14:20:00 PDT 1998
>Last-Modified:
>Originator: [EMAIL PROTECTED]
>Organization:
apache
>Release: 1.3.1
>Environment:
SunOS ntcorp.dn.net 5.6 Generic_105181-04 sun4m sparc SUNW,SPARCstation-20
gcc version 2.8.1
>Description:
I'm trying to get HyperNews running under Apache 1.3.1, and running into
what seems to be an suexec problem.
HyperNews sets up lots of links to its core perl programs, and I keep
getting "can't stat program" errors in suexec's logs.
As far as I can tell, all the permissions are correct, and we've passed
all the security checks in suexec, and then we get to the line of code
(suexec.c) that reads:
/*
* Error out if we cannot stat the program.
*/
if (((lstat(cmd, &prg_info)) != 0) || (S_ISLNK(prg_info.st_mode))) {
log_err("cannot stat program: (%s)\n", cmd);
exit(117);
}
am I wrong, or does this code prevent suexec from executing a program via
a link - even when the link points within allowable directories? or am I
missing something?
is this a bug? a feature? are there any workarounds?
>How-To-Repeat:
>Fix:
>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, ]
[you need to include <[EMAIL PROTECTED]> in the Cc line ]
[and leave the subject line UNCHANGED. This is not done]
[automatically because of the potential for mail loops. ]
[If you do not include this Cc, your reply may be ig- ]
[nored unless you are responding to an explicit request ]
[from a developer. ]
[Reply only with text; DO NOT SEND ATTACHMENTS! ]