summaryrefslogtreecommitdiff
path: root/security/selinux/ss/sidtab.h
diff options
context:
space:
mode:
authorPaul Moore <paul@paul-moore.com>2022-11-08 13:01:19 -0500
committerPaul Moore <paul@paul-moore.com>2022-11-09 11:00:49 -0500
commit048be156491ff1aeb0fe5ff0862644d38cd39015 (patch)
tree8201a4ebe4bcc2dbdf95eef34761db08e25f3132 /security/selinux/ss/sidtab.h
parente0d8259355cb846f9cf2e38f6ba3430aecb9ebcc (diff)
selinux: remove the sidtab context conversion indirect calls
The sidtab conversion code has support for multiple context conversion routines through the use of function pointers and indirect calls. However, the reality is that all current users rely on the same conversion routine: convert_context(). This patch does away with this extra complexity and replaces the indirect calls with direct function calls; allowing us to remove a layer of obfuscation and create cleaner, more maintainable code. Reviewed-by: Ondrej Mosnacek <omosnace@redhat.com> Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'security/selinux/ss/sidtab.h')
-rw-r--r--security/selinux/ss/sidtab.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/security/selinux/ss/sidtab.h b/security/selinux/ss/sidtab.h
index 4eff0e49dcb2..72810a080e77 100644
--- a/security/selinux/ss/sidtab.h
+++ b/security/selinux/ss/sidtab.h
@@ -65,8 +65,7 @@ struct sidtab_isid_entry {
};
struct sidtab_convert_params {
- int (*func)(struct context *oldc, struct context *newc, void *args);
- void *args;
+ struct convert_context_args *args;
struct sidtab *target;
};