summaryrefslogtreecommitdiffstats
path: root/security/selinux/ss/services.h
diff options
context:
space:
mode:
authorOndrej Mosnacek <omosnace@redhat.com>2018-11-30 16:24:07 +0100
committerPaul Moore <paul@paul-moore.com>2018-12-05 21:36:12 +0100
commit24ed7fdae669feda4c5e0dadba2467c4c0d297d3 (patch)
treea26c76596744dab9c762d6d5915e9dc67b20e906 /security/selinux/ss/services.h
parentselinux: make "selinux_policycap_names[]" const char * (diff)
downloadlinux-24ed7fdae669feda4c5e0dadba2467c4c0d297d3.tar.xz
linux-24ed7fdae669feda4c5e0dadba2467c4c0d297d3.zip
selinux: use separate table for initial SID lookup
This moves handling of initial SIDs into a separate table. Note that the SIDs stored in the main table are now shifted by SECINITSID_NUM and converted to/from the actual SIDs transparently by helper functions. This change doesn't make much sense on its own, but it simplifies further sidtab overhaul in a succeeding patch. Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com> Reviewed-by: Stephen Smalley <sds@tycho.nsa.gov> [PM: fixed some checkpatch warnings on line length, whitespace] Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'security/selinux/ss/services.h')
-rw-r--r--security/selinux/ss/services.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/security/selinux/ss/services.h b/security/selinux/ss/services.h
index 24c7bdcc8075..9a36de860368 100644
--- a/security/selinux/ss/services.h
+++ b/security/selinux/ss/services.h
@@ -24,7 +24,7 @@ struct selinux_map {
};
struct selinux_ss {
- struct sidtab sidtab;
+ struct sidtab *sidtab;
struct policydb policydb;
rwlock_t policy_rwlock;
u32 latest_granting;