Hi,

I've privately e-mailed to ask for more details, but did not get a response to:

I cannot reproduce the issue on OpenBSD 8.0.

On my simple network share it does not read /var/run/samba I think (I checked
the ktrace log).
Running a ktrace I see it tries to read files from /etc/samba/.
However for susmb it should be used stand-alone (smb:// as the applications
arguments) and not use share names from /etc/samba/ or so.

I'm willing to loosen unveil() a bit, maybe an unveil("/var/run/samba", "r") if
it is really neccesary.

Could you provide more information of your config?  Maybe a ktrace or specific
added Samba modules? I need more information and details.

Thank you,

On Mon, Nov 09, 2026 at 05:47:57PM +0100, Benjamin Stürz wrote:
> Hi,
> 
> thanks for the port, but the unveil() rules are too strict.
> It needs at least /var/run/samba to work correctly.
> 
> After writing an LD_PRELOAD shim that bypasses the unveil() calls,
> mounting works. Otherwise susmb fails on OpenBSD 8.0 with:
> 
> directory_create_or_exist: mkdir failed on directory /var/run/samba: No such
> file or directory
> directory_create_or_exist: mkdir failed on directory /var/run/samba: No such
> file or directory
> Connection failed: Invalid argument
> 
> 
> Kind Regards,
> Benjamin Stürz
> 
> On 2/21/26 5:28 PM, Pascal Stumpf wrote:
> > susmb lets you mount SMB/CIFS shares via FUSE, in the vein of the
> > Map Network Drive functionality in Windows.
> > 
> > 
> > This is a fork of usmb, most notably adding privdrop and unveil(2), and
> > getting rid of the XML config file.  Patches from sysutils/usmb have
> > also been incorporated.
> 

-- 
Kind regards,
Hiltjo

Reply via email to