OSDN Git Service

selinux: Refactor selinuxfs directory populating functions
authorDaniel Burgener <dburgener@linux.microsoft.com>
Wed, 19 Aug 2020 19:59:33 +0000 (15:59 -0400)
committerPaul Moore <paul@paul-moore.com>
Fri, 21 Aug 2020 13:37:12 +0000 (09:37 -0400)
commit66ec384ad3044d63c9726493a412a2ad5317eae5
treecd6ed15ab8932b7babf520e20c0dc5714bf01350
parentaeecf4a3fb11954cb10b8bc57e1661a6e4e9f3a9
selinux: Refactor selinuxfs directory populating functions

Make sel_make_bools and sel_make_classes take the specific elements of
selinux_fs_info that they need rather than the entire struct.

This will allow a future patch to pass temporary elements that are not in
the selinux_fs_info struct to these functions so that the original elements
can be preserved until we are ready to perform the switch over.

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