[Webkit-unassigned] [Bug 277734] New: [WTF] Open files with O_CLOEXEC by default to avoid file handles leak
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Aug 7 06:12:37 PDT 2024
https://bugs.webkit.org/show_bug.cgi?id=277734
Bug ID: 277734
Summary: [WTF] Open files with O_CLOEXEC by default to avoid
file handles leak
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: Web Template Framework
Assignee: webkit-unassigned at lists.webkit.org
Reporter: olivier.blin at softathome.com
CC: aperez at igalia.com, cdumez at apple.com,
cgarcia at igalia.com, darin at apple.com,
don.olmstead at sony.com, Hironori.Fujii at sony.com,
mcatanzaro at redhat.com, ross.kirsling at sony.com,
sihui_liu at apple.com
FileSystemPOSIX opens files without the O_CLOEXEC file in openFile() and openTemporaryFile().
This can cause file handles to be leaked to subprocess.
For example, if the UIProcess opens content rules files from the ContentRuleListStore class between the NetworkProcess is spawned, the content rules file handles are leaked to the NetworkProcess.
It does not seem useful to open files without O_CLOEXEC.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20240807/95d4e3a4/attachment-0001.htm>
More information about the webkit-unassigned
mailing list