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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1390 - (show annotations) (download) (as text)
Mon Jan 18 15:41:17 2010 UTC (12 years, 8 months ago) by aramv
File MIME type: text/x-chdr
File size: 664 byte(s)
AOS seems to be valgrind clean
1 #include "eef.h"
2 #include "aos.h"
3 #include "plugin_manager.h"
4
5 EES_RC EEF_Run(){
6 aos_context_t *context;
7 aos_attribute_t *uid, *gid;
8
9 /* fill aos */
10 uid = createAttribute();
11 gid = createAttribute();
12
13 setAttributeId(uid, "posix-uid");
14 setAttributeValue(uid, 0, 0);
15
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 */
29 run_plugins(get_policies());
30
31 return EES_SUCCESS;
32 }
33

Properties

Name Value
svn:mergeinfo

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