RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1358095 - ipcs shows wrong gid information
Summary: ipcs shows wrong gid information
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: util-linux
Version: 7.2
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: rc
: ---
Assignee: Karel Zak
QA Contact: Radka Brychtova
URL:
Whiteboard:
Depends On:
Blocks: 1380361
TreeView+ depends on / blocked
 
Reported: 2016-07-20 03:13 UTC by Tsukahara Ken
Modified: 2017-08-01 21:41 UTC (History)
2 users (show)

Fixed In Version: util-linux-2.23.2-36.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-08-01 21:41:11 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Patch (1.34 KB, text/plain)
2016-07-20 03:13 UTC, Tsukahara Ken
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2017:2186 0 normal SHIPPED_LIVE util-linux bug fix and enhancement update 2017-08-01 18:41:36 UTC

Description Tsukahara Ken 2016-07-20 03:13:01 UTC
Created attachment 1181894 [details]
Patch

Description of problem:
ipcs shows wrong gid. The "gid" is not the real gid information, but uid.

Version-Release number of selected component (if applicable):
util-linux-2.23.2-26.el7_2.2.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Check shared memory information.
   $ ipcs -m
   ------ Shared Memory Segments --------
   key        shmid      owner      perms      bytes      nattch     status
   0x011456ac 0          root       600        1000       6
   0x00000000 229377     user1      600        524288     2          dest
   0x00000000 262146     user1      600        4194304    2          dest
   0x00000000 360451     user1      600        4194304    2          dest
   0x00000000 458758     user1      600        4194304    2          dest
2. Show details of the one, which is owned by user1(uid=30044, gid=9336).
   $ ipcs -mi 229377

Actual results:
   $ ipcs -mi 229377
   Shared memory Segment shmid=229377
   uid=30044       gid=30044       cuid=30044      cgid=9336
   mode=01600      access_perms=0600
   bytes=524288    lpid=27411      cpid=26635      nattch=2
   att_time=Wed Jul 20 10:13:56 2016
   det_time=Wed Jul 20 10:13:56 2016
   change_time=Wed Jul 20 10:12:38 2016

Expected results:
   $ ipcs -mi 229377
   Shared memory Segment shmid=229377
   uid=30044       gid=9336        cuid=30044      cgid=9336
   mode=01600      access_perms=0600
   bytes=524288    lpid=27411      cpid=26635      nattch=2
   att_time=Wed Jul 20 10:13:56 2016
   det_time=Wed Jul 20 10:13:56 2016
   change_time=Wed Jul 20 10:12:38 2016

Additional info:

Comment 2 Karel Zak 2016-07-20 08:29:32 UTC
Thanks, it's also already fixed in upstream repository (commit e0bbe3d6ffed13ca5e4af450b8de775ddc5b30f3).

Comment 3 Tsukahara Ken 2016-07-20 10:34:33 UTC
I see. Are there any plans to release an update rpm?

Comment 4 Karel Zak 2016-07-20 11:29:26 UTC
I cannot promise any schedule here in bugzilla (you have to ask at http://support.redhat.com to get official reply), but from my point of view it's important enough to fix it in some next RHEL update.

Comment 5 Tsukahara Ken 2016-07-20 11:54:07 UTC
OK. I hope it will be released in the near future.

Comment 10 errata-xmlrpc 2017-08-01 21:41:11 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2017:2186


Note You need to log in before you can comment on or make changes to this bug.