OSDN Git Service

Call selinux_status_open() prior to use of selinux_status_updated().
authorStephen Smalley <sds@tycho.nsa.gov>
Wed, 3 Jun 2015 13:25:37 +0000 (09:25 -0400)
committerNick Kralevich <nnk@google.com>
Wed, 3 Jun 2015 20:46:08 +0000 (13:46 -0700)
commit2139c7fa37e581f6d2f573003afc16fbef700ad1
treeefbed61300e6b3cc66e7dc1e7d045838d2a8d9b5
parentd910f3cf78ae878b1b86ead7ca837004c3a25aaa
Call selinux_status_open() prior to use of selinux_status_updated().

The selinux_status_*() interfaces require calling selinux_status_open()
first.  Since this was not being called by servicemanager, the
selinux_status_updated() call was always failing and servicemanager
was not reloading service_contexts upon a policy reload.

(cherrypicked from commit bea0746b241d15626cf0a56828efc1d4640dbda7)

Change-Id: I6ac62e114bbca99c5f0999feb918fcde15009274
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
cmds/servicemanager/service_manager.c