Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 759688 - net-fs/cifs-utils: fails with new sys-libs/libcap-ng-0.8.2
Summary: net-fs/cifs-utils: fails with new sys-libs/libcap-ng-0.8.2
Status: RESOLVED DUPLICATE of bug 759565
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo's SAMBA Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-12-13 01:08 UTC by aion1223
Modified: 2020-12-13 01:12 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description aion1223 2020-12-13 01:08:42 UTC
I have two gentoo machines: one for samba client, the other for server. I'd call them X and Y, respectively. 

Y serves a directory over samba. It has worked well. Even from X, I could mount the directory with nautilus followed by ctrl + L. Also, smbclient command from X works. 

What did not work is to use mount.cifs from the command line as well as via /etc/fstab.

Here's the line for fstab:
//10.0.0.3/sda /home/myid/mydir cifs uid=1000,gid=1000,credentials=/home/myid/.smb,iocharset=cp949,vers=3.0,noperm


su - followed by mount -va does not work, and the error message was:
 "Unable to apply new capability set."

The libcap-ng version was 0.8.2. Downgrading the version to 0.8 (by package.mask) helped. Without changing anything else, it works.

Here's the client side emerge --info:

$ emerge --info
$ emerge --info
Portage 3.0.12 (python 3.7.9-final-0, default/linux/amd64/17.1/desktop/gnome/systemd, gcc-10.2.0, glibc-2.32-r5, 5.9.14-gentoo x86_64)
=================================================================
System uname: Linux-5.9.14-gentoo-x86_64-AMD_Ryzen_7_3700X_8-Core_Processor-with-gentoo-2.7
KiB Mem:    65815040 total,  55372604 free
KiB Swap:   31999996 total,  31999996 free
Timestamp of repository gentoo: Sat, 12 Dec 2020 00:30:01 +0000
Head commit of repository gentoo: b63da8a7200e661b89994f3728c738ea43c23dd8
sh bash 5.0_p18
ld GNU ld (Gentoo 2.35.1 p2) 2.35.1
app-shells/bash:          5.0_p18::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.30.3-r1::gentoo
dev-lang/python:          3.6.12::gentoo, 3.7.9::gentoo, 3.8.6::gentoo, 3.9.0::gentoo
dev-util/cmake:           3.19.1::gentoo
sys-apps/baselayout:      2.7-r1::gentoo
sys-apps/sandbox:         2.20::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.16.3-r1::gentoo
sys-devel/binutils:       2.35.1-r1::gentoo
sys-devel/gcc:            10.2.0-r3::gentoo
sys-devel/gcc-config:     2.3.2-r1::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.9::gentoo (virtual/os-headers)
sys-libs/glibc:           2.32-r5::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-max-age: 24
    sync-rsync-extra-opts: 
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-jobs: 1

dotnet
    location: /var/lib/layman/dotnet
    masters: gentoo
    priority: 50

eclipse
    location: /var/lib/layman/eclipse
    masters: gentoo
    priority: 50

libressl
    location: /var/lib/layman/libressl
    masters: gentoo
    priority: 50

stuff
    location: /var/lib/layman/stuff
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native -mtune=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -march=native -mtune=native"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en en_US ko"
MAKEOPTS="-j16"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="R X a52 aac acc accountsservice acl acpi alsa amd64 anthy apache apache2 apng apparmor avx avx2 berkdb bluetooth bluetooth-sound branding btpclient bzip2 c++ cairo caja cdda cdpau cdr cjk clang cleartype cli colord corefonts crypt cuda cups cxx dbus detex device-mapper dhcp dirac divx dri drm dts dvd dvdr dvdread dvi2tty eds egl emacs emboss encode epspdf evo exif extras ffmpeg flac fortran fuse gallium gdbm gdu gif gimp gles gles1 gles2 glitz gnome gnome-keyring gnome-online-accounts gold gpm gstreamer gtk gtk3 gui hal hwaccel iconv icu imap introspection ipod ipv6 irc java jingle jpeg jpeg2k lame latex lcms libffi libglvnd libnotify libsecret libtirpc libwww linguas_en linguas_ja linguas_ko linlinguas_en_US lto m17n-lib mad maildir mate mikmod mmx mng mp2 mp3 mp3g2 mp4 mp4live mpeg mplayer multilib multitarget nautilus ncurses networkmanager nls nptl nsplugin ogg ogm opengl openmp pam pango pcre pdf pdfannotextractor pluginwrapper png podcast policykit postscript ppds pstricks publishers pulseaudio python qt3 qt4 qt5 readline real samba sasl science scim sdl seccomp sftp sid snmp sound spell split-usr sqlite sse sse2 sse3 sse4 sse4_1 sse4_2 ssh ssl ssse3 startup-notification static-libs static-pie subversion svg syslog sysprof systemd systemtap tcpd tex4ht texi2html theora threads tiff tracker truetype type1 udev udisks unicode upower usb vaapi vcd vdpau vnc vorbis wayland win32codecs wma wmf wmp wxwidgets x264 x265 xa xattr xcb xetex xine xinerama xml xv xvid youtube zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="actions alias auth_basic auth_digest authn_alias authn_anon authn_core authn_dbm authn_file authz_core authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif socache_shmcb speling status unique_id unixd userdir usertrack vhost_alias http2 slotmem_shm xml2enc proxy proxy_balancer proxy_connect proxy_fcgi proxy_ftp proxy_html proxy_http" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64 multiboot" INPUT_DEVICES="mouse keyboard evdev synaptics virtualbox" KERNEL="linux" L10N="ja ko en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="AMDGPU BPF NVPTX X86 AArch64 ARM Hexagon MSP430 Mips PowerPC Sparc SystemZ XCore" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2 php7-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_8" PYTHON_TARGETS="python2_7 python3_6 python3_7 python3_8" QEMU_SOFTMMU_TARGETS="x86_64 aarch64 arm" QEMU_USER_TARGETS="aarch64 arm armeb x86_64" RUBY_TARGETS="ruby25 ruby26 ruby27" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


The samba server version and use flags are:
[ebuild   R    ] net-fs/samba-4.13.2-r1::gentoo  USE="acl ads client cups ldap pam python syslog system-mitkrb5 systemd winbind -addc -addns -ceph -cluster -debug (-dmapi) (-fam) -gpg -iprint -json -profiling-data -quota (-selinux) -snapper (-system-heimdal) (-test) -zeroconf" ABI_X86="(64) -32 (-x32)" PYTHON_SINGLE_TARGET="python3_8 -python3_6 -python3_7" 0 KiB

I believe that this may be a bug.
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-12-13 01:10:21 UTC
Thank you for the report. I think we need to mask the new libcap-ng again.

*** This bug has been marked as a duplicate of bug 759565 ***
Comment 2 Larry the Git Cow gentoo-dev 2020-12-13 01:12:57 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4ca4382ca9ff930c32be7bad930eb0c415bae4d2

commit 4ca4382ca9ff930c32be7bad930eb0c415bae4d2
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2020-12-13 01:11:45 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2020-12-13 01:11:45 +0000

    profiles/package.mask: mask =sys-libs/libcap-ng-0.8.2
    
    Seems to still break consumers. Unsure about applying
    the patch used in Fedora given that upstream have
    cut a new release since and not included both
    of the fixes previously being applied there.
    
    Masking for now while we decide on a way forward.
    
    Bug: https://bugs.gentoo.org/759565
    Bug: https://bugs.gentoo.org/759550
    Bug: https://bugs.gentoo.org/759688
    Signed-off-by: Sam James <sam@gentoo.org>

 profiles/package.mask | 6 ++++++
 1 file changed, 6 insertions(+)