From owner-svn-src-head@freebsd.org Sun Aug 9 12:55:54 2015 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B5A8899876B; Sun, 9 Aug 2015 12:55:54 +0000 (UTC) (envelope-from kabaev@gmail.com) Received: from mail-qk0-x22b.google.com (mail-qk0-x22b.google.com [IPv6:2607:f8b0:400d:c09::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6D6937A1; Sun, 9 Aug 2015 12:55:54 +0000 (UTC) (envelope-from kabaev@gmail.com) Received: by qkbm65 with SMTP id m65so50754061qkb.2; Sun, 09 Aug 2015 05:55:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type; bh=5hO+83RulaN5GRSpQQViUY4Hcce+gO3sV9+gdAEUvDw=; b=AQRzPKVWfJYfesrl+hTyIIDowh3vtzOFUTkOUCpocrSplcmohkRIZUcgaX/St0b0WE wgkOfn43C1ta84vjXNJBxPi7f76LmtjT3CitjOhg4cUSGjDGUGyA9hGKhYQUE7OiGptn rxqUJyiQT9S9+byFaXo8mDlaAAlpZnaj0TkWYN5iFirNgFYUAuMluRVB2IKUrbVTbos3 XwmfAiZQwgw7vgeMjSQJKzC3geANIQFc7MHeIkw216bXPWC+eaaV5oLrEjUaD0CAWfLk n52n2rBU9I53PcFwdzyN5+KazODcVdrEzhZ4iE2fk1rqYHYvrs4OZUXoY4nB6FXBod+I BUVw== X-Received: by 10.55.41.16 with SMTP id p16mr28579929qkh.82.1439124953455; Sun, 09 Aug 2015 05:55:53 -0700 (PDT) Received: from kan ([2601:18f:0:1570:226:18ff:fe00:232e]) by smtp.gmail.com with ESMTPSA id x75sm8181310qkx.28.2015.08.09.05.55.52 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 09 Aug 2015 05:55:52 -0700 (PDT) Date: Sun, 9 Aug 2015 08:55:45 -0400 From: Alexander Kabaev To: Ed Schouten Cc: Ed Schouten , src-committers , svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r285910 - in head: lib/libc/sys sys/kern sys/sys Message-ID: <20150809085545.0beef79b@kan> In-Reply-To: References: <201507271317.t6RDHwpj067194@repo.freebsd.org> <20150808150539.0b43cfcd@kan> X-Mailer: Claws Mail 3.12.0 (GTK+ 2.24.28; amd64-portbld-freebsd11.0) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; boundary="Sig_/a7Ec4kwZJh29oIlDB9btwpN"; protocol="application/pgp-signature" X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Aug 2015 12:55:54 -0000 --Sig_/a7Ec4kwZJh29oIlDB9btwpN Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Sun, 9 Aug 2015 09:37:13 +0200 Ed Schouten wrote: > Hi Alexander, >=20 > 2015-08-08 21:05 GMT+02:00 Alexander Kabaev : > > this commit broke more than just syslogd. rtsol and rtsold both are > > victims of the change as they are trying to shutdown unconnected > > raw sockets to make then 'send-only' and fail. >=20 > Good catch! I think that in this case it is safe to omit the call to > shutdown(), or at least not let the application fail on startup > because of shutdown() being more strict. After all, this code would > fail on Linux, OS X, etc. already because of this. >=20 > Could you test the attached patch and let me know whether it makes > rtsol/rtsold work again? >=20 > Thanks, > --=20 > Ed Schouten > Nuxi, 's-Hertogenbosch, the Netherlands > KvK/VAT number: 62051717 It most definitely does work, this is what I have done to get my network scripts work again. I wonder if there are other means of restricting raw sockets that can be used to achieve the result authors of rtsold had hoped or? =20 --=20 Alexander Kabaev --Sig_/a7Ec4kwZJh29oIlDB9btwpN Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQJ8BAEBCgBmBQJVx03TXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRDNUY3RDk5NTk5QjY0MUUxM0M1MTU2OTEw NzEzMjI5OTkyNzkyRTdFAAoJEAcTIpmSeS5+vicP/jRqCzEY39Zjf9bmzYFCUdNZ rjcsXOyOClRt90hqbqGD93GTmtHvr1qylsFEKYLyym/LGUu1ffecZfBQXKT02cDy rLZlWcSVaIwkpVKG1VYaCE4Pa2YQ6hJgLrSTbOTdDxy2ur/dHUh384DoeLJLkZu+ qWHxTkq9aRUaNC6AhYggQY+M1hPyi15sCPRslMKF5xYQw/u41Fz3oti/pTXJxRVi tu+eZCWcouFdn1oS5ezJ/HjJSpDBnSxFYjAYP8mPcwwy/mQNrqzlR2iRRchbcxGK IXUJcWDbgeeAs1L3DEigxE0YT/FL4t1xyDI3lMKFE4+j9n1LAKxQkA/S9wkqmSNh P2NOs04Y6iaNXogxEuRyn3HqdorrQakiFsUMQLB0Un5UU1W5qxpuKR3FtgAt52LR 6L9ltmfUc6QUIpicva+jPqd5OV3QoOHg5c1Y5AgbBcsb2Y8Imjy44xWCd+H3DXHm hBTn91lw046Hbo7RjwlUKLGcAq34nNsUL5lsDljPonbRVwJL002dOwOc/USEoQZd BLH1xu4MR0mRL1Q7Vhk0ySB+5ZLRwRA5yHmtw8Pt3EL9ogxc4HM6zCNTQK4NOCDy GelCyKn0AdpPOs0LIcqh0r5arsznV3gct8qrC3zy1+1gA+Ns8sEnnYgZF9rwZYye N26hz97S8VMgaIC9zzjC =nZIq -----END PGP SIGNATURE----- --Sig_/a7Ec4kwZJh29oIlDB9btwpN--