login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
April
»
27
Re: Driver core: warn when userspace writes to the uevent file in a non-supported way
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From:
Alan Cox <alan@...>
To: Linux Kernel Mailing List <linux-kernel@...>
Cc: <torvalds@...>
Subject:
Re: Driver core: warn when userspace writes to the uevent file in a non-supported way
Date: Friday, April 27, 2007 - 5:34 pm
> In the future we will allow the uevent type to be written to the uevent
quoted text
> file to trigger the different types of uevents. But for now, as we only > support the ADD event, warn if userspace tries to write anything else to > this file. > > Signed-off-by: Kay Sievers <kay.sievers@vrfy.org> > Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> > --- > drivers/base/core.c | 3 +++ > 1 files changed, 3 insertions(+), 0 deletions(-) > > diff --git a/drivers/base/core.c b/drivers/base/core.c > index 72c6ee5..f69305c 100644 > --- a/drivers/base/core.c > +++ b/drivers/base/core.c > @@ -296,6 +296,9 @@ out: > static ssize_t store_uevent(struct device *dev, struct device_attribute *attr, > const char *buf, size_t count) > { > + if (memcmp(buf, "add", 3) != 0) > + dev_err(dev, "uevent: unsupported action-string; this will " > + "be ignored in a future kernel version");
Warnings good, lack of rate limiting extremely bad indeed. -
unsubscribe notice
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/
Previous message: [thread] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
Messages in current thread:
Re: Driver core: warn when userspace writes to the uevent fi...
, Alan Cox
, (Fri Apr 27, 5:34 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Pavel Emelianov
[RFC][PATCH 4/7] RSS accounting hooks over the code
Rafael J. Wysocki
2.6.26-rc6-git2: Reported regressions from 2.6.25
Adrian Bunk
[2/2] 2.6.21-rc7: known regressions
Greg KH
Re: [malware-list] [RFC 0/5] [TALPA] Intro to a linux interface for on access scan...
linux-netdev
:
Jan Engelhardt
Re: iptables very slow after commit 784544739a25c30637397ace5489eeb6e15d7d49
David Miller
[GIT]: Networking
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
Jarek Poplawski
[PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
openbsd-misc
:
git
:
Colocation donated by:
Who's online
There are currently
4 users
and
958 guests
online.
Online users
avantiwineref
Emily5551
Jeremy
rejupal
Syndicate