summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2007-06-07 00:34:23 +0200
committerTobias Klauser <tklauser@xenon.tklauser.home>2007-06-07 00:34:23 +0200
commitc4b8c79965ab21b86c6a3a157b7a7b8175cd8150 (patch)
tree7156dfaf612bff4fb74ccef0aa9cdae684c54408 /packages
parent1433cf53f1a3c75672bfeba7e81dadfb86a82d2c (diff)
cscope 15.6-315.6-3
* Do not install invasive Emacs startup file 50cscope.el (Closes: #427765)
Diffstat (limited to 'packages')
0 files changed, 0 insertions, 0 deletions
he superblock assuming that the tags, being pointers, won't have the same value across multiple types. This patch rips out kobj_ns_type handling from sysfs. sysfs now has an enable switch to turn on namespace under a node. If enabled, all children are required to have non-NULL namespace tags and filtered against the super_block's tag. kobject namespace determination is now performed in lib/kobject.c::create_dir() making sysfs_read_ns_type() unnecessary. The sanity checks are also moved. create_dir() is restructured to ease such addition. This removes most kobject namespace knowledge from sysfs proper which will enable proper separation and layering of sysfs. This is the second try. The first one was cb26a311578e ("sysfs: drop kobj_ns_type handling") which tried to automatically enable namespace if there are children with non-NULL namespace tags; however, it was broken for symlinks as they should inherit the target's tag iff namespace is enabled in the parent. This led to namespace filtering enabled incorrectly for wireless net class devices through phy80211 symlinks and thus network configuration failure. a1212d278c05 ("Revert "sysfs: drop kobj_ns_type handling"") reverted the commit. This shouldn't introduce any behavior changes, for real. v2: Dummy implementation of sysfs_enable_ns() for !CONFIG_SYSFS was missing and caused build failure. Reported by kbuild test robot. Signed-off-by: Tejun Heo <tj@kernel.org> Reported-by: Linus Torvalds <torvalds@linux-foundation.org> Cc: Eric W. Biederman <ebiederm@xmission.com> Cc: Kay Sievers <kay@vrfy.org> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: kbuild test robot <fengguang.wu@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/sysfs/symlink.c')