From patchwork Tue Mar 19 06:45:13 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fernando Luis Vazquez Cao X-Patchwork-Id: 228919 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 1A78B2C00AD for ; Tue, 19 Mar 2013 17:46:52 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933971Ab3CSGqt (ORCPT ); Tue, 19 Mar 2013 02:46:49 -0400 Received: from tama500.ecl.ntt.co.jp ([129.60.39.148]:50914 "EHLO tama500.ecl.ntt.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933945Ab3CSGqt (ORCPT ); Tue, 19 Mar 2013 02:46:49 -0400 Received: from mfs6.rdh.ecl.ntt.co.jp (mfs6.rdh.ecl.ntt.co.jp [129.60.39.149]) by tama500.ecl.ntt.co.jp (8.13.8/8.13.8) with ESMTP id r2J6jS8l002638; Tue, 19 Mar 2013 15:45:28 +0900 Received: from mfs6.rdh.ecl.ntt.co.jp (localhost.localdomain [127.0.0.1]) by mfs6.rdh.ecl.ntt.co.jp (Postfix) with ESMTP id CD276E0185; Tue, 19 Mar 2013 15:45:28 +0900 (JST) Received: from imail1.m.ecl.ntt.co.jp (imail1.m.ecl.ntt.co.jp [129.60.5.246]) by mfs6.rdh.ecl.ntt.co.jp (Postfix) with ESMTP id B7979E0183; Tue, 19 Mar 2013 15:45:28 +0900 (JST) Received: from [129.60.240.190] (nexus.sic.ecl.ntt.co.jp [129.60.240.190]) by imail1.m.ecl.ntt.co.jp (8.13.8/8.13.8) with ESMTP id r2J6jD4u010018; Tue, 19 Mar 2013 15:45:13 +0900 Message-ID: <1363675513.4767.6.camel@nexus> Subject: [PATCH 1/2] man/send(2): add EPERM to the list of possible errors From: Fernando Luis =?ISO-8859-1?Q?V=E1zquez?= Cao To: Michael Kerrisk Cc: linux-man@vger.kernel.org, netdev@vger.kernel.org, netfilter-devel@vger.kernel.org, Pablo Neira Ayuso , Patrick McHardy , Hirotaka Sasaki Date: Tue, 19 Mar 2013 15:45:13 +0900 Organization: NTT Open Source Software Center X-Mailer: Evolution 3.4.4-2 Mime-Version: 1.0 Sender: netfilter-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netfilter-devel@vger.kernel.org Subject: [PATCH 1/2] man/send(2): add EPERM to the list of possible errors System policy (for example netfilter rule) can cause a send* operation to fail with EPERM. Reported-by: Hirotaka Sasaki Signed-off-by: Fernando Luis Vazquez Cao Acked-by: Pablo Neira Ayuso --- -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff -urNp man-pages-3.50-orig/man2/send.2 man-pages-3.50/man2/send.2 --- man-pages-3.50-orig/man2/send.2 2013-03-15 16:17:32.000000000 +0900 +++ man-pages-3.50/man2/send.2 2013-03-19 15:17:03.616008275 +0900 @@ -357,6 +357,10 @@ Some bit in the .I flags argument is inappropriate for the socket type. .TP +.B EPERM +System policy (for example a netfilter rule) does not permit the requested +operation. +.TP .B EPIPE The local end has been shut down on a connection oriented socket. In this case the process