Skip to content

Commit 7774511

Browse files
committed
Do not skip 'fs.binfmt_misc.status' by sysctl probe
Directory /proc/sys/fs/binfmt_misc is a separate file system, mounted by systemd-automout and is represented by an autofs entry in /etc/mtab. /proc/sys/fs/binfmt_misc is mounted on demand when accessed. If accessed the first time, we don't have a way to determine the if the autofs is remote or local. See 309f823. However, we don't see a reason why not to traverse the whole /proc/sys regardless the type of file systems mounted there.
1 parent 4593a00 commit 7774511

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/OVAL/probes/unix/sysctl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ int probe_main(probe_ctx *ctx, void *probe_arg)
7676
*/
7777
ent_attrs = probe_attr_creat("max_depth", r0 = SEXP_string_newf("%d", PROC_SYS_MAXDEPTH),
7878
"recurse_direction", r1 = SEXP_string_new("down", 4),
79-
"recurse_file_system", r2 = SEXP_string_new("local", 7),
79+
"recurse_file_system", r2 = SEXP_string_new("all", 3),
8080
"recurse", r3 = SEXP_string_new("symlinks and directories", 24),
8181
NULL);
8282
bh_entity = probe_ent_creat1("behaviors", ent_attrs, NULL);

0 commit comments

Comments
 (0)