Ignore:
Timestamp:
Dec 10, 2010 6:25:50 PM (13 years ago)
Author:
Ted Faber <faber@…>
Branches:
axis_example, compt_changes, info-ops, master
Children:
9973d57
Parents:
b16cfc0
Message:

Access controllers delete (some) unused ABAC attrs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fedd/federation/skeleton_access.py

    rb16cfc0 rc65b7e4  
    194194        self.state[aid]['user'] = found
    195195        self.state[aid]['owners'] = owners
     196        self.state[aid]['auth'] = set()
     197        # Authorize the creating fedid and the principal representing the
     198        # allocation to manipulate it.
     199        self.append_allocation_authorization(aid,
     200                ((fid, allocID), (allocID, allocID)))
    196201        self.write_state()
    197202        self.state_lock.release()
    198         # Authorize the creating fedid and the principal representing the
    199         # allocation to manipulate it.
    200         self.auth.set_attribute(fid, allocID)
    201         self.auth.set_attribute(allocID, allocID)
    202         self.auth.save()
    203203
    204204        # Create a directory to stash the certificate in, ans stash it.
     
    249249        if aid in self.state:
    250250            self.log.debug("[ReleaseAccess] Found allocation for %s" %aid)
     251            self.clear_allocation_authorization(aid)
    251252            del self.state[aid]
    252253            self.write_state()
Note: See TracChangeset for help on using the changeset viewer.