Merge "init: add SelabelInitialize() for subcontext" am: cba7f57119 am: f0b4e4daee am: 9815d0d400
am: c4763ff50b
Change-Id: I114a747c5b03eb1aa9e80e6d96bb7d0996a3beae
This commit is contained in:
commit
2b04addacb
1 changed files with 2 additions and 0 deletions
|
|
@ -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…
Add table
Reference in a new issue