Changeset 7260 for TI12-security/trunk


Ignore:
Timestamp:
02/08/10 13:28:59 (9 years ago)
Author:
pjkersha
Message:

Incomplete - task 2: XACML-Security Integration

  • Fix to Target.match - no need to interact over request elements this is done by the elements' classes
File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI12-security/trunk/ndg_xacml/ndg/xacml/core/target.py

    r7108 r7260  
    150150            # or resource in the list of resources and so on 
    151151            for targetSubElem in targetElem: 
    152                  
    153                 # For the given subject/resource/action/environment check for a 
    154                 # match with the equivalent in the request 
    155                 requestElem = getattr(request, attrName)  
    156                 for requestSubElem in requestElem: 
    157                     if self._matchChild(targetSubElem, request): 
    158                         # Within the list of e.g. subjects if one subject  
    159                         # matches then this counts as a subject match overall  
    160                         # for this target 
    161                         statusValues[i] = True 
     152                if self._matchChild(targetSubElem, request): 
     153                    # Within the list of e.g. subjects if one subject  
     154                    # matches then this counts as a subject match overall  
     155                    # for this target 
     156                    statusValues[i] = True 
    162157  
    163158        # Target matches if all the children (i.e. subjects, resources, actions 
Note: See TracChangeset for help on using the changeset viewer.