[patch] inotify: ioctl makeover
From: Robert Love (rml_at_ximian.com)
Date: 09/30/04
- Previous message: Alan Cox: "Re: PATCH: (Test) it8212 driver for 2.6.9rc3"
- In reply to: John McCutchan: "[RFC][PATCH] inotify 0.11.0 [WITH PATCH!]"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: John McCutchan <ttb@tentacle.dhs.org> Date: Thu, 30 Sep 2004 17:36:53 -0400
Attached patch greatly cleans up inotify's ioctl method. Oh my.
Net loss of 36 lines.
Main thing is removing all of the access_ok() checks and _IOC macros.
We don't need them. We can just fall off the end of the switch and
return -EINVAL if the cmd does not match. Any other access control is
handled by the device node itself or the copy_from_user() calls.
Also, other misc. changes.
Patch is on top of 0.11.0.
Best,
Robert Love
-
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/
- text/x-patch attachment: inotify-0.11.0-rml-ioctl-cleanup-1.patch__charset_UTF-8
- Previous message: Alan Cox: "Re: PATCH: (Test) it8212 driver for 2.6.9rc3"
- In reply to: John McCutchan: "[RFC][PATCH] inotify 0.11.0 [WITH PATCH!]"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|