OVALProject / Sandbox

The OVAL Language Sandbox
http://oval.mitre.org/language/sandbox.html
44 stars 36 forks source link

add a new Apache config file test #102

Open djhaynes opened 11 years ago

djhaynes commented 11 years ago

Love the idea of an apache config file test for the apache schema! We will have to work on this for version 5.5 though. My guess is this shouldn't be a problem as we might have some thinking to do on this test.

Regarding the proposed object, please note that entities in an object can not be optional. The idea of the object is that these are the things that are needed to uniquely identify an object. So optional items don't really fit this bill. We are thinking about a choice structure though for Version 6 for those objects that might be 2 different ways of uniquely identifying themselves. For example, users can be id'd by name or SID.

Is there a known way to represent the path to a certain block in the file? For example using slashes:
virtualserver/directory/directive. If not, maybe we can specify one for our object. How about the following for an object:

filepath filename block (represented via above) directive (this would be nilable)

This would work - it would need several capabilities:

In addition, I would suggest that a wildcard operator be valid in the path (so you could write checks like "all virtual servers must enable X").

I don't think any of these represents a technical challenge so, in general, I think this should work just fine. I don't know that this path structure is a common way to refer to the hierarchical structure of an Apache file, but it seems pretty simple and I don't think anyone would be confused by it and an interpreter shouldn't have much trouble following it.

Please let me know if you have any questions.

Charles

djhaynes commented 11 years ago

This item has been deferred from version 5.10. There is no current community demand for this capability

djhaynes commented 11 years ago

This item has been deferred from version 5.10. There is no current community demand for this capability.

djhaynes commented 11 years ago

This also aligns with https://github.com/OVALProject/Sandbox/issues/19.

blakefrantz commented 11 years ago

+1 for Apache HTTP Server and Apache Tomcat support in OVAL.