Bug 1032072

Summary: cogl: insecure shmget permissions
Product: Red Hat Enterprise Linux 7 Reporter: Florian Weimer <fweimer>
Component: coglAssignee: Jonas Ã…dahl <jadahl>
Status: CLOSED WONTFIX QA Contact: Desktop QE <desktop-qa-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.0CC: mclasen, tpelka
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-12-08 13:19:22 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1032071    

Description Florian Weimer 2013-11-19 13:52:46 UTC
IPC_PRIVATE is a misnomer, and this will create a SHM segment with 0777 permissions:

  tex_pixmap->shm_info.shmid = shmget (IPC_PRIVATE,
                                       dummy_image->bytes_per_line
                                       * dummy_image->height,
                                       IPC_CREAT | 0777);

This should probably use 0600 permissions instead.  As far as I can see, it's a cosmetic issue because the SHM segment is only temporary and not used for anything important.

Comment 2 RHEL Program Management 2014-03-22 06:30:46 UTC
This request was not resolved in time for the current release.
Red Hat invites you to ask your support representative to
propose this request, if still desired, for consideration in
the next release of Red Hat Enterprise Linux.