Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-141380

[virtiofs]Better Error Info While Dropping cap_dac_read_search

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • rhel-10.2
    • virtiofsd
    • None
    • None
    • Low
    • rhel-virt-storage
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • Unspecified
    • Unspecified
    • Unspecified
    • None

      What were you trying to do that didn't work?

      As subject.

      Please provide the package NVR for which the bug is seen:

      virtiofsd-1.13.3-1.el10

      How reproducible is this bug?:

      100%

      Steps to reproduce

      # capsh --drop=cap_dac_read_search --
      
      # capsh --print
      Current: =ep cap_dac_read_search-ep
      Bounding set =cap_chown,cap_dac_override,cap_fowner,cap_fsetid,cap_kill,cap_setgid,cap_setuid,cap_setpcap,cap_linux_immutable,cap_net_bind_service,cap_net_broadcast,cap_net_admin,cap_net_raw,cap_ipc_lock,cap_ipc_owner,cap_sys_module,cap_sys_rawio,cap_sys_chroot,cap_sys_ptrace,cap_sys_pacct,cap_sys_admin,cap_sys_boot,cap_sys_nice,cap_sys_resource,cap_sys_time,cap_sys_tty_config,cap_mknod,cap_lease,cap_audit_write,cap_audit_control,cap_setfcap,cap_mac_override,cap_mac_admin,cap_syslog,cap_wake_alarm,cap_block_suspend,cap_audit_read,cap_perfmon,cap_bpf,cap_checkpoint_restore
      Ambient set =
      Current IAB: !cap_dac_read_search
      Securebits: 00/0x0/1'b0 (no-new-privs=0)
       secure-noroot: no (unlocked)
       secure-no-suid-fixup: no (unlocked)
       secure-keep-caps: no (unlocked)
       secure-no-ambient-raise: no (unlocked)
      uid=0(root) euid=0(root)
      gid=0(root)
      groups=0(root)
      Guessed mode: HYBRID (4)
      
      # /usr/libexec/virtiofsd --socket-path=/var/tmp/avocado_eknrtfyw/avocado-vt-vm1-viofs-virtiofsd.sock -o source=/root/avocado/data/avocado-vt/virtio_fs_test/ -o cache=auto
      [2025-12-30T03:16:46Z WARN  virtiofsd] Use of deprecated option format '-o': Please specify options without it (e.g., '--cache auto' instead of '-o cache=auto')
      [2025-12-30T03:16:46Z ERROR virtiofsd] can't apply the child capabilities: failed to sync capabilities with the kernel

      Expected results

      Better error information

      Actual results

      As above.

              gmaglion German Maglione
              timao@redhat.com Tingting Mao
              virt-maint virt-maint
              virt-bugs virt-bugs
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: