Definition Type: Element
Name: sharedresource_state
Namespace: http://oval.mitre.org/XMLSchema/oval-definitions-5#windows
Type: oval-def:StateType
Containing Schema: windows-definitions-schema.xsd
Abstract
Documentation:
The sharedresource_state element defines the different metadata associate with a Windows shared resource. This includes the share type, permissions, and max uses. This state mirror the SHARE_INFO_2 structure. Please refer to the individual elements in the schema for more details about what each represents.
Collapse XSD Schema Diagram:
Drilldown into access_all_permission in schema windows-definitions-schema_xsd Drilldown into access_perm_permission in schema windows-definitions-schema_xsd Drilldown into access_atrib_permission in schema windows-definitions-schema_xsd Drilldown into access_delete_permission in schema windows-definitions-schema_xsd Drilldown into access_exec_permission in schema windows-definitions-schema_xsd Drilldown into access_create_permission in schema windows-definitions-schema_xsd Drilldown into access_write_permission in schema windows-definitions-schema_xsd Drilldown into access_read_permission in schema windows-definitions-schema_xsd Drilldown into local_path in schema windows-definitions-schema_xsd Drilldown into current_uses in schema windows-definitions-schema_xsd Drilldown into max_uses in schema windows-definitions-schema_xsd Drilldown into shared_type in schema windows-definitions-schema_xsd Drilldown into netname in schema windows-definitions-schema_xsd Drilldown into notes in schema oval-definitions-schema_xsd Drilldown into Signature in schema xmldsig-core-schema_xsd Drilldown into deprecated in schema oval-definitions-schema_xsd Drilldown into comment in schema oval-definitions-schema_xsd Drilldown into operator in schema oval-definitions-schema_xsd Drilldown into version in schema oval-definitions-schema_xsd Drilldown into id in schema oval-definitions-schema_xsd Drilldown into StateType in schema oval-definitions-schema_xsdXSD Diagram of sharedresource_state in schema windows-definitions-schema_xsd (Open Vulnerability and Assessment Language (OVAL®))
Collapse XSD Schema Code:
<xsd:element name="sharedresource_state" substitutionGroup="oval-def:state">
    <xsd:annotation>
        <xsd:documentation>The sharedresource_state element defines the different metadata associate with a Windows shared resource. This includes the share type, permissions, and max uses. This state mirror the SHARE_INFO_2 structure. Please refer to the individual elements in the schema for more details about what each represents.</xsd:documentation>
    </xsd:annotation>
    <xsd:complexType>
        <xsd:complexContent>
            <xsd:extension base="oval-def:StateType">
                <xsd:sequence>
                    <xsd:element name="netname" type="oval-def:EntityStateStringType" minOccurs="0">
                        <xsd:annotation>
                            <xsd:documentation>This element specifies the name associated with a particular shared resource.</xsd:documentation>
                            <xsd:appinfo>
                                <sch:pattern id="srstenetname" xmlns:sch="http://purl.oclc.org/dsdl/schematron">
                                    <sch:rule context="win-def:sharedresource_state/win-def:netname">
                                        <sch:assert test="not(@datatype) or @datatype='string'">
                                            <sch:value-of select="../@id" /> - datatype attribute for the netname entity of a sharedresource_state should be 'string'</sch:assert>
                                    </sch:rule>
                                </sch:pattern>
                            </xsd:appinfo>
                        </xsd:annotation>
                    </xsd:element>
                    <xsd:element name="shared_type" type="win-def:EntityStateSharedResourceTypeType" minOccurs="0">
                        <xsd:annotation>
                            <xsd:documentation>The type of the shared resource.</xsd:documentation>
                            <xsd:appinfo>
                                <sch:pattern id="srsteshared_type" xmlns:sch="http://purl.oclc.org/dsdl/schematron">
                                    <sch:rule context="win-def:sharedresource_state/win-def:shared_type">
                                        <sch:assert test="not(@datatype) or @datatype='string'">
                                            <sch:value-of select="../@id" /> - datatype attribute for the shared_type entity of a sharedresource_state should be 'string'</sch:assert>
                                    </sch:rule>
                                </sch:pattern>
                            </xsd:appinfo>
                        </xsd:annotation>
                    </xsd:element>
                    <xsd:element name="max_uses" type="oval-def:EntityStateIntType" minOccurs="0">
                        <xsd:annotation>
                            <xsd:documentation>The maximum number of concurrent connections that the shared resource can accommodate.</xsd:documentation>
                            <xsd:appinfo>
                                <sch:pattern id="srstemax_uses" xmlns:sch="http://purl.oclc.org/dsdl/schematron">
                                    <sch:rule context="win-def:sharedresource_state/win-def:max_uses">
                                        <sch:assert test="@datatype='int'">
                                            <sch:value-of select="../@id" /> - datatype attribute for the max_uses entity of a sharedresource_state should be 'int'</sch:assert>
                                    </sch:rule>
                                </sch:pattern>
                            </xsd:appinfo>
                        </xsd:annotation>
                    </xsd:element>
                    <xsd:element name="current_uses" type="oval-def:EntityStateIntType" minOccurs="0">
                        <xsd:annotation>
                            <xsd:documentation>The number of current connections to the resource.</xsd:documentation>
                            <xsd:appinfo>
                                <sch:pattern id="srstecurrent_uses" xmlns:sch="http://purl.oclc.org/dsdl/schematron">
                                    <sch:rule context="win-def:sharedresource_state/win-def:current_uses">
                                        <sch:assert test="@datatype='int'">
                                            <sch:value-of select="../@id" /> - datatype attribute for the current_uses entity of a sharedresource_state should be 'int'</sch:assert>
                                    </sch:rule>
                                </sch:pattern>
                            </xsd:appinfo>
                        </xsd:annotation>
                    </xsd:element>
                    <xsd:element name="local_path" type="oval-def:EntityStateStringType" minOccurs="0">
                        <xsd:annotation>
                            <xsd:documentation>The local path for the shared resource.</xsd:documentation>
                            <xsd:appinfo>
                                <sch:pattern id="srstelocal_path" xmlns:sch="http://purl.oclc.org/dsdl/schematron">
                                    <sch:rule context="win-def:sharedresource_state/win-def:local_path">
                                        <sch:assert test="not(@datatype) or @datatype='string'">
                                            <sch:value-of select="../@id" /> - datatype attribute for the local_path entity of a sharedresource_state should be 'string'</sch:assert>
                                    </sch:rule>
                                </sch:pattern>
                            </xsd:appinfo>
                        </xsd:annotation>
                    </xsd:element>
                    <xsd:element name="access_read_permission" type="oval-def:EntityStateBoolType" minOccurs="0">
                        <xsd:annotation>
                            <xsd:documentation>Permission to read data from a resource and, by default, to execute the resource.</xsd:documentation>
                            <xsd:appinfo>
                                <sch:pattern id="srsteaccess_read_permission" xmlns:sch="http://purl.oclc.org/dsdl/schematron">
                                    <sch:rule context="win-def:sharedresource_state/win-def:access_read_permission">
                                        <sch:assert test="not(@datatype) or @datatype='bool'">
                                            <sch:value-of select="../@id" /> - datatype attribute for the access_read_permission entity of a sharedresource_state should be 'bool'</sch:assert>
                                    </sch:rule>
                                </sch:pattern>
                            </xsd:appinfo>
                        </xsd:annotation>
                    </xsd:element>
                    <xsd:element name="access_write_permission" type="oval-def:EntityStateBoolType" minOccurs="0">
                        <xsd:annotation>
                            <xsd:documentation>Permission to write data to the resource.</xsd:documentation>
                            <xsd:appinfo>
                                <sch:pattern id="srsteaccess_write_permission" xmlns:sch="http://purl.oclc.org/dsdl/schematron">
                                    <sch:rule context="win-def:sharedresource_state/win-def:access_write_permission">
                                        <sch:assert test="not(@datatype) or @datatype='bool'">
                                            <sch:value-of select="../@id" /> - datatype attribute for the access_write_permission entity of a sharedresource_state should be 'bool'</sch:assert>
                                    </sch:rule>
                                </sch:pattern>
                            </xsd:appinfo>
                        </xsd:annotation>
                    </xsd:element>
                    <xsd:element name="access_create_permission" type="oval-def:EntityStateBoolType" minOccurs="0">
                        <xsd:annotation>
                            <xsd:documentation>Permission to create an instance of the resource (such as a file); data can be written to the resource as the resource is created.</xsd:documentation>
                            <xsd:appinfo>
                                <sch:pattern id="srsteaccess_create_permission" xmlns:sch="http://purl.oclc.org/dsdl/schematron">
                                    <sch:rule context="win-def:sharedresource_state/win-def:access_create_permission">
                                        <sch:assert test="not(@datatype) or @datatype='bool'">
                                            <sch:value-of select="../@id" /> - datatype attribute for the access_create_permission entity of a sharedresource_state should be 'bool'</sch:assert>
                                    </sch:rule>
                                </sch:pattern>
                            </xsd:appinfo>
                        </xsd:annotation>
                    </xsd:element>
                    <xsd:element name="access_exec_permission" type="oval-def:EntityStateBoolType" minOccurs="0">
                        <xsd:annotation>
                            <xsd:documentation>Permission to execute the resource.</xsd:documentation>
                            <xsd:appinfo>
                                <sch:pattern id="srsteaccess_exec_permission" xmlns:sch="http://purl.oclc.org/dsdl/schematron">
                                    <sch:rule context="win-def:sharedresource_state/win-def:access_exec_permission">
                                        <sch:assert test="not(@datatype) or @datatype='bool'">
                                            <sch:value-of select="../@id" /> - datatype attribute for the access_exec_permission entity of a sharedresource_state should be 'bool'</sch:assert>
                                    </sch:rule>
                                </sch:pattern>
                            </xsd:appinfo>
                        </xsd:annotation>
                    </xsd:element>
                    <xsd:element name="access_delete_permission" type="oval-def:EntityStateBoolType" minOccurs="0">
                        <xsd:annotation>
                            <xsd:documentation>Permission to delete the resource.</xsd:documentation>
                            <xsd:appinfo>
                                <sch:pattern id="srsteaccess_delete_permission" xmlns:sch="http://purl.oclc.org/dsdl/schematron">
                                    <sch:rule context="win-def:sharedresource_state/win-def:access_delete_permission">
                                        <sch:assert test="not(@datatype) or @datatype='bool'">
                                            <sch:value-of select="../@id" /> - datatype attribute for the access_delete_permission entity of a sharedresource_state should be 'bool'</sch:assert>
                                    </sch:rule>
                                </sch:pattern>
                            </xsd:appinfo>
                        </xsd:annotation>
                    </xsd:element>
                    <xsd:element name="access_atrib_permission" type="oval-def:EntityStateBoolType" minOccurs="0">
                        <xsd:annotation>
                            <xsd:documentation>Permission to modify the resource's attributes (such as the date and time when a file was last modified).</xsd:documentation>
                            <xsd:appinfo>
                                <sch:pattern id="srsteaccess_atrib_permission" xmlns:sch="http://purl.oclc.org/dsdl/schematron">
                                    <sch:rule context="win-def:sharedresource_state/win-def:access_atrib_permission">
                                        <sch:assert test="not(@datatype) or @datatype='bool'">
                                            <sch:value-of select="../@id" /> - datatype attribute for the access_atrib_permission entity of a sharedresource_state should be 'bool'</sch:assert>
                                    </sch:rule>
                                </sch:pattern>
                            </xsd:appinfo>
                        </xsd:annotation>
                    </xsd:element>
                    <xsd:element name="access_perm_permission" type="oval-def:EntityStateBoolType" minOccurs="0">
                        <xsd:annotation>
                            <xsd:documentation>Permission to modify the permissions (read, write, create, execute, and delete) assigned to a resource for a user or application.</xsd:documentation>
                            <xsd:appinfo>
                                <sch:pattern id="srsteaccess_perm_permission" xmlns:sch="http://purl.oclc.org/dsdl/schematron">
                                    <sch:rule context="win-def:sharedresource_state/win-def:access_perm_permission">
                                        <sch:assert test="not(@datatype) or @datatype='bool'">
                                            <sch:value-of select="../@id" /> - datatype attribute for the access_perm_permission entity of a sharedresource_state should be 'bool'</sch:assert>
                                    </sch:rule>
                                </sch:pattern>
                            </xsd:appinfo>
                        </xsd:annotation>
                    </xsd:element>
                    <xsd:element name="access_all_permission" type="oval-def:EntityStateBoolType" minOccurs="0">
                        <xsd:annotation>
                            <xsd:documentation>Permission to read, write, create, execute, and delete resources, and to modify their attributes and permissions.</xsd:documentation>
                            <xsd:appinfo>
                                <sch:pattern id="srsteaccess_all_permission" xmlns:sch="http://purl.oclc.org/dsdl/schematron">
                                    <sch:rule context="win-def:sharedresource_state/win-def:access_all_permission">
                                        <sch:assert test="not(@datatype) or @datatype='bool'">
                                            <sch:value-of select="../@id" /> - datatype attribute for the access_all_permission entity of a sharedresource_state should be 'bool'</sch:assert>
                                    </sch:rule>
                                </sch:pattern>
                            </xsd:appinfo>
                        </xsd:annotation>
                    </xsd:element>
                </xsd:sequence>
            </xsd:extension>
        </xsd:complexContent>
    </xsd:complexType>
</xsd:element>
Collapse Child Elements:
Name Type Min Occurs Max Occurs
Signature ds:Signature 0 1
notes oval-def:notes 0 1
netname win-def:netname 0 (1)
shared_type win-def:shared_type 0 (1)
max_uses win-def:max_uses 0 (1)
current_uses win-def:current_uses 0 (1)
local_path win-def:local_path 0 (1)
access_read_permission win-def:access_read_permission 0 (1)
access_write_permission win-def:access_write_permission 0 (1)
access_create_permission win-def:access_create_permission 0 (1)
access_exec_permission win-def:access_exec_permission 0 (1)
access_delete_permission win-def:access_delete_permission 0 (1)
access_atrib_permission win-def:access_atrib_permission 0 (1)
access_perm_permission win-def:access_perm_permission 0 (1)
access_all_permission win-def:access_all_permission 0 (1)
Collapse Child Attributes:
Name Type Default Value Use
id oval-def:id Required
version oval-def:version Required
operator oval-def:operator AND Optional
comment oval-def:comment Optional
deprecated oval-def:deprecated false Optional
Collapse Derivation Tree:
Collapse References:
oval-def:state