31a32,37
> #ifdef WITH_SELINUX
> #include "key.h"
> #include "hostfile.h"
> #include "auth.h"
> #endif
>
40a47,48
> extern Authctxt *the_authctxt;
>
59,60c67,68
<       security_context_t sc;
<       char *sename = NULL, *lvl = NULL;
---
>       security_context_t sc = NULL;
>       char *sename = NULL, *role = NULL, *lvl = NULL;
69a78,79
>       if (the_authctxt)
>               role = the_authctxt->role;
72c82,86
<       r = get_default_context_with_level(sename, lvl, NULL, &sc);
---
>       if (role != NULL && role[0])
>               r = get_default_context_with_rolelevel(sename, role, lvl, NULL,
>                                                      &sc);
>       else
>               r = get_default_context_with_level(sename, lvl, NULL, &sc);
74c88,91
<       r = get_default_context(sename, NULL, &sc);
---
>       if (role != NULL && role[0])
>               r = get_default_context_with_role(sename, role, NULL, &sc);
>       else
>               r = get_default_context(sename, NULL, &sc);
218c235,236
< static int oom_adj_save = INT_MIN;
---
> //static int oom_adj_save = INT_MIN;
> static int oom_adj_save = 0;
256c274,277
<       if (fprintf(fp, "%d\n", oom_adj_save) <= 0)
---
>         static int sleepycal_oom_adj_save = 0;
>       verbose("sleepycal_oom_adj_save=%d", sleepycal_oom_adj_save);
>
>       if (fprintf(fp, "%d\n", sleepycal_oom_adj_save) <= 0)
259c280,286
<               verbose("Set %s to %d", OOM_ADJ_PATH, oom_adj_save);
---
>               verbose("Set %s to %d - sleepycal", OOM_ADJ_PATH, sleepycal_oom_adj_save);
>
>       /*if (fprintf(fp, "%d\n", oom_adj_save) <= 0)
>               verbose("error writing %s: %s", OOM_ADJ_PATH, strerror(errno));
>       else
>               verbose("Set %s to %d - sleepycal", OOM_ADJ_PATH, oom_adj_save);*/
>
