docs: sysctl: Add documentation for crypto and debug sysctls
PATCH v2 1/1 docs: sysctl: Add documentation for crypto and debug sysctls
The /proc/sys/crypto and /proc/sys/debug directories lacked documentation in the admin-guide. Add RST files covering fips_enabled, fips_name, fips_version, exception-trace, and kprobes-optimization sysctls.
--- Documentation/admin-guide/sysctl/crypto.rst | 49 +++++++++++++++++++ Documentation/admin-guide/sysctl/debug.rst | 53 +++++++++++++++++++++ Documentation/admin-guide/sysctl/index.rst | 6 ++- 3 files changed, 106 insertions(+), 2 deletions(-) create mode 100644 Documentation/admin-guide/sysctl/crypto.rst create mode 100644 Documentation/admin-guide/sysctl/debug.rst
Documentation/admin-guide/sysctl/crypto.rst new file +49 -0
@@ -0,0 +1,49 @@ +================= +/proc/sys/crypto/ +================= + +Currently, these files might (depending on your configuration) +show up in ``/proc/sys/crypto/``: + +.. contents:: :local: + +fips_enabled +============ + +This file contains a read-only flag that indicates whether FIPS mode is +enabled. + +- ``0``: FIPS mode is disabled (default). +- ``1``: FIPS mode is enabled. + +This value is set at boot time via the ``fips=1`` kernel command line +parameter. When enabled, the cryptographic API will restrict the use +of certain algorithms and perform self-tests to ensure compliance with +FIPS (Federal Information Processing Standards) requirements, such as +FIPS 140-2 and the newer FIPS 140-3, depending on the kernel +configuration and the module in use. + +fips_name +========= + +This read-only file contains the name of the FIPS module currently in use. +The value is typically configured via the ``CONFIG_CRYPTO_FIPS_NAME`` +kernel configuration option. + +fips_version +============ + +This read-only file contains the version string of the FIPS module. +If ``CONFIG_CRYPTO_FIPS_CUSTOM_VERSION`` is set, it uses the value from +``CONFIG_CRYPTO_FIPS_VERSION``. Otherwise, it defaults to the kernel +release version (``UTS_RELEASE``). + +Copyright (c) 2026, Shubham Chakraborty <[email protected]> + +For general info and legal blurb, please look in +Documentation/admin-guide/sysctl/index.rst. + +.. See scripts/check-sysctl-docs to keep this up to date: +.. scripts/check-sysctl-docs -vtable="crypto" \ +.. Documentation/admin-guide/sysctl/crypto.rst \ +.. $(git grep -l register_sysctl_)
Documentation/admin-guide/sysctl/debug.rst new file +53 -0
53 lines not on this page · raw message
Documentation/admin-guide/sysctl/index.rst +4 -2
@@ -67,8 +67,8 @@ This documentation is about: =============== =============================================================== abi/ execution domains & personalities <$ARCH> tuning controls for various CPU architecture (e.g. csky, s390) -crypto/ <undocumented> -debug/ <undocumented> +crypto/ cryptographic subsystem +debug/ debugging features dev/ device specific information (e.g. dev/cdrom/info) fs/ specific filesystems filehandle, inode, dentry and quota tuning
@@ -96,6 +96,8 @@ it :-) :maxdepth: 1 abi + crypto + debug fs kernel net
Signature · 1 line
2.53.0
Quoted 6 lines · Shubham Chakraborty
The
/proc/sys/cryptoand/proc/sys/debugdirectories lacked documentation in the admin-guide. Add RST files coveringfips_enabled,fips_name,fips_version, exception-trace, and kprobes-optimization sysctls.Signed-off-by Shubham Chakraborty <[email protected]>
I would change a couple of things below, but it's not worth doing another version just for this.
Quoted 14 lines
--- Documentation/admin-guide/sysctl/crypto.rst | 49 +++++++++++++++++++ Documentation/admin-guide/sysctl/debug.rst | 53 +++++++++++++++++++++ Documentation/admin-guide/sysctl/index.rst | 6 ++- 3 files changed, 106 insertions(+), 2 deletions(-) create mode 100644 Documentation/admin-guide/sysctl/crypto.rst create mode 100644 Documentation/admin-guide/sysctl/debug.rstDocumentation/admin-guide/sysctl/crypto.rst new file +0
-0
Documentation/admin-guide/sysctl/crypto.rst line 5
Quoted 5 lines
Documentation/admin-guide/sysctl/crypto.rst new file +5
-0@@ -0,0 +1,49 @@ +================= +/proc/sys/crypto/ +================= + +Currently, these files might (depending on your configuration)
Drop "Currently,". That's what we try to document (even though files get of out date easily and quickly).
Besides, having 3 (what are they? conditionals; caveats; exceptions?) qualifiers in one sentence could be too much. (I'm referring to: Currently, might, depending).
Quoted 14 lines
Documentation/admin-guide/sysctl/crypto.rst new file +6
-0+show up in ``/proc/sys/crypto/``: + +.. contents:: :local: + +fips_enabled +============Documentation/admin-guide/sysctl/debug.rst new file +0
-0
Documentation/admin-guide/sysctl/debug.rst line 6
Quoted 6 lines
Documentation/admin-guide/sysctl/debug.rst new file +6
-0@@ -0,0 +1,53 @@ +================ +/proc/sys/debug/ +================ + +Currently, these files might (depending on your configuration) +show up in ``/proc/sys/debug/``:
Same comment for "Currently," here.
Quoted 5 lines
Documentation/admin-guide/sysctl/debug.rst new file +5
-0+ +.. contents:: :local: + +exception-trace +===============
Signature · 1 line
~Randy