From: Michael Buesch Date: Fri, 1 Nov 2013 11:23:49 +0000 (+0100) Subject: qemu/slirp: Fix SMB security configuration on newer samba versions X-Git-Tag: TizenStudio_2.0_p2.3.2~208^2~996^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c2804ee6c0eba19c029bb2950fa2998c16f3ea11;p=sdk%2Femulator%2Fqemu.git qemu/slirp: Fix SMB security configuration on newer samba versions The smb.conf automatically generated by qemu's -smb option fails on current samba, because smbd rejects the security=share option with the following warning: > WARNING: Ignoring invalid value 'share' for parameter 'security' Which makes it fall back to security=user without guest login. This results in being unable to login to the samba server from the guest OS. This fixes it by selecting 'user' explicitly and mapping unknown users to guest logins. Signed-off-by: Michael Buesch Reviewed-by: Michael Tokarev Signed-off-by: Jan Kiszka --- diff --git a/net/slirp.c b/net/slirp.c index 124e953..ce27eed 100644 --- a/net/slirp.c +++ b/net/slirp.c @@ -529,7 +529,8 @@ static int slirp_smb(SlirpState* s, const char *exported_dir, "state directory=%s\n" "log file=%s/log.smbd\n" "smb passwd file=%s/smbpasswd\n" - "security = share\n" + "security = user\n" + "map to guest = Bad User\n" "[qemu]\n" "path=%s\n" "read only=no\n"