Received: from eggs.gnu.org ([2001:4830:134:3::10]:37959) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vm80A-0007fd-Py for Qemu-devel@nongnu.org; Thu, 28 Nov 2013 15:15:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vm806-0007uT-Cv for Qemu-devel@nongnu.org; Thu, 28 Nov 2013 15:15:54 -0500 Received: from isrv.corpit.ru ([86.62.121.231]:35257) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vm806-0007uA-4v for Qemu-devel@nongnu.org; Thu, 28 Nov 2013 15:15:50 -0500 Message-ID: <5297A472.6040002@msgid.tls.msk.ru> Date: Fri, 29 Nov 2013 00:15:46 +0400 From: Michael Tokarev MIME-Version: 1.0 References: <20131106130127.31489.30934.reportbug@localhost> In-Reply-To: <20131106130127.31489.30934.reportbug@localhost> Content-Type: multipart/mixed; boundary="------------020108060706070301060808" Subject: Re: [Qemu-devel] Bug#728876: qemu: smbd forked by qemu uses global directory /var/run/samba/ncalrpc List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?ISO-8859-1?Q?Michael_B=FCsch?= , 728876@bugs.debian.org Cc: Jan Kiszka , Qemu Development List This is a multi-part message in MIME format. --------------020108060706070301060808 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Jan, there's one more samba-related fix for slirp, also from Michael B=FC= sch. Add my Signed-off-By: Michael Tokarev if needed. Thanks, /mjt 06.11.2013 17:01, Michael B=FCsch wrote: > Package: qemu > Version: 1.6.0+dfsg-2 > Severity: normal > Tags: patch >=20 > 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). >=20 > This leads to the following error message from samba > and an unworkable smbd: > Failed to create pipe directory /var/run/samba/ncalrpc - No suc= h file > or directory >=20 > The attached patch fixes this by pointing smbd to /tmp/qemu-smb.%d.%d/n= calrpc > as ncalrpc directory. > Smbd will create the actual ncalrpc subdirectory on its own. >=20 > Using a private directory also avoids possible clashes with the system-= smbd. --------------020108060706070301060808 Content-Type: text/x-patch; name="move-ncalrpc-dir-to-tmp.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="move-ncalrpc-dir-to-tmp.patch" From: Michael Buesch 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 --- 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, --------------020108060706070301060808--