[CRIU] [RFC 0/3] Tune up net sysctl code to be able to proceed on older kernels

Cyrill Gorcunov gorcunov at openvz.org
Wed Apr 29 12:51:10 PDT 2015


Some configuration entries in /proc/sys for net subsystem are varying from
kernel to kernel. Lets try to handle it and dump only present ones.

Note I've not yet tested it, gonna do that tomorrow but just to share
idea early if someone has some objecttion or better idea.

Cyrill Gorcunov (3):
  net: Use snprintf instead of sprintf
  sysctl: Pass number of requests in argument
  net: sysctl -- Make sure the sysctl entries exist before reading them

 include/sysctl.h |  2 +-
 ipc_ns.c         | 18 ++++++------------
 kerndat.c        |  6 ++----
 net.c            | 48 +++++++++++++++++++++++++++++++++++++++---------
 sysctl.c         |  4 ++--
 uts_ns.c         |  5 ++---
 6 files changed, 52 insertions(+), 31 deletions(-)

-- 
2.1.0



More information about the CRIU mailing list