Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751613AbZLXBk7 (ORCPT ); Wed, 23 Dec 2009 20:40:59 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753122AbZLXBk5 (ORCPT ); Wed, 23 Dec 2009 20:40:57 -0500 Received: from lists.laptop.org ([18.85.2.145]:32877 "EHLO mail.laptop.org" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751574AbZLXBk4 (ORCPT ); Wed, 23 Dec 2009 20:40:56 -0500 Date: Wed, 23 Dec 2009 20:42:58 -0500 From: Michael Stone To: Alan Cox Cc: Michael Stone , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-security-module@vger.kernel.org, Andi Kleen , David Lang , Oliver Hartkopp , Alan Cox , Herbert Xu , Valdis Kletnieks , Bryan Donlan , Evgeniy Polyakov , "C. Scott Ananian" , James Morris , "Eric W. Biederman" , Bernie Innocenti , Mark Seaborn , Randy Dunlap , =?iso-8859-1?Q?Am=E9rico?= Wang Subject: [PATCH 0/3] Discarding networking privilege via LSM Message-ID: <20091224014258.GA24115@heat> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20091218163348.GA24269@heat> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1591 Lines: 38 Alan, As you requested, here's a (rough) draft of my patch series which uses the security_* hooks instead of direct modification of the networking functions. Have you further suggestions for improvement? Regards, Michael P.S. - The most notable behavioral difference between this patch and the previous one is that abstract unix sockets are exempted from control in this patch but are restricted by the previous one. We can revisit this detail in subsequent patches if this approach seems viable. Michael Stone (3): Security: Add prctl(PR_{GET,SET}_NETWORK) interface. (v3) Security: Implement prctl(PR_SET_NETWORK, PR_NETWORK_OFF) semantics. (v3) Security: Document prctl(PR_{GET,SET}_NETWORK). (v3) Documentation/prctl/network.txt | 74 ++++++++++++++++++++++++++ include/linux/prctl.h | 7 +++ include/linux/prctl_network.h | 7 +++ include/linux/sched.h | 2 + kernel/sys.c | 32 +++++++++++ security/Kconfig | 13 +++++ security/Makefile | 1 + security/prctl_network.c | 110 +++++++++++++++++++++++++++++++++++++++ 8 files changed, 246 insertions(+), 0 deletions(-) create mode 100644 Documentation/prctl/network.txt create mode 100644 include/linux/prctl_network.h create mode 100644 security/prctl_network.c -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/