selinux: Create function for selinuxfs directory cleanup
authorDaniel Burgener <dburgener@linux.microsoft.com>
Wed, 19 Aug 2020 19:59:32 +0000 (15:59 -0400)
committerPaul Moore <paul@paul-moore.com>
Fri, 21 Aug 2020 13:35:59 +0000 (09:35 -0400)
commitaeecf4a3fb11954cb10b8bc57e1661a6e4e9f3a9
treea3cff94f459df6726daf84cb4e1983f311f18e86
parent9530a3e00459cd6eabf050133205e0e8fecbdfc7
selinux: Create function for selinuxfs directory cleanup

Separating the cleanup from the creation will simplify two things in
future patches in this series.  First, the creation can be made generic,
to create directories not tied to the selinux_fs_info structure.  Second,
we will ultimately want to reorder creation and deletion so that the
deletions aren't performed until the new directory structures have already
been moved into place.

Signed-off-by: Daniel Burgener <dburgener@linux.microsoft.com>
Acked-by: Stephen Smalley <stephen.smalley.work@gmail.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
security/selinux/selinuxfs.c