lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20230518160705.3888592-1-j.granados@samsung.com>
Date:   Thu, 18 May 2023 18:07:03 +0200
From:   Joel Granados <j.granados@...sung.com>
To:     <mcgrof@...nel.org>
CC:     Alexander Viro <viro@...iv.linux.org.uk>,
        <linux-kernel@...r.kernel.org>, Iurii Zaikin <yzaikin@...gle.com>,
        Sudip Mukherjee <sudipm.mukherjee@...il.com>,
        Christian Brauner <brauner@...nel.org>,
        <linux-fsdevel@...r.kernel.org>, Kees Cook <keescook@...omium.org>,
        Joel Granados <j.granados@...sung.com>
Subject: [PATCH 0/2] sysctl: Remove register_sysctl_table from sources

This is part of the general push to deprecate register_sysctl_paths and
register_sysctl_table. This patchset completely removes register_sysctl_table
and replaces it with register_sysctl effectively transitioning 5 base paths
("kernel", "vm", "fs", "dev" and "debug") to the new call. Besides removing the
actuall function, I also removed it from the checks done in check-sysctl-docs.

Testing for this change was done in the same way as with previous sysctl
replacement patches: I made sure that the result of `find /proc/sys/ | sha1sum`
was the same before and after the patchset.

Have pushed this through 0-day. Waiting on results..

Feedback greatly appreciated.

Best
Joel

Joel Granados (2):
  sysctl: Refactor base paths registrations
  sysctl: Remove register_sysctl_table

 fs/proc/proc_sysctl.c     | 70 ---------------------------------------
 fs/sysctls.c              |  9 +++--
 include/linux/sysctl.h    | 23 -------------
 kernel/sysctl.c           | 13 +++-----
 scripts/check-sysctl-docs | 10 ------
 5 files changed, 10 insertions(+), 115 deletions(-)

-- 
2.30.2

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ