flask: sort io{port,mem}con entries
authorDaniel De Graaf <dgdegra@tycho.nsa.gov>
Tue, 9 Oct 2018 14:26:54 +0000 (16:26 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 9 Oct 2018 14:26:54 +0000 (16:26 +0200)
commit5e04bf333b954fcfd86eda3d258dc69bcf0586a3
tree1a0197949eede6390b97c3ff752446a200f40de9
parent27225bbb6d148f6d373a4a89b0dc3f3f5bf4d193
flask: sort io{port,mem}con entries

These entries are not always sorted by checkpolicy, so sort them during
policy load (as is already done for later ocontext additions).

Reported-by: Nicolas Poirot <nicolas.poirot@bertin.fr>
Signed-off-by: Daniel De Graaf <dgdegra@tycho.nsa.gov>
Tested-by: Nicolas Poirot <nicolas.poirot@bertin.fr>
Reviewed-by: Nicolas Poirot <nicolas.poirot@bertin.fr>
xen/xsm/flask/ss/policydb.c