This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/25383] New: where_is_shmfs/__shm_directory/SHM_GET_NAME may cause shm_open to pick wrong directory
- From: "fweimer at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Tue, 14 Jan 2020 11:31:46 +0000
- Subject: [Bug libc/25383] New: where_is_shmfs/__shm_directory/SHM_GET_NAME may cause shm_open to pick wrong directory
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=25383
Bug ID: 25383
Summary: where_is_shmfs/__shm_directory/SHM_GET_NAME may cause
shm_open to pick wrong directory
Product: glibc
Version: 2.32
Status: NEW
Severity: normal
Priority: P2
Component: libc
Assignee: unassigned at sourceware dot org
Reporter: fweimer at redhat dot com
CC: drepper.fsp at gmail dot com
Target Milestone: ---
If /dev/shm does not exist, where_is_shmfs picks an arbitrary tmpfs mount point
from /proc/mounts. It does not even check if the permissions are 1777 as
expected. This wrong decision is cached and used even if /dev/shm becomes
available later.
I think we should hard-code /dev/shm instead.
--
You are receiving this mail because:
You are on the CC list for the bug.