Esempio n. 1
0
    def PolicyData(self, value: Structure):
        """Set the security policy data.

        :param value: a structure defined by the PolicyData class
        """
        self.implementation.policy_data = PolicyData.from_structure(value)
Esempio n. 2
0
 def _load_policy_data(self):
     self._policy_data.update_from(PolicyData.from_structure(
         self._oscap_module.PolicyData
     ))
     self._policy_enabled = self._oscap_module.PolicyEnabled