]> git.baikalelectronics.ru Git - kernel.git/commit
sysctl: Create local copies of directory names used in paths
authorEric W. Biederman <ebiederm@xmission.com>
Sat, 21 Jan 2012 18:03:13 +0000 (10:03 -0800)
committerEric W. Biederman <ebiederm@xmission.com>
Wed, 25 Jan 2012 00:37:55 +0000 (16:37 -0800)
commitc14ac362369bdfac28d78794e19b128f9e4e7c31
treeaa8f66eb061b79be46619cfe7717bd64663cee1b
parent1aa7d9dfe2bf90e6380f7afb9d81485d90446715
sysctl: Create local copies of directory names used in paths

Creating local copies of directory names is a good idea for
two reasons.
- The dynamic names used by callers must be copied into new
  strings by the callers today to ensure the strings do not
  change between register and unregister of the sysctl table.

- Sysctl directories have a potentially different lifetime
  than the time between register and unregister of any
  particular sysctl table.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
fs/proc/proc_sysctl.c