]> git.ipfire.org Git - thirdparty/shadow.git/commit
semanage: close the selabel handle 422/head
authorIker Pedrosa <ipedrosa@redhat.com>
Fri, 8 Oct 2021 11:13:13 +0000 (13:13 +0200)
committerIker Pedrosa <ipedrosa@redhat.com>
Mon, 25 Oct 2021 07:55:31 +0000 (09:55 +0200)
commit234af5cf67fc1a3ba99fc246ba65869a3c416545
treeceb507fdcac9b8b68d634bc8bb727519829d477b
parent09c752f00f9dfc610f66d68be38c9e5be8ca7f15
semanage: close the selabel handle

Close the selabel handle to update the file_context. This means that the
file_context will be remmaped and used by selabel_lookup() to return
the appropriate context to label the home folder.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1993081

Signed-off-by: Iker Pedrosa <ipedrosa@redhat.com>
lib/prototypes.h
lib/selinux.c
lib/semanage.c