Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove enumerations from MacOS SystemProfiler data_type element in object, state, and item #19

Closed
zport opened this issue Jan 14, 2019 · 1 comment
Labels
MacOS Issue related to the Mac schema.

Comments

@zport
Copy link
Contributor

zport commented Jan 14, 2019

@julmerII commented on Tue Aug 07 2018

The MacOS SystemProfiler object, state, and item data_type elements, we're running into a tangle. OVAL specifies a valid values list (enumeration) for each (EntityObjectDataTypeType, EntityStateDataTypeType, and EntityItemDataTypeType). This list is incomplete when compared to the data_types available on the OS. As has already happened, we should probably expect Apple to add more data_types to the SystemProfiler, over time. For content authors who wish to use data_types not supported by OVAL, this causes constant XML validation error noise.

'Seems there are two options. Continually update the valid values lists for the data_type elements as Apple changes them. --OR-- Change those three elements to simple strings.

I don't see any real benefit in controlling these values. The SCAP processor can retrieve the list of valid data_types from the system being scanned and control the querying of info from the system according to those system-supplied data_type values.

I suggest we change the data_type entities to be oval-def:EntityObjectStringType and oval-sc:EntityItemStringType.

Also, per Mr. Solin's suggestion we would need to modify the documentation to direct SCAP processors to use only those data_types actually found on the machine (via system_profiler --listDataTypes).

@zport zport added the MacOS Issue related to the Mac schema. label Jan 15, 2019
solind pushed a commit to solind/OVAL that referenced this issue Jun 18, 2020
solind pushed a commit that referenced this issue Sep 3, 2020
Pull request for MacOS Issues: #19, #52, #84, #95, #99, #100, #101, #102, #103, #104, #105 and #106.
@solind
Copy link

solind commented Sep 3, 2020

a5ae8d7

@solind solind closed this as completed Sep 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
MacOS Issue related to the Mac schema.
Projects
None yet
Development

No branches or pull requests

2 participants