On Monday 11 August 2008 21:26, Julien Cristau <[EMAIL PROTECTED]> wrote: > > Looks like seuser and level are never freed. Am I missing something? > > Looking at <selinux/selinux.h>, we read: > /* Get the SELinux username and level to use for a given Linux username.? > These values may then be passed into the get_ordered_context_list* > and get_default_context* functions to obtain a context for the user. > Returns 0 on success or -1 otherwise. > Caller must free the returned strings via free. */ > extern int getseuserbyname(const char *linuxuser, char **seuser, char > **level); > > Will apply the fixed patch with the missing calls to free().
Thanks for that. I had been meaning to review your suggestion. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]