Skip to content
Commit f05e53a7 authored by Eric W. Biederman's avatar Eric W. Biederman
Browse files

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: default avatarEric W. Biederman <ebiederm@xmission.com>
parent bd295b56
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment