Skip to content

Commit 35c32ef

Browse files
committed
inspector: Add <windows_group_policy/> is Windows GPOs detected in guest
Fixes: https://issues.redhat.com/browse/RHEL-125955
1 parent 64bdb8a commit 35c32ef

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

inspector/inspector.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -439,6 +439,9 @@ output_root (xmlTextWriterPtr xo, char *root)
439439
if (str)
440440
single_element ("windows_current_control_set", str);
441441
free (str);
442+
i = guestfs_inspect_get_windows_group_policy (g, root);
443+
if (i > 0)
444+
empty_element ("windows_group_policy");
442445
guestfs_pop_error_handler (g);
443446

444447
str = guestfs_inspect_get_hostname (g, root);

inspector/virt-inspector.rng

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
<element name="minor_version"><text/></element>
3636
<optional><element name="windows_systemroot"><text/></element></optional>
3737
<optional><element name="windows_current_control_set"><text/></element></optional>
38+
<optional><element name="windows_group_policy"><empty/></element></optional>
3839
<optional><ref name="ospackageformat"/></optional>
3940
<optional><ref name="ospackagemanagement"/></optional>
4041
<optional><element name="hostname"><text/></element></optional>

m4/guestfs-libraries.m4

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ dnl Of course we need libguestfs.
2121
dnl
2222
dnl We need libguestfs 1.57.1 for guestfs_setfiles.
2323
dnl We need libguestfs 1.57.6 for guestfs_inspect_get_applications2 app2_class.
24+
dnl We need libguestfs 1.57.6 for guestfs_inspect_get_windows_group_policy
2425
PKG_CHECK_MODULES([LIBGUESTFS], [libguestfs >= 1.57.6])
2526
printf "libguestfs version is "; $PKG_CONFIG --modversion libguestfs
2627

0 commit comments

Comments
 (0)