/[linux-patches]/genpatches-2.6/trunk/2.6.15/1006_1_moxa-capability-check.patch
Gentoo

Contents of /genpatches-2.6/trunk/2.6.15/1006_1_moxa-capability-check.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 262 - (show annotations) (download) (as text)
Sun Jan 15 14:23:15 2006 UTC (14 years, 10 months ago) by dsd
File MIME type: text/x-diff
File size: 720 byte(s)
Linux 2.6.15.1
1 From nobody Mon Sep 17 00:00:00 2001
2 Subject: [PATCH] moxa serial: add proper capability check
3 From: Alan Cox <alan@redhat.com>
4 Date: 1136817328 -0500
5
6 This requires the proper capabilities for the moxa bios update ioctl's.
7
8 Signed-off-by: Alan Cox <alan@redhat.com>
9 Signed-off-by: Linus Torvalds <torvalds@osdl.org>
10 Signed-off-by: Chris Wright <chrisw@sous-sol.org>
11 ---
12 drivers/char/moxa.c | 2 ++
13 1 file changed, 2 insertions(+)
14
15 --- linux-2.6.15.y.orig/drivers/char/moxa.c
16 +++ linux-2.6.15.y/drivers/char/moxa.c
17 @@ -1661,6 +1661,8 @@ int MoxaDriverIoctl(unsigned int cmd, un
18 case MOXA_FIND_BOARD:
19 case MOXA_LOAD_C320B:
20 case MOXA_LOAD_CODE:
21 + if (!capable(CAP_SYS_RAWIO))
22 + return -EPERM;
23 break;
24 }
25

  ViewVC Help
Powered by ViewVC 1.1.20