login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
May
»
6
Re: [patch 06/15] sysfs: dont call notify_change
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From: Greg KH
Subject:
Re: [patch 06/15] sysfs: dont call notify_change
Date: Monday, May 5, 2008 - 11:48 pm
On Tue, May 06, 2008 at 08:28:39AM +0200, Miklos Szeredi wrote:
quoted text
> > > sysfs_chmod_file() calls notify_change() to change the permission bits > > > on a sysfs file. Replace with explicit call to sysfs_setattr() and > > > fsnotify_change(). > > > > > > This is equivalent, except that security_inode_setattr() is not > > > called. This function is called by drivers, so the security checks do > > > not make any sense. > > > > Are you sure? As a user, you can chmod the sysfs file and it will > > stick, > > Right, but that's not sysfs_chmod_file() but sys_chmod(), which calls > notify_change(), which calls security_inode_setattr(). > > sysfs_chmod_file() is just called by a couple of drivers to change the > file mode during operation, it's never called by user action directly.
Ah, sorry, you are correct, no objection from me for this patch: Acked-by: Greg Kroah-Hartman <gregkh@suse.de> thanks, greg k-h --
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:
[patch 06/15] sysfs: dont call notify_change
, Miklos Szeredi
, (Mon May 5, 2:54 am)
Re: [patch 06/15] sysfs: dont call notify_change
, Greg KH
, (Mon May 5, 9:15 pm)
Re: [patch 06/15] sysfs: dont call notify_change
, Miklos Szeredi
, (Mon May 5, 11:28 pm)
Re: [patch 06/15] sysfs: dont call notify_change
, Greg KH
, (Mon May 5, 11:48 pm)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg KH
Og dreams of kernels
Jens Axboe
[PATCH 31/33] Fusion: sg chaining support
Arnd Bergmann
Re: finding your own dead "CONFIG_" variables
Mark Brown
[PATCH 2/2] Subject: natsemi: Allow users to disable workaround for DspCfg reset
Tony Breeds
[LGUEST] Look in object dir for .config
git
:
Brian Downing
Re: Git in a Nutshell guide
John Benes
Re: master has some toys
Matthias Lederhofer
[PATCH 4/7] introduce GIT_WORK_TREE to specify the work tree
Alexander Sulfrian
[RFC/PATCH] RE: git calls SSH_ASKPASS even if DISPLAY is not set
Junio C Hamano
Re: Rss produced by git is not valid xml?
git-commits-head
:
Linux Kernel Mailing List
iSeries: fix section mismatch in iseries_veth
Linux Kernel Mailing List
ixbge: remove TX lock and redo TX accounting.
Linux Kernel Mailing List
ixgbe: fix several counter register errata
Linux Kernel Mailing List
b43: fix build with CONFIG_SSB_PCIHOST=n
Linux Kernel Mailing List
<