* [patch] RTC_ALM_SET ioctl secured
@ 2006-02-14 1:37 Lukasz Stelmach
0 siblings, 0 replies; only message in thread
From: Lukasz Stelmach @ 2006-02-14 1:37 UTC (permalink / raw)
To: linux-kernel
[-- Attachment #1.1: Type: text/plain, Size: 476 bytes --]
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
[-- Attachment #1.2: rtc.diff --]
[-- Type: text/x-patch, Size: 342 bytes --]
--- 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;
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 256 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-02-14 1:37 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-14 1:37 [patch] RTC_ALM_SET ioctl secured Lukasz Stelmach
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome