Thread (5 messages) 5 messages, 2 authors, 2020-11-18
STALE2050d
Revisions (2)
  1. v2 [diff vs current]
  2. v4 current

[PATCH v4 2/2] docs: add fail_lsm_hooks info to fault-injection.rst

From: Aleksandr Nogikh <hidden>
Date: 2020-11-11 10:45:22
Also in: lkml
Subsystem: documentation, fault injection support, the rest · Maintainers: Jonathan Corbet, Akinobu Mita, Linus Torvalds

From: Aleksandr Nogikh <redacted>

Describe fail_lsm_hooks fault injection capability.

Signed-off-by: Aleksandr Nogikh <redacted>
--
v2:
- Added this commit.
---
 Documentation/fault-injection/fault-injection.rst | 6 ++++++
 1 file changed, 6 insertions(+)
diff --git a/Documentation/fault-injection/fault-injection.rst b/Documentation/fault-injection/fault-injection.rst
index 31ecfe44e5b4..48705adfbc18 100644
--- a/Documentation/fault-injection/fault-injection.rst
+++ b/Documentation/fault-injection/fault-injection.rst
@@ -48,6 +48,12 @@ Available fault injection capabilities
   status code is NVME_SC_INVALID_OPCODE with no retry. The status code and
   retry flag can be set via the debugfs.
 
+- fail_lsm_hooks
+
+  injects failures into LSM hooks. When a fault is injected, actual hooks
+  are not executed and a code from /sys/kernel/debug/fail_lsm_hooks/retval
+  is returned (the default value is -EACCES).
+
 
 Configure fault-injection capabilities behavior
 -----------------------------------------------
-- 
2.29.2.222.g5d2a92d10f8-goog
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help