Bug 28606 - cifs-utils is userspace cifs vfs from Kernel, should be installed by default with samba-client to help user experience
Summary: cifs-utils is userspace cifs vfs from Kernel, should be installed by default ...
Status: NEW
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: High normal
Target Milestone: ---
Assignee: All Packagers
QA Contact:
URL:
Whiteboard: MGA9TOO, MGA8TOO
Keywords: FOR_ERRATA8, FOR_ERRATA9
Depends on:
Blocks:
 
Reported: 2021-03-16 17:01 CET by Xuo
Modified: 2023-09-08 17:48 CEST (History)
7 users (show)

See Also:
Source RPM: cifs-utils-6.12-1.mga9.src.rpm
CVE:
Status comment: cifs-utils-6.11-2.mga8.src.rpm


Attachments
Mageia7 to Mageia8 upgrade log file. (96.22 KB, application/gzip)
2021-03-19 21:03 CET, Xuo
Details

Description Xuo 2021-03-16 17:01:05 CET
Hi,

Description of problem:
I try to mount a cifs directory :
mount.cifs //Iomega/NetHDD /mnt/Iomega
I get the following error message :
Unable to apply new capability set.

I had a look on Internet and the issue seems to come from the 
lib(64)cap-ng package starting from version 0.8.1-1. (see : https://www.reddit.com/r/archlinux/comments/kc6zny/sambacifs_mount_is_broken_at_the_moment)
Version 0.8.2 is used on Mageia8.

Version-Release number of selected component (if applicable):
Mageia 8
package : lib64cap-ng0-0.8.2-1.mga8

How reproducible:
mount.cifs <Cifs dir> <Mount Point>

Could you try to correct this bug ? Mageia7 do not have this issue.

Regards.

Xuo.
Comment 1 Aurelien Oudelet 2021-03-18 15:52:47 CET
Not tested.

Thanks pointing this.
I don't have samba shares on this computer.
Asking QA and MLO IRC if someone have samba shares.

CC: (none) => ouaurelien
Source RPM: (none) => libcap-ng-0.8.2-1.mga8.src.rpm

Comment 2 Mike Rambo 2021-03-18 21:13:25 CET
FWIW - I tested mount.cifs on mga8 in my environment earlier today and didn't have a problem, but I was testing against a CentOS 7 server rather than an appliance such as in the description. My mga8 test laptop has the release versions of both lib64cap-ng0 and cifs-utils (the latter of which was mentioned in the reddit thread).

I do recall a kernel change made awhile back that seemed to inordinately affect appliance type devices as I recall. Maybe it's worth a look.

https://www.linux.com/topic/desktop/linux-kernel-413-dont-use-smb1/

I some cases where the host does not support anything greater, you have to force smbv1.

CC: (none) => mrambo

Comment 3 Xuo 2021-03-18 22:03:21 CET
Hi,

The package cifs-utils was missing. For some reason, after the update from Mageia7 to Mageia8, it was no more installed. This is what I think as the mounts were working fine before the update.
Now mount.cifs and cifs mounts using autofs are working fine.
Thank you for your help.

Regards.

Xuo.

Status: NEW => RESOLVED
Resolution: (none) => INVALID
CC: (none) => xuoy

Comment 4 Morgan Leijström 2021-03-18 23:07:24 CET
The bug is that cifs-utils got removed during upgrade.

Do you have a log from the upgrade?

What method did you use to upgrade?

Summary: The cifs mounts (and automounts) do not work on Mageia 8. => Upgrade bug: cifs-utils got removed
Priority: Normal => High
Resolution: INVALID => (none)
Status comment: (none) => Comment 3+
Source RPM: libcap-ng-0.8.2-1.mga8.src.rpm => (none)
URL: https://www.reddit.com/r/archlinux/comments/kc6zny/sambacifs_mount_is_broken_at_the_moment => (none)
CC: (none) => fri
Status: RESOLVED => REOPENED

Comment 5 Xuo 2021-03-19 21:01:36 CET
Hi,

If it was necessary for Mageia7 to perform cifs mounts, so, yes, I think it has been removed.

Here are the commands I've run for the upgrade :
systemctl isolate multi-user.target
script upgrade_log.txt 
urpmi --auto-update --auto --force
urpmi.removemedia --a
urpmi.addmedia --distrib --mirrorlist 'http://mirrors.mageia.org/api/mageia.8.$ARCH.list'
urpmi --auto-update --auto --force

I've attached the upgrade log file.

Regards.

Xuo.
Comment 6 Xuo 2021-03-19 21:03:32 CET
Created attachment 12479 [details]
Mageia7 to Mageia8 upgrade log file.
Comment 7 Aurelien Oudelet 2021-03-21 16:57:36 CET
Thanks providing log file.

I don't find any "cifs*" package involved in the upgrade.
The above mentioned cifs-utils was not installed in Mageia 7.
This is *NOT* an upgrade issue.

Digging more:

I wonder why now it is necessary. better packaging? Should be recommended by samba?

$ urpmq -i cifs-utils
Name        : cifs-utils
Version     : 6.11
Release     : 2.mga8
Group       : Networking/Other
Size        : 397693                       Architecture: x86_64
Source RPM  : cifs-utils-6.11-2.mga8.src.rpm
URL         : http://www.samba.org/linux-cifs/cifs-utils/
Summary     : Tools for Managing Linux CIFS Client Filesystems
Description :
Tools for Managing Linux CIFS Client Filesystems.

$ urpmq --whatrequires cifs-utils
cifs-utils

$ urpmq --whatrequires-recursive cifs-utils
cifs-utils

Hum.

$ rpm -qa | grep cifs

$ rpm -qa | grep samba
samba-client-4.12.11-1.mga8
samba-common-4.12.11-1.mga8
lib64samba1-4.12.11-1.mga8
lib64samba-dc0-4.12.11-1.mga8
lib64kdc-samba4_2-4.12.11-1.mga8

upstream website:

The in-kernel CIFS filesystem is generally the preferred method for mounting SMB/CIFS shares on Linux.

The in-kernel CIFS filesystem relies on a set of user-space tools. That package of tools is called cifs-utils. Although not really part of Samba proper, these tools were originally part of the Samba package. For several reasons, shipping these tools as part of Samba was problematic and it was deemed better to split them off into their own package.

cifs-utils should be installed by default if samba-client s also installed.


As there is no maintainer for this package I added the committers in CC.
(Please set the status to 'assigned' if you are working on it)

CC: (none) => geiger.david68210, luigiwalser
Summary: Upgrade bug: cifs-utils got removed => cifs-utils is userspace cifs vfs from Kernel, should be installed by default with samba-client to help user experience
Assignee: bugsquad => pkg-bugs
Version: 8 => Cauldron
Status: REOPENED => NEW
Whiteboard: (none) => MGA8TOO
Status comment: Comment 3+ => (none)
Source RPM: (none) => cifs-utils-6.11-2.mga8.src.rpm

Aurelien Oudelet 2021-03-21 16:58:21 CET

Source RPM: cifs-utils-6.11-2.mga8.src.rpm => cifs-utils-6.12-1.mga9.src.rpm
Status comment: (none) => cifs-utils-6.11-2.mga8.src.rpm
Version: Cauldron => 8

Aurelien Oudelet 2021-03-21 16:58:26 CET

Version: 8 => Cauldron

Florian Hubold 2023-09-08 17:29:55 CEST

CC: (none) => doktor5000

Comment 8 Morgan Leijström 2023-09-08 17:48:12 CEST
Smells like errata to me

Keywords: (none) => FOR_ERRATA8, FOR_ERRATA9
Whiteboard: MGA8TOO => MGA9TOO, MGA8TOO


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