Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751643Ab1F3NIQ (ORCPT ); Thu, 30 Jun 2011 09:08:16 -0400 Received: from mail-bw0-f46.google.com ([209.85.214.46]:54093 "EHLO mail-bw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751115Ab1F3NII (ORCPT ); Thu, 30 Jun 2011 09:08:08 -0400 Date: Thu, 30 Jun 2011 17:08:02 +0400 From: Vasiliy Kulikov To: Andrew Morton Cc: kernel-hardening@lists.openwall.com, Randy Dunlap , "Eric W. Biederman" , "Serge E. Hallyn" , Daniel Lezcano , Oleg Nesterov , Tejun Heo , Ingo Molnar , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-security-module@vger.kernel.org Subject: Re: [RFC] ipc: introduce shm_rmid_forced sysctl Message-ID: <20110630130802.GA12620@albatros> References: <20110622152514.GA9521@albatros> <20110629151436.9be479fb.akpm@linux-foundation.org> <20110630092103.GA4252@albatros> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110630092103.GA4252@albatros> User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 651 Lines: 16 On Thu, Jun 30, 2011 at 13:21 +0400, Vasiliy Kulikov wrote: > > Perhaps shm_rmid_forced should have had bool type. > > OK. The sysctl handler should parse it OK if feed it with sizeof(bool). I was wrong, maxlen must not be less than sizeof(int), it makes sense for arrays only. So, it is kept being int. -- Vasiliy Kulikov http://www.openwall.com - bringing security into open computing environments -- 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/