[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#493524: xdm: SE Linux patch was written for old version



On Monday 11 August 2008 21:26, Julien Cristau <jcristau@debian.org> 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.



Reply to: