Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Process] Return false when open_basedir prevents access to /dev/tty #54863

Merged
merged 1 commit into from
May 15, 2024

Conversation

mjauvin
Copy link
Contributor

@mjauvin mjauvin commented May 7, 2024

Q A
Branch? 6.4
Bug fix? yes
New feature? no
Deprecations? no

If open_basedir restrictions are in effect, checking if the file /dev/tty is writable will prevent setting tty mode on the process, and avoid failing to create a Process.

Fixes #54874

…nt access to /dev/tty.

If open_basedir restrictions are in effect, checking if the file /dev/tty is writable will prevent setting tty mode on the process, and avoid failing to create a Process.
@xabbuh
Copy link
Member

xabbuh commented May 7, 2024

Symfony 5.4 would suffer from this too, right?

@xabbuh xabbuh added the Process label May 7, 2024
@carsonbot carsonbot changed the title Return false when open_basedir prevents access to /dev/tty. [Process] Return false when open_basedir prevents access to /dev/tty. May 7, 2024
@mjauvin
Copy link
Contributor Author

mjauvin commented May 7, 2024

Symfony 5.4 would suffer from this too, right?

I suppose, yes.

@OskarStark OskarStark changed the title [Process] Return false when open_basedir prevents access to /dev/tty. [Process] Return false when open_basedir prevents access to /dev/tty May 7, 2024
@OskarStark OskarStark modified the milestones: 6.4, 5.4 May 7, 2024
Copy link
Member

@chalasr chalasr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On 5.4

@xabbuh
Copy link
Member

xabbuh commented May 15, 2024

looks like this only affects 6.4+ because of the changes done in #46971

@xabbuh xabbuh modified the milestones: 5.4, 6.4 May 15, 2024
@xabbuh
Copy link
Member

xabbuh commented May 15, 2024

Thank you @mjauvin.

@xabbuh xabbuh merged commit b49df79 into symfony:6.4 May 15, 2024
5 of 10 checks passed
@fabpot fabpot mentioned this pull request May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants