Public bug reported:

When starting tcpdump on a server, it prints a warning message every
time it is started, e.g:

nornetpp@soyuz:~$ sudo tcpdump -i any -n icmp
libibverbs: Warning: couldn't open config directory '/etc/libibverbs.d'.
tcpdump: data link type LINUX_SLL2
tcpdump: verbose output suppressed, use -v[v]... for full protocol decode
listening on any, link-type LINUX_SLL2 (Linux cooked v2), snapshot length 
262144 bytes
^C

libibverbs: Warning: couldn't open config directory '/etc/libibverbs.d'.

The machine runs Ubuntu 24.04 LTS Server with the up-to-date package
versions. The machine does not have InfiniBand, just Ethernet. But the
Ethernet controller is a Mellanox ConnectX-4 Lx, which may be relevant:

nornetpp@soyuz:~$ lspci | grep Ethernet
1c:00.0 Ethernet controller: Intel Corporation Ethernet Connection X722 for 
1GbE (rev 09)
1c:00.1 Ethernet controller: Intel Corporation Ethernet Connection X722 for 
1GbE (rev 09)
d8:00.0 Ethernet controller: Mellanox Technologies MT27710 Family [ConnectX-4 
Lx]
d8:00.1 Ethernet controller: Mellanox Technologies MT27710 Family [ConnectX-4 
Lx]


Output of "sudo strace tcpdump -i any -n icmp":
...
penat(AT_FDCWD, "/etc/libibverbs.d", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) 
= -1 EACCES (Permission denied)
write(2, "libibverbs: Warning: couldn't op"..., 73libibverbs: Warning: couldn't 
open config directory '/etc/libibverbs.d'.
)
...

Strangely, the referenced directory seems to be okay:
nornetpp@soyuz:~$ ls -al /etc/libibverbs.d
total 68
drwxr-xr-x 1 root root  418 aug.   5 19:14 .
drwxr-xr-x 1 root root 4326 okt.  29 13:32 ..
-rw-r--r-- 1 root root   15 aug.   5 19:14 bnxt_re.driver
-rw-r--r-- 1 root root   13 aug.   5 19:14 cxgb4.driver
-rw-r--r-- 1 root root   11 aug.   5 19:14 efa.driver
-rw-r--r-- 1 root root   13 aug.   5 19:14 erdma.driver
-rw-r--r-- 1 root root   17 aug.   5 19:14 hfi1verbs.driver
-rw-r--r-- 1 root root   11 aug.   5 19:14 hns.driver
-rw-r--r-- 1 root root   18 aug.   5 19:14 ipathverbs.driver
-rw-r--r-- 1 root root   13 aug.   5 19:14 irdma.driver
-rw-r--r-- 1 root root   12 aug.   5 19:14 mana.driver
-rw-r--r-- 1 root root   12 aug.   5 19:14 mlx4.driver
-rw-r--r-- 1 root root   12 aug.   5 19:14 mlx5.driver
-rw-r--r-- 1 root root   13 aug.   5 19:14 mthca.driver
-rw-r--r-- 1 root root   14 aug.   5 19:14 ocrdma.driver
-rw-r--r-- 1 root root   12 aug.   5 19:14 qedr.driver
-rw-r--r-- 1 root root   11 aug.   5 19:14 rxe.driver
-rw-r--r-- 1 root root   11 aug.   5 19:14 siw.driver
-rw-r--r-- 1 root root   18 aug.   5 19:14 vmw_pvrdma.driver

The warning does not occur when using tshark.

May be some security configuration (SELinux, AppArmor) is not okay for
tcpdump and needs to be fixed?

** Affects: tcpdump (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2130241

Title:
  Warning message "libibverbs: Warning: couldn't open config directory
  '/etc/libibverbs.d'" on startup

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/tcpdump/+bug/2130241/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to