Skip to content

Commit 61ebe62

Browse files
committed
openscap: Add openembedded
Signed-off-by: Armin Kuster <[email protected]>
1 parent b7f6aa3 commit 61ebe62

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/OVAL/probes/unix/runlevel_probe.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,11 @@ static int is_wrlinux(void)
403403
return parse_os_release("cpe:/o:windriver:wrlinux");
404404
}
405405

406+
static int is_openembedded(void)
407+
{
408+
return parse_os_release("cpe:/o:openembedded:nodistro");
409+
}
410+
406411
static int is_common (void)
407412
{
408413
return (1);
@@ -424,7 +429,8 @@ const distro_tbl_t distro_tbl[] = {
424429
{ &is_suse, &get_runlevel_suse },
425430
{ &is_solaris, &get_runlevel_redhat },
426431
{ &is_wrlinux, &get_runlevel_wrlinux },
427-
{ &is_common, &get_runlevel_common }
432+
{ &is_common, &get_runlevel_common },
433+
{ &is_openembedded, &get_runlevel_common }
428434
};
429435

430436
#define DISTRO_TBL_SIZE ((sizeof distro_tbl)/sizeof (distro_tbl_t))

0 commit comments

Comments
 (0)