Merge "init: add SelabelInitialize() for subcontext"
am: cba7f57119
Change-Id: I0ea0c99c5848aeaa5fd463e347bd76c5b471b7ef
This commit is contained in:
commit
f0b4e4daee
|
@ -28,6 +28,7 @@
|
|||
#include <selinux/android.h>
|
||||
|
||||
#include "action.h"
|
||||
#include "selinux.h"
|
||||
#include "system/core/init/subcontext.pb.h"
|
||||
#include "util.h"
|
||||
|
||||
|
@ -165,6 +166,7 @@ int SubcontextMain(int argc, char** argv, const KeywordFunctionMap* function_map
|
|||
auto context = std::string(argv[2]);
|
||||
auto init_fd = std::atoi(argv[3]);
|
||||
|
||||
SelabelInitialize();
|
||||
auto subcontext_process = SubcontextProcess(function_map, context, init_fd);
|
||||
subcontext_process.MainLoop();
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue