From: Lukasz Stelmach <stlman@poczta.fm>
To: linux-kernel@vger.kernel.org
Subject: [patch] RTC_ALM_SET ioctl secured
Date: Tue, 14 Feb 2006 02:37:30 +0100 [thread overview]
Message-ID: <43F1345A.1090907@poczta.fm> (raw)
[-- 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 --]
reply other threads:[~2006-02-14 1:37 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=43F1345A.1090907@poczta.fm \
--to=stlman@poczta.fm \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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