355b8a6 IPA: Fix SELinux mapping order memory hierarchy

Authored and Committed by jhrozek 10 years ago
    IPA: Fix SELinux mapping order memory hierarchy
    
    https://fedorahosted.org/sssd/ticket/2300
    
    The list of SELinux mapping orders was allocated on tmp_ctx and parsed
    into an array. The array itself was correctly allocated on mem_ctx but
    its contents remained on tmp_ctx, leading to a use-after-free error.
    This patch fixes the memory hierarchy so that both the array and its
    contents are allocated on mem_ctx.