]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb1066a1a6c6eed7ab3f67a8ccb3de726802d8202
treea3cff94f459df6726daf84cb4e1983f311f18e86
parent1acce48ea07ccf19ca0c0ce3feaf7b36fd05e730
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