[Samba] Strange logs from smbd

Ralph Boehme slow at samba.org
Thu Apr 1 13:58:38 UTC 2021


Am 4/1/21 um 1:11 PM schrieb Roy Eastwood via samba:
> I have a member server running in a LXD privileged container using a
> btrfs storage pool for the container.   I have been getting logs in
> the form:
> 
> Apr  1 10:09:35 lxd-m1 smbd[4586]:   btrfs_fget_compression: /proc
> open of /proc/self/fd/50 failed: Permission denied
> 
> Is this an artefact of running samba in a container and can these be
> ignored or is it a problem I should be worried about?   Any advice
> will be appreciated.

this is definitely something to worry about. I assume this is happening
with Samba 4.14? That uses a new internal infrastructure code that makes
use of re-opening fds via /proc/self/fd.

I've just checked and I don't see a problem inside a privileged podmain
container on kernel 5.10.22-200.fc33.x86_64 (latest Fedora).

We have a function that checks if /proc/self/fd is usable. That does a 
stat() as basic usability check, looks like we also have to check that 
readlink (or just open) works.

-slow

-- 
Ralph Boehme, Samba Team                https://samba.org/
Samba Developer, SerNet GmbH   https://sernet.de/en/samba/
GPG-Fingerprint   FAE2C6088A24252051C559E4AA1E9B7126399E46

-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <http://lists.samba.org/pipermail/samba/attachments/20210401/a4bb54c0/OpenPGP_signature.sig>


More information about the samba mailing list