ChangeSet 1.2181.4.93, 2005/03/29 21:42:28-08:00, [EMAIL PROTECTED]

        [PATCH] ftdi_sio: fix sysfs attribute permissions
        
        This patch changes the permissions of the 'event_char' and
        'latency_timer' sysfs attributes for devices supported by the ftdi_sio
        driver.  They should only be set by root.
        
        Signed-off-by: Ian Abbott <[EMAIL PROTECTED]>
        Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]>



 ftdi_sio.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


diff -Nru a/drivers/usb/serial/ftdi_sio.c b/drivers/usb/serial/ftdi_sio.c
--- a/drivers/usb/serial/ftdi_sio.c     2005-03-30 15:24:05 -08:00
+++ b/drivers/usb/serial/ftdi_sio.c     2005-03-30 15:24:05 -08:00
@@ -1274,8 +1274,8 @@
        return count;
 }
 
-static DEVICE_ATTR(latency_timer, S_IWUGO | S_IRUGO, show_latency_timer, 
store_latency_timer);
-static DEVICE_ATTR(event_char, S_IWUGO, NULL, store_event_char);
+static DEVICE_ATTR(latency_timer, S_IWUSR | S_IRUGO, show_latency_timer, 
store_latency_timer);
+static DEVICE_ATTR(event_char, S_IWUSR, NULL, store_event_char);
 
 static void create_sysfs_attrs(struct usb_serial *serial)
 {      
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to