[PATCH v1] seccomp: Fix the comment for seccomp_check_filter().

From: Hayato Kiwata
Date: Mon Dec 26 2022 - 07:56:36 EST


The comment of the seccomp_check_filter() contains a removed function,
seccomp_bpf_load(). This comment needs to be corrected as it may be
misleading to future readers.

seccomp_bpf_load() was removed in the commit bd4cf0ed331a ("net: filter:
rework/optimize internal BPF interpreter's instruction set"). Previously,
seccomp_bpf_load() was used to create an object of struct seccomp_data.
However, this is done inside populate_seccomp_data() now.

Signed-off-by: Hayato Kiwata <haytok@xxxxxxxxxxxx>
---
kernel/seccomp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/seccomp.c b/kernel/seccomp.c
index d653d8426de9..3a93595f4989 100644
--- a/kernel/seccomp.c
+++ b/kernel/seccomp.c
@@ -167,7 +167,7 @@ static void populate_seccomp_data(struct seccomp_data *sd)
*
* Takes a previously checked filter (by bpf_check_classic) and
* redirects all filter code that loads struct sk_buff data
- * and related data through seccomp_bpf_load. It also
+ * and related data through populate_seccomp_data(). It also
* enforces length and alignment checking of those loads.
*
* Returns 0 if the rule set is legal or -EINVAL if not.
--
2.35.1