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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 291 - (show annotations) (download)
Tue Jan 31 20:13:37 2006 UTC (12 years, 9 months ago) by dsd
File size: 720 byte(s)
2.6.15-5 release
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