* Re: [Qemu-devel] Bug#728876: qemu: smbd forked by qemu uses global directory /var/run/samba/ncalrpc
[not found] <20131106130127.31489.30934.reportbug@localhost>
@ 2013-11-28 20:15 ` Michael Tokarev
2014-02-05 9:49 ` Michael Tokarev
0 siblings, 1 reply; 3+ messages in thread
From: Michael Tokarev @ 2013-11-28 20:15 UTC (permalink / raw)
To: Michael Büsch, 728876; +Cc: Jan Kiszka, Qemu Development List
[-- Attachment #1: Type: text/plain, Size: 965 bytes --]
Jan, there's one more samba-related fix for slirp, also from Michael Büsch.
Add my
Signed-off-By: Michael Tokarev <mjt@tls.msk.ru>
if needed.
Thanks,
/mjt
06.11.2013 17:01, Michael Büsch wrote:
> Package: qemu
> Version: 1.6.0+dfsg-2
> Severity: normal
> Tags: patch
>
> The smbd forked by qemu still uses the default ncalrpc directory
> in /var/run/samba. This may lead to problems, if the directory
> does not exist (for example if /var/run is a tmpfs and the host
> smbd was not started).
>
> This leads to the following error message from samba
> and an unworkable smbd:
> Failed to create pipe directory /var/run/samba/ncalrpc - No such file
> or directory
>
> The attached patch fixes this by pointing smbd to /tmp/qemu-smb.%d.%d/ncalrpc
> as ncalrpc directory.
> Smbd will create the actual ncalrpc subdirectory on its own.
>
> Using a private directory also avoids possible clashes with the system-smbd.
[-- Attachment #2: move-ncalrpc-dir-to-tmp.patch --]
[-- Type: text/x-patch, Size: 1391 bytes --]
From: Michael Buesch <m@bues.ch>
Subject: [PATCH] slirp/smb: Move ncalrpc directory to tmp
The smbd forked by qemu still uses the default ncalrpc directory
in /var/run/samba. This may lead to problems, if /var/run/samba
does not exist (for example if /var/run is a tmpfs and the host
smbd was not started).
This leads to the following error message from samba
and an unworkable smbd:
Failed to create pipe directory /var/run/samba/ncalrpc - No such file or directory
Fix this by pointing smbd to /tmp/qemu-smb.%d.%d/ncalrpc as ncalrpc directory.
Smbd will create the actual ncalrpc subdirectory on its own.
Signed-off-by: Michael Buesch <m@bues.ch>
---
Index: qemu-1.6.0+dfsg/net/slirp.c
===================================================================
--- qemu-1.6.0+dfsg.orig/net/slirp.c
+++ qemu-1.6.0+dfsg/net/slirp.c
@@ -527,6 +527,7 @@ static int slirp_smb(SlirpState* s, cons
"pid directory=%s\n"
"lock directory=%s\n"
"state directory=%s\n"
+ "ncalrpc dir=%s/ncalrpc\n"
"log file=%s/log.smbd\n"
"smb passwd file=%s/smbpasswd\n"
"security = user\n"
@@ -539,6 +540,7 @@ static int slirp_smb(SlirpState* s, cons
s->smb_dir,
s->smb_dir,
s->smb_dir,
+ s->smb_dir,
s->smb_dir,
s->smb_dir,
s->smb_dir,
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] Bug#728876: qemu: smbd forked by qemu uses global directory /var/run/samba/ncalrpc
2013-11-28 20:15 ` [Qemu-devel] Bug#728876: qemu: smbd forked by qemu uses global directory /var/run/samba/ncalrpc Michael Tokarev
@ 2014-02-05 9:49 ` Michael Tokarev
2014-04-07 10:05 ` Michael Tokarev
0 siblings, 1 reply; 3+ messages in thread
From: Michael Tokarev @ 2014-02-05 9:49 UTC (permalink / raw)
To: 728876; +Cc: Jan Kiszka, Qemu Development List
Ping? Again, more than 2 months passed since initial submission.
Thanks,
/mjt
29.11.2013 00:15, Michael Tokarev wrote:
> Jan, there's one more samba-related fix for slirp, also from Michael Büsch.
>
> Add my
>
> Signed-off-By: Michael Tokarev <mjt@tls.msk.ru>
>
> if needed.
>
> Thanks,
>
> /mjt
>
> 06.11.2013 17:01, Michael Büsch wrote:
>> Package: qemu
>> Version: 1.6.0+dfsg-2
>> Severity: normal
>> Tags: patch
>>
>> The smbd forked by qemu still uses the default ncalrpc directory
>> in /var/run/samba. This may lead to problems, if the directory
>> does not exist (for example if /var/run is a tmpfs and the host
>> smbd was not started).
>>
>> This leads to the following error message from samba
>> and an unworkable smbd:
>> Failed to create pipe directory /var/run/samba/ncalrpc - No such file
>> or directory
>>
>> The attached patch fixes this by pointing smbd to /tmp/qemu-smb.%d.%d/ncalrpc
>> as ncalrpc directory.
>> Smbd will create the actual ncalrpc subdirectory on its own.
>>
>> Using a private directory also avoids possible clashes with the system-smbd.
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] Bug#728876: qemu: smbd forked by qemu uses global directory /var/run/samba/ncalrpc
2014-02-05 9:49 ` Michael Tokarev
@ 2014-04-07 10:05 ` Michael Tokarev
0 siblings, 0 replies; 3+ messages in thread
From: Michael Tokarev @ 2014-04-07 10:05 UTC (permalink / raw)
To: 728876; +Cc: Jan Kiszka, Qemu Development List
05.02.2014 13:49, Michael Tokarev wrote:
> Ping? Again, more than 2 months passed since initial submission.
Ping#2 ?
Should it go to -trivial maybe?
Thanks,
/mjt
>
> 29.11.2013 00:15, Michael Tokarev wrote:
>> Jan, there's one more samba-related fix for slirp, also from Michael Büsch.
>>
>> Add my
>>
>> Signed-off-By: Michael Tokarev <mjt@tls.msk.ru>
>>
>> if needed.
>>
>> Thanks,
>>
>> /mjt
>>
>> 06.11.2013 17:01, Michael Büsch wrote:
>>> Package: qemu
>>> Version: 1.6.0+dfsg-2
>>> Severity: normal
>>> Tags: patch
>>>
>>> The smbd forked by qemu still uses the default ncalrpc directory
>>> in /var/run/samba. This may lead to problems, if the directory
>>> does not exist (for example if /var/run is a tmpfs and the host
>>> smbd was not started).
>>>
>>> This leads to the following error message from samba
>>> and an unworkable smbd:
>>> Failed to create pipe directory /var/run/samba/ncalrpc - No such file
>>> or directory
>>>
>>> The attached patch fixes this by pointing smbd to /tmp/qemu-smb.%d.%d/ncalrpc
>>> as ncalrpc directory.
>>> Smbd will create the actual ncalrpc subdirectory on its own.
>>>
>>> Using a private directory also avoids possible clashes with the system-smbd.
>>
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-04-07 10:06 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20131106130127.31489.30934.reportbug@localhost>
2013-11-28 20:15 ` [Qemu-devel] Bug#728876: qemu: smbd forked by qemu uses global directory /var/run/samba/ncalrpc Michael Tokarev
2014-02-05 9:49 ` Michael Tokarev
2014-04-07 10:05 ` Michael Tokarev
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.