/[pdpsoft]/trunk/grid-mw-security/ees/src/eef/eef_run.c
ViewVC logotype

Diff of /trunk/grid-mw-security/ees/src/eef/eef_run.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1389 by aramv, Mon Jan 11 13:21:22 2010 UTC revision 1390 by aramv, Mon Jan 18 15:41:17 2010 UTC
# Line 1  Line 1 
1  #include "eef.h"  #include "eef.h"
2    #include "aos.h"
3  #include "plugin_manager.h"  #include "plugin_manager.h"
4    
5  EES_RC EEF_Run(){  EES_RC EEF_Run(){
6    aos_context_t* context;    aos_context_t *context;
7    aos_attribute_t* attribute;    aos_attribute_t *uid, *gid;
8    
9    /* fill aos */    /* fill aos */
10    context = createContext(OBLIGATION);    uid = createAttribute();
11    addContext(context);    gid = createAttribute();
12    /*attribute = createAttribute();*/  
13    /*setAttributeId(attribute, "my_pemstring");*/    setAttributeId(uid, "posix-uid");
14    /*setAttributeValue(attribute, "test", strlen("test"));*/    setAttributeValue(uid, 0, 0);
15    /*addAttribute(context, attribute);*/  
16      setAttributeId(gid, "posix-gid");
17      setAttributeValue(gid, 0, 0);
18    
19      if((context = getNextContext(OBLIGATION, NULL)) == NULL){
20        context = createContext(OBLIGATION);
21        setContextObligationId(context, "uidgid");
22        addContext(context);
23      }
24    
25      addAttribute(context, uid);
26      addAttribute(context, gid);
27    
28    /* run plugins */    /* run plugins */
29    run_plugins(get_policies());    run_plugins(get_policies());
30    
   AOS_Clean();  
31    return EES_SUCCESS;    return EES_SUCCESS;
32  }  }
33    

Legend:
Removed from v.1389  
changed lines
  Added in v.1390

grid.support@nikhef.nl
ViewVC Help
Powered by ViewVC 1.1.28