lkml.org 
[lkml]   [2006]   [Feb]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[patch] RTC_ALM_SET ioctl secured
Greetings.

In 2.6.15 every Joe User can set up alarm on RTC chip with RTC_ALM_SET. IMHO
there should be a check agains CAP_SYS_TIME before it is done.

PS, please CC, I'm not a subscriber.
--
Było mi bardzo miło. Czwarta pospolita klęska, [...]
>Łukasz< Już nie katolicka lecz złodziejska. (c)PP



-------------------------------------------------------------------
Fotoerotica! >>> http://link.interia.pl/f1904
--- rtc.c~ 2006-02-14 02:31:51.000000000 +0100
+++ rtc.c 2006-02-14 02:32:48.000000000 +0100
@@ -478,6 +478,9 @@
unsigned char hrs, min, sec;
struct rtc_time alm_tm;

+ if (!capable(CAP_SYS_TIME))
+ return -EACCES;
+
if (copy_from_user(&alm_tm, (struct rtc_time __user *)arg,
sizeof(struct rtc_time)))
return -EFAULT;
--------------010106000008050707000800--[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2006-02-14 02:40    [W:0.023 / U:0.960 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site