From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id GFCiNpoOqF83MAAA0tVLHw (envelope-from ) for ; Sun, 08 Nov 2020 15:28:26 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id MEVTMpoOqF8/TwAAB5/wlQ (envelope-from ) for ; Sun, 08 Nov 2020 15:28:26 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 386E79403E6 for ; Sun, 8 Nov 2020 15:28:26 +0000 (UTC) Received: from localhost ([::1]:56010 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kbmcC-00006p-7B for larch@yhetil.org; Sun, 08 Nov 2020 10:28:24 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:54372) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kbm3y-0000IX-CF for bug-guix@gnu.org; Sun, 08 Nov 2020 09:53:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:48452) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kbm3y-0005g3-1x for bug-guix@gnu.org; Sun, 08 Nov 2020 09:53:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kbm3x-0007HR-WB for bug-guix@gnu.org; Sun, 08 Nov 2020 09:53:01 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#44519: Qemu fails to start Samba server Resent-From: elaexuotee@wilsonb.com Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sun, 08 Nov 2020 14:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 44519 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 44519@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.160484713027917 (code B ref -1); Sun, 08 Nov 2020 14:53:01 +0000 Received: (at submit) by debbugs.gnu.org; 8 Nov 2020 14:52:10 +0000 Received: from localhost ([127.0.0.1]:59998 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kbm38-0007GC-0p for submit@debbugs.gnu.org; Sun, 08 Nov 2020 09:52:10 -0500 Received: from lists.gnu.org ([209.51.188.17]:59168) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kbm35-0007G3-O6 for submit@debbugs.gnu.org; Sun, 08 Nov 2020 09:52:08 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:54340) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kbm35-0000FB-Em for bug-guix@gnu.org; Sun, 08 Nov 2020 09:52:07 -0500 Received: from m42-5.mailgun.net ([69.72.42.5]:19741) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kbm33-0005Kx-83 for bug-guix@gnu.org; Sun, 08 Nov 2020 09:52:07 -0500 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.wilsonb.com; q=dns/txt; s=krs; t=1604847120; h=Content-Type: MIME-Version: Message-Id: Subject: From: To: Date: Sender; bh=4izNqg1pSGYpjSlncyAgKVsM997A47d2OW+XcSHeA5c=; b=Qdfj7WHVnTXnlF/ZrW3O8NquSu8AtdIIOLCfIMpG45Z3xCuWLseyPIj+6Rlnx1EBsQELjvp4 /fLgYH/cGhjl2UC0NM768/R/TeVe5Ce6dY7/ltcxv7TOG0DQvccrvQVf8CqHCUMu0LDcyL+a dYpi1YmQ58nzu/8HdlhKhJIZxyW+EWf3n5p3YQbUzDRnP7JXklAkxjRYQu4Px4ru6hKY7sDn SsHHVP6Zc7GpFYNWE42nUU1dNADOJmfdYmNGjJXIIXsBFPcLKjsr2lplZ4h8ZDsZf5QBVcSC 2L/R12VEaPAwUqnbEjNaqRmf+WzB60f8XnEndVCHoo4lEQJffpI+1g== X-Mailgun-Sending-Ip: 69.72.42.5 X-Mailgun-Sid: WyJkMDM0YyIsICJidWctZ3VpeEBnbnUub3JnIiwgIjA4NTQ3YSJd Received: from wilsonb.com (wilsonb.com [104.199.203.42]) by smtp-out-n04.prod.us-west-2.postgun.com with SMTP id 5fa8060f23a1a2b32d427441 (version=TLS1.3, cipher=TLS_AES_128_GCM_SHA256); Sun, 08 Nov 2020 14:51:59 GMT Received: from localhost (KD106154076247.au-net.ne.jp [106.154.76.247]) by wilsonb.com (Postfix) with ESMTPSA id 3CFD8A0933 for ; Sun, 8 Nov 2020 14:51:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wilsonb.com; s=201703; t=1604847117; bh=4izNqg1pSGYpjSlncyAgKVsM997A47d2OW+XcSHeA5c=; h=Date:To:From:Subject:From; b=Eh4oausbivFk9Yp6ZNhnK1O1B45JQJdO9ti/9SAeiIiFoidXM4bkySiP4vpgNVooL L5w2gMf0gdHCx8ssvFRj52mNHDlXTs11DfIPNxZuLj0KCFv1qgwTPJXll/vFd3C63M XG5HaGxPH708SzkUMG3F3pxujNRi9Z5U+QTKbh3QLOg1hOFg5ObNgLR8B3FKst3cob g7y3JLbUbi8eSCdtNW/yOkkkQnFIfFt9t4Coars0LxTvwmiXtx6zrjAEm9nPIOU+yw 5UZDzgNZMinsI5v63YjGHUX9MsItBQ/w9kK8S4upjPmuh5BXzNgvrPLJh5PRA1wQsw 2CRyFfYiMFXcdrbFNmtzWv1pjyzOlezHthAGK4WifdveHriaRBVXff6xG/i58wMilE u/cNLR0V2Nu0FdwzE1lGj/i9ROVKaD3eIogTMhxiCvG5LpJlDmY6+uzaBpyCOHV2pK UvHCRv04jnx/xTbuxQaf71yGexRjExcypOL97xVpriomucrPwcW34+IP1vfnbgDXdr IZZg5c7SW1jjFioOV6oyOWU/bvFR5JAsvmlIQAXjWOP6McbFgHyCKrJncpuhbg5xYd p1yFBKKtgWkxdHPLQXDL4tQ8Cm2pcOzO0YwYivIBEqayCJ+FKZSKUc2FIxnpN3iH7Z KhUJcT9xtR0IQenFdFYjknhA= Date: Sun, 08 Nov 2020 23:52:00 +0900 Message-Id: <2TW13SLBJ587U.3P9BRBVHZE7YV@wilsonb.com> User-Agent: mblaze/1.0 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----_=_00c475be5ddb0dc418c6d302_=_" Received-SPF: pass client-ip=69.72.42.5; envelope-from=bounce+7434c3.08547a-bug-guix=gnu.org@mg.wilsonb.com; helo=m42-5.mailgun.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/11/08 07:53:21 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -2.3 (--) X-Mailman-Approved-At: Sun, 08 Nov 2020 10:27:51 -0500 X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" Reply-to: elaexuotee@wilsonb.com From: elaexuotee--- via Bug reports for GNU Guix X-Scanner: ns3122888.ip-94-23-21.eu Authentication-Results: aspmx1.migadu.com; dkim=fail (headers rsa verify failed) header.d=mg.wilsonb.com header.s=krs header.b=Qdfj7WHV; dkim=fail (headers rsa verify failed) header.d=wilsonb.com header.s=201703 header.b=Eh4oausb; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Spam-Score: -0.51 X-TUID: 84X2nW41rDrZ This is a multipart message in MIME format. ------_=_00c475be5ddb0dc418c6d302_=_ Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hey Guix, Having trouble getting the Samba directory share in qemu to work as adverti= sed: $ qemu-system-x86_64 -netdev user,id=3Dnet0,smb=3D/share ... Running something like the above with samba installed should spin up `smbd`= ; however, this doesn't happen. I see no smbd processes started. Qemu does cr= eate /tmp/qemu-smb.XXXXXX/smb.conf, however. Am I just missing something obvious? Can your reproduce? Digging through the qemu repo[0], it looks like qemu calls out to a samba daemon with an invocation that resolves to this: $ smbd -l /tmp/qemu-smb.XXXXXX -s /tmp/qemu-smb.XXXXXXX/smb.conf Manually running the above results in silent failure, though. To be clear, running the above with --foreground makes no difference. For good measure, I am attaching the smb.conf that qemu generates, in case = you want to directly try the smbd command without spinning up qemu. Note, you m= ay need to edit the 'path=3D/shared' line to an existing directory on your mac= hine. Throwing strace at the above shows that the daemon is getting EPERM when tr= ying to bind() the priviledged ports 445 and 139. Indeed, running the daemon under sudo works as expected, and I am able to access the shared directory from the guest machine as intended. Given the permission issues, I did try adding /sbin/smbd to my setuid-programs= , but that seems to make no difference. Is this a PEBKAC issue or a legitimate bug? [0]:https://github.com/qemu/qemu/blob/7f368aed672117980f7f09933e1eb3e1139ca= ae6/net/slirp.c ------_=_00c475be5ddb0dc418c6d302_=_ Content-Disposition: attachment; filename=smb.conf Content-Type: text/plain Content-Transfer-Encoding: 7bit [global] private dir=/tmp/qemu-smb.2IQ1T0 interfaces=127.0.0.1 bind interfaces only=yes pid directory=/tmp/qemu-smb.2IQ1T0 lock directory=/tmp/qemu-smb.2IQ1T0 state directory=/tmp/qemu-smb.2IQ1T0 cache directory=/tmp/qemu-smb.2IQ1T0 ncalrpc dir=/tmp/qemu-smb.2IQ1T0/ncalrpc log file=/tmp/qemu-smb.2IQ1T0/log.smbd smb passwd file=/tmp/qemu-smb.2IQ1T0/smbpasswd security = user map to guest = Bad User load printers = no printing = bsd disable spoolss = yes usershare max shares = 0 [qemu] path=/share read only=no guest ok=yes force user=x ------_=_00c475be5ddb0dc418c6d302_=_--