Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1161657AbWAMDTj (ORCPT ); Thu, 12 Jan 2006 22:19:39 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1161651AbWAMDTW (ORCPT ); Thu, 12 Jan 2006 22:19:22 -0500 Received: from 216-99-217-87.dsl.aracnet.com ([216.99.217.87]:43139 "EHLO sorel.sous-sol.org") by vger.kernel.org with ESMTP id S1161650AbWAMDTU (ORCPT ); Thu, 12 Jan 2006 22:19:20 -0500 Message-Id: <20060113032248.205414000@sorel.sous-sol.org> References: <20060113032102.154909000@sorel.sous-sol.org> Date: Thu, 12 Jan 2006 18:37:53 -0800 From: Chris Wright To: linux-kernel@vger.kernel.org, stable@kernel.org Cc: Justin Forbes , Zwane Mwaikambo , "Theodore Ts'o" , Randy Dunlap , Dave Jones , Chuck Wolber , torvalds@osdl.org, akpm@osdl.org, alan@lxorguk.ukuu.org.uk, Alan Cox Subject: [PATCH 15/17] [PATCH] moxa serial: add proper capability check Content-Disposition: inline; filename=moxa-serial-add-proper-capability-check.patch Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 867 Lines: 29 -stable review patch. If anyone has any objections, please let us know. ------------------ This requires the proper capabilities for the moxa bios update ioctl's. Signed-off-by: Linus Torvalds Signed-off-by: Chris Wright --- drivers/char/moxa.c | 2 ++ 1 file changed, 2 insertions(+) --- linux-2.6.15.y.orig/drivers/char/moxa.c +++ linux-2.6.15.y/drivers/char/moxa.c @@ -1661,6 +1661,8 @@ int MoxaDriverIoctl(unsigned int cmd, un case MOXA_FIND_BOARD: case MOXA_LOAD_C320B: case MOXA_LOAD_CODE: + if (!capable(CAP_SYS_RAWIO)) + return -EPERM; break; } -- - 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/