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 984643 - allow idmap-plugin symlink to be managed by the "alternatives" system
Summary: allow idmap-plugin symlink to be managed by the "alternatives" system
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: cifs-utils
Version: 7.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: rc
: ---
Assignee: Sachin Prabhu
QA Contact: Chao Ye
URL:
Whiteboard:
Depends On: 984088
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-07-15 15:32 UTC by Jeff Layton
Modified: 2014-06-18 07:43 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of: 984088
Environment:
Last Closed: 2014-06-13 10:40:07 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Jeff Layton 2013-07-15 15:32:17 UTC
+++ This bug was initially created as a clone of Bug #984088 +++

Currently cifs-utils tracks what plugin to use via a symlink in /etc/cifs-utils. We already have another facility for these sorts of symlinks in /etc/alternatives. Change it to use a symlink in that directory instead.

--- Additional comment from Jeff Layton on 2013-07-15 09:32:10 EDT ---

Ok, slight difference here...

The alternatives system relies on double-indirection, so we basically need to change /etc/cifs-utils/idmap-plugin to an "alternative" (a symlink that points into /etc/alternatives). The "alternatives" command takes care of the rest.

The only tricky part is that the old idmap-plugin is listed as a %config(noreplace) in the old package. So we need to change that to a %ghost directive to make sure the removal of the old package doesn't remove the symlink created in the %post script by the alternatives command.

I'll hopefully have this fixed in rawhide today...

--- Additional comment from Jeff Layton on 2013-07-15 09:40:31 EDT ---

Ok, new package pushed to rawhide and it seems to do the right thing. Closing with resolution of RAWHIDE.

Comment 2 Jeff Layton 2013-07-17 12:29:40 UTC
Fixed in cifs-utils-6.1-3.el7

Comment 4 Jian Li 2014-01-02 03:10:31 UTC
Verified on cifs-utils-6.2-4.el7.x86_64, it use alternative systems

[root@hp-dl388g8-18 rpms]# rpm -q cifs-utils 
cifs-utils-6.2-4.el7.x86_64
[root@hp-dl388g8-18 rpms]# ls -l /etc/alternatives/cifs-idmap-plugin  /etc/cifs-utils/idmap-plugin  -l 
lrwxrwxrwx. 1 root root 32 Jan  1 22:03 /etc/alternatives/cifs-idmap-plugin -> /usr/lib64/cifs-utils/idmapwb.so
lrwxrwxrwx. 1 root root 35 Jan  1 22:03 /etc/cifs-utils/idmap-plugin -> /etc/alternatives/cifs-idmap-plugin

Check cifs-utils-6.0-1.el7, it doesn't use alternative

[root@hp-dl388g8-18 rpms]# ls -l /etc/alternatives/cifs-idmap-plugin  /etc/cifs-utils/idmap-plugin  -l 
ls: cannot access /etc/alternatives/cifs-idmap-plugin: No such file or directory
lrwxrwxrwx. 1 root root 32 Jan  1 22:08 /etc/cifs-utils/idmap-plugin -> /usr/lib64/cifs-utils/idmapwb.so
[root@hp-dl388g8-18 rpms]# rpm -q cifs-utils 
cifs-utils-6.0-1.el7.x86_64

Comment 6 Ludek Smid 2014-06-13 10:40:07 UTC
This request was resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you have further questions about the request.


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