Skip to contentSkip to conversation

docs: add system-state document to admin-guide

PATCH Superseded Shuah Khan 2 participants 3 messages Mar 21, 2023 – Mar 22, 2023 Documentation

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Shuah Khan

author reviewer
#0 lore raw

PATCH 1/1 docs: add system-state document to admin-guide

Add a new system state document to the admin-guide. This document is intended to be used as a guide on how to gather higher level information about a system and its run-time activity.

---
 Documentation/admin-guide/index.rst        |   1 +
 Documentation/admin-guide/system-state.rst | 348 +++++++++++++++++++++
 2 files changed, 349 insertions(+)
 create mode 100644 Documentation/admin-guide/system-state.rst
Documentation/admin-guide/index.rst +1 -0
index f475554382e2..541372672c55 100644
@@ -66,6 +66,7 @@ subsystems expectations will be found here.
    :maxdepth: 1
 
    workload-tracing
+   system-state
 
 The rest of this manual consists of various unordered guides on how to
 configure specific aspects of kernel behavior to your liking.
Documentation/admin-guide/system-state.rst new file +348 -0

348 lines not on this page · raw message

Signature · 1 line
2.34.1
#1 lore raw

Documentation/admin-guide/system-state.rst line 45

Quoted 2 lines · Shuah Khan
Documentation/admin-guide/system-state.rst new file +2 -0
+scripts/checksyscalls.sh can be used to check if current architecture is
+missing any function calls compared to i386.

i386 is the reference architecture for comparing syscalls, right?

Documentation/admin-guide/system-state.rst line 162

Quoted 3 lines
Documentation/admin-guide/system-state.rst new file +3 -0
+This scripts parses Documentation/features to find the support status
+information. It can be used to validate the contents of the files under
+Documentation/features or simply list.::

"... to validate contents of Documentation/features files or simply list them::"

Documentation/admin-guide/system-state.rst line 255

Quoted 7 lines
Documentation/admin-guide/system-state.rst new file +7 -0
+Let's do one last sanity check on the system to see if the following two
+command outputs match. If they don't examine your system closely. kernel
+rootkits install their own ps, find, etc. utilities to mask their activity.
+The outputs match on my system. Do they on yours?
+
+ps ax | wc -l
+ls -d /proc/* | grep [0-9]|wc -l

The shell snippet above should be in a code block for consistency with other snippets.

Documentation/admin-guide/system-state.rst line 262

Quoted 3 lines
Documentation/admin-guide/system-state.rst new file +3 -0
+Linux kernel supports several hardening options to make system secure.
+kconfig-hardened-check tool sanity checks kernel configuration for
+security. You can checkout the latest::

"... If you don't have the tool handy, you can clone the repository::"

Quoted 1 line

+ * https://docs.kernel.org/trace/index.html

Shouldn't the last ref be internal link (Documentation/trace/index.rst)?

Thanks.

Signature · 1 line
An old man doll... just what I always wanted! - Clara
author reviewer
#2 lore raw
Quoted 6 lines · Bagas Sanjaya

Documentation/admin-guide/system-state.rst line 45

Quoted 2 lines · Shuah Khan
Documentation/admin-guide/system-state.rst new file +2 -0
+scripts/checksyscalls.sh can be used to check if current architecture is
+missing any function calls compared to i386.

i386 is the reference architecture for comparing syscalls, right?

Correct. If you are askig about "function calls" wording, this is coming right from the checksyscalls.sh

Quoted 7 lines

Documentation/admin-guide/system-state.rst line 162

Quoted 3 lines
Documentation/admin-guide/system-state.rst new file +3 -0
+This scripts parses Documentation/features to find the support status
+information. It can be used to validate the contents of the files under
+Documentation/features or simply list.::

"... to validate contents of Documentation/features files or simply list them::"

Quoted 8 lines

Documentation/admin-guide/system-state.rst line 255

Quoted 7 lines
Documentation/admin-guide/system-state.rst new file +7 -0
+Let's do one last sanity check on the system to see if the following two
+command outputs match. If they don't examine your system closely. kernel
+rootkits install their own ps, find, etc. utilities to mask their activity.
+The outputs match on my system. Do they on yours?
+
+ps ax | wc -l
+ls -d /proc/* | grep [0-9]|wc -l

Thanks for catching this.

Quoted 8 lines

The shell snippet above should be in a code block for consistency with other snippets.

Documentation/admin-guide/system-state.rst line 262

Quoted 3 lines
Documentation/admin-guide/system-state.rst new file +3 -0
+Linux kernel supports several hardening options to make system secure.
+kconfig-hardened-check tool sanity checks kernel configuration for
+security. You can checkout the latest::

"... If you don't have the tool handy, you can clone the repository::"

I can fix it to say "clone the latest"

Quoted 5 lines
Quoted 2 lines

+ * https://docs.kernel.org/trace/index.html

Shouldn't the last ref be internal link (Documentation/trace/index.rst)?

This docs.kernel.org link intentional and it is better to this rendered version.

thanks,
-- Shuah