Red Hat Bugzilla – Bug 181869
Error given when duplicate non-updateable key (eg: keyring) added
Last modified: 2007-11-30 17:07:23 EST
Description of problem:
Addition of duplicate non-updateable keys (such as keyrings) to a keyring
should displace the old instance of the key but gives EEXIST instead.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. keyctl session -
2. keyctl newring a @s
3. keyctl newring a @s
4. keyctl show
At step 3, the command gives a "File exists" error, and at step 4 you can see
the keyring created at step 2 attached to the session keyring.
At step 3, the command should work, and should return a new key ID. At step 4
you should see that the keyring created in step 3 is attached to the session
keyring, and the keyring from step 2 is nowhere to be seen.
Created attachment 124805 [details]
Patch to replace duplicate non-updateable keys
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.