Skip to content

[PHP] fix: marshal lchown path through syscall channel#743

Open
brandonpayton wants to merge 1 commit into
integration/kd-6nz-php-phpt-harness-only-basefrom
gascity/kd-6nz/split-pr717-marshal-lchown-path
Open

[PHP] fix: marshal lchown path through syscall channel#743
brandonpayton wants to merge 1 commit into
integration/kd-6nz-php-phpt-harness-only-basefrom
gascity/kd-6nz/split-pr717-marshal-lchown-path

Conversation

@brandonpayton

Copy link
Copy Markdown
Member

Supersedes fork-headed PR #723. This replacement keeps the same head commit (5eb8da36131ab7523dcf61de6168930a4eec79eb) but moves the PR head onto an Automattic/kandelo branch.

Why this is needed

PHP filesystem tests cover ownership and symlink edge cases, including lchown. The host syscall path needs the target path in the syscall channel; otherwise the kernel cannot apply ownership operations to the intended pathname.

Why this shape makes sense

The bug is in syscall marshalling, not PHP. Fixing the path transport keeps the syscall ABI coherent for every runtime caller that needs path-based ownership operations.

Why this is the correct fix

Marshalling the lchown path through the syscall channel preserves the user/kernel contract and lets the existing syscall implementation operate on the correct object.

Verification

Branch-location correction only; replacement head SHA matches #723 exactly.

(cherry picked from commit f900443)
(cherry picked from commit 2ceb657)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant