This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/17145] New: syslog with LOG_CONS leaks console file descriptor
- From: "bugdal at aerifal dot cx" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Sat, 12 Jul 2014 01:36:21 +0000
- Subject: [Bug libc/17145] New: syslog with LOG_CONS leaks console file descriptor
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=17145
Bug ID: 17145
Summary: syslog with LOG_CONS leaks console file descriptor
Product: glibc
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: libc
Assignee: unassigned at sourceware dot org
Reporter: bugdal at aerifal dot cx
CC: drepper.fsp at gmail dot com
When LOG_CONS is enabled and sending to the logging facility fails, syslog()
opens /dev/console without the O_CLOEXEC flag. Thus a file descriptor to the
console can leak to child processes in multithreaded programs or programs which
fork and exec from signal handlers.
--
You are receiving this mail because:
You are on the CC list for the bug.