URL:
https://github.com/SSSD/sssd/pull/342
Title: #342: SELINUX: Use getseuserbyname to get IPA seuser
lslebodn commented:
"""
@bachradsusi than you for checking. But I think there is a memory leak, (at leas based on
libselinux documentation.
```
/* 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);
```
"""
See the full comment at
https://github.com/SSSD/sssd/pull/342#issuecomment-327212887