ci+chore(mod_whp_symlink): remove racy WHPSymlinkWalk prototype; run the probe test in CI; assert Options All mapping
shared-httpd mod_whp_symlink PR check / Symlink-Module-Probe (pull_request) Successful in 1m15s
shared-httpd mod_whp_symlink PR check / Symlink-Module-Probe (pull_request) Successful in 1m15s
- Remove the WHPSymlinkWalk post-walk lstat prototype (check-then-use race by construction; WHPOwnerGuard is the race-free mechanism): hook, directive, per-dir member, header docs. The directive is now an unknown command. - Probe test: WHP_SYMTEST_REQUIRE=1 turns every SKIP into a FAIL (no docker, no image, container does not start) and a minimum assertion count is enforced. New assertions: bare `Options All` keeps Apache semantics (Indexes on, MultiViews off, same-owner symlink followed, cross-tenant refused) plus None/+MultiViews controls (106 assertions). - CI: new pull_request workflow shared-httpd-symlink-pr.yaml (builds amd64 locally, no push/secrets, runs the probe test); build-push.yaml Build-Shared-httpd runs the probe test against the amd64 digest it just pushed, before the arm64 build and tag assembly, so a failure publishes no tag. Test script added to the shellcheck set; wiring tests added. - docs/shared-httpd-symlink-module.md: behaviour, local run, CI. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0185ukXi4YX5FxJGqhi6qab6
This commit is contained in:
1 parent
1953a176f5
commit
0d9e57e012
7 files changed
+161
-62
No files matched your search
@@ -6,7 +6,10 @@
|
||||
# rewritten before the core parses it (FollowSymLinks -> SymLinksIfOwnerMatch,
|
||||
# Includes -> IncludesNOEXEC, ExecCGI dropped), so stock CMS files
|
||||
# (CodeIgniter 4, Joomla, OpenCart, Magento) stop answering 500 and no
|
||||
# tenant can switch owner-unchecked symlinks back on.
|
||||
# tenant can switch owner-unchecked symlinks back on. Bare `Options All`
|
||||
# keeps Apache's meaning minus the unsafe parts: it becomes
|
||||
# `Indexes SymLinksIfOwnerMatch` (All includes Indexes and excludes
|
||||
# MultiViews, so Indexes stays on and MultiViews stays off).
|
||||
WHPHtaccessOptionsRemap On
|
||||
|
||||
# Owner check on the file descriptor actually served (the Bluehost/cPanel
|
||||
|
||||
Reference in new issue
Block a user