Commit 6aadf740 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab Committed by Jonathan Corbet

docs: bpf: bpf_lsm.rst: avoid using ReST :doc:`foo` markup

The :doc:`foo` tag is auto-generated via automarkup.py.
So, use the filename at the sources, instead of :doc:`foo`.
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Link: https://lore.kernel.org/r/fcee73b9bb55a8d0efd07cf04076c66278a42db4.1623824363.git.mchehab+huawei@kernel.orgSigned-off-by: default avatarJonathan Corbet <corbet@lwn.net>
parent 4cd4bdf8
...@@ -20,10 +20,10 @@ LSM hook: ...@@ -20,10 +20,10 @@ LSM hook:
Other LSM hooks which can be instrumented can be found in Other LSM hooks which can be instrumented can be found in
``include/linux/lsm_hooks.h``. ``include/linux/lsm_hooks.h``.
eBPF programs that use :doc:`/bpf/btf` do not need to include kernel headers eBPF programs that use Documentation/bpf/btf.rst do not need to include kernel
for accessing information from the attached eBPF program's context. They can headers for accessing information from the attached eBPF program's context.
simply declare the structures in the eBPF program and only specify the fields They can simply declare the structures in the eBPF program and only specify
that need to be accessed. the fields that need to be accessed.
.. code-block:: c .. code-block:: c
...@@ -88,8 +88,9 @@ example: ...@@ -88,8 +88,9 @@ example:
The ``__attribute__((preserve_access_index))`` is a clang feature that allows The ``__attribute__((preserve_access_index))`` is a clang feature that allows
the BPF verifier to update the offsets for the access at runtime using the the BPF verifier to update the offsets for the access at runtime using the
:doc:`/bpf/btf` information. Since the BPF verifier is aware of the types, it Documentation/bpf/btf.rst information. Since the BPF verifier is aware of the
also validates all the accesses made to the various types in the eBPF program. types, it also validates all the accesses made to the various types in the
eBPF program.
Loading Loading
------- -------
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment