Thank you for the reply Daniel.
How do I verify if oscap was compiled with blkid support?

My installation seems to have support for partition test:
OpenSCAP will be compiled with the following settings:
=== probes ===
...
  partition:                   yes
...

Thanks,
_Dragos.


-----Original Message-----
From: Daniel Kopeček [mailto:[email protected]]
Sent: Tuesday, May 10, 2016 5:53 AM
To: Dragos Prisaca; Jan Cerny
Cc: [email protected]
Subject: Re: [Open-scap] openscap does not collect the uuid property

Hello,

On 05/10/2016 11:40 AM, Dragos Prisaca wrote:
> Hello Jan,
>
> I run oscap as root.
> Here are the steps to reproduce the issue:
> 1. Download the content from
> https://scap.nist.gov/validation/downloads/SCAP1.2ValidationTestConten
> t_1-2.1.0.0.zip 2. # unzip SCAP1.2ValidationTestContent_1-2.1.0.0.zip
> 3. # unzip validationTestSuites_1-2.1.0.0.zip
> 4. # cd linux_partition_test/configuration_scripts/
> 5. # dos2unix *.sh && chmod +x *.sh
> 6. # ./linux_partition_test_config1.sh 7. Run the
> linux_partition_test/linux_partition_test-datastream.xml with oscap 8.
> Open the scan results and look for a partition item with the following
> mount_point:
>
> <lin-sys:partition_item id="10352435" status="exists">
>      <lin-sys:mount_point>/mnt/my_loop_device</lin-sys:mount_point>
>      <lin-sys:device>/dev/loop3</lin-sys:device>
>      <lin-sys:uuid status="not collected"/>

The "not collected" status is set by the probe if the library/probes were
compiled without blkid support:

https://github.com/OpenSCAP/openscap/blob/maint-1.2/src/OVAL/probes/unix/linux/partition.c#L232


Regards,
--
Daniel Kopeček
Software Engineer, Special Projects
Red Hat, Inc.

_______________________________________________
Open-scap-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/open-scap-list

Reply via email to