Skip to content

Commit 7e4910b

Browse files
committed
Merge tag 'seccomp-v5.13-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux
Pull seccomp updates from Kees Cook: - Fix "cacheable" typo in comments (Cui GaoSheng) - Fix CONFIG for /proc/$pid/status Seccomp_filters (Kenta.Tada@sony.com) * tag 'seccomp-v5.13-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux: seccomp: Fix "cacheable" typo in comments seccomp: Fix CONFIG tests for Seccomp_filters
2 parents ea6b209 + a3fc712 commit 7e4910b

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

fs/proc/array.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,8 +342,10 @@ static inline void task_seccomp(struct seq_file *m, struct task_struct *p)
342342
seq_put_decimal_ull(m, "NoNewPrivs:\t", task_no_new_privs(p));
343343
#ifdef CONFIG_SECCOMP
344344
seq_put_decimal_ull(m, "\nSeccomp:\t", p->seccomp.mode);
345+
#ifdef CONFIG_SECCOMP_FILTER
345346
seq_put_decimal_ull(m, "\nSeccomp_filters:\t",
346347
atomic_read(&p->seccomp.filter_count));
348+
#endif
347349
#endif
348350
seq_puts(m, "\nSpeculation_Store_Bypass:\t");
349351
switch (arch_prctl_spec_ctrl_get(p, PR_SPEC_STORE_BYPASS)) {

init/init_task.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ struct task_struct init_task
210210
#ifdef CONFIG_SECURITY
211211
.security = NULL,
212212
#endif
213-
#ifdef CONFIG_SECCOMP
213+
#ifdef CONFIG_SECCOMP_FILTER
214214
.seccomp = { .filter_count = ATOMIC_INIT(0) },
215215
#endif
216216
};

kernel/seccomp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -817,7 +817,7 @@ static void seccomp_cache_prepare_bitmap(struct seccomp_filter *sfilter,
817817
}
818818

819819
/**
820-
* seccomp_cache_prepare - emulate the filter to find cachable syscalls
820+
* seccomp_cache_prepare - emulate the filter to find cacheable syscalls
821821
* @sfilter: The seccomp filter
822822
*
823823
* Returns 0 if successful or -errno if error occurred.

0 commit comments

Comments
 (0)