Bug 1358095

Summary: ipcs shows wrong gid information
Product: Red Hat Enterprise Linux 7 Reporter: Tsukahara Ken <tsukahara.ken>
Component: util-linuxAssignee: Karel Zak <kzak>
Status: CLOSED ERRATA QA Contact: Radka Brychtova <rskvaril>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 7.2CC: bblaskov, rskvaril
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: util-linux-2.23.2-36.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-08-01 21:41:11 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: 1380361    
Attachments:
Description Flags
Patch none

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