selinux: refactor sidtab conversion
authorOndrej Mosnacek <omosnace@redhat.com>
Tue, 13 Nov 2018 13:52:53 +0000 (14:52 +0100)
committerPaul Moore <paul@paul-moore.com>
Tue, 20 Nov 2018 21:38:14 +0000 (16:38 -0500)
commit5386e6caa6711407182573e2b0344fe908b0fbcc
treee03f89d863f28a5a26e23858f78814e7fab949e5
parent0427612cddef07568ba80596a02089181092783d
selinux: refactor sidtab conversion

This is a purely cosmetic change that encapsulates the three-step sidtab
conversion logic (shutdown -> clone -> map) into a single function
defined in sidtab.c (as opposed to services.c).

Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
Acked-by: Stephen Smalley <sds@tycho.nsa.gov>
[PM: whitespaces fixes to make checkpatch happy]
Signed-off-by: Paul Moore <paul@paul-moore.com>
security/selinux/ss/services.c
security/selinux/ss/sidtab.c
security/selinux/ss/sidtab.h