Merge "init: add SelabelInitialize() for subcontext"
am: cba7f57119
Change-Id: I0ea0c99c5848aeaa5fd463e347bd76c5b471b7ef
This commit is contained in:
commit
f0b4e4daee
1 changed files with 2 additions and 0 deletions
|
|
@ -28,6 +28,7 @@
|
||||||
#include <selinux/android.h>
|
#include <selinux/android.h>
|
||||||
|
|
||||||
#include "action.h"
|
#include "action.h"
|
||||||
|
#include "selinux.h"
|
||||||
#include "system/core/init/subcontext.pb.h"
|
#include "system/core/init/subcontext.pb.h"
|
||||||
#include "util.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 context = std::string(argv[2]);
|
||||||
auto init_fd = std::atoi(argv[3]);
|
auto init_fd = std::atoi(argv[3]);
|
||||||
|
|
||||||
|
SelabelInitialize();
|
||||||
auto subcontext_process = SubcontextProcess(function_map, context, init_fd);
|
auto subcontext_process = SubcontextProcess(function_map, context, init_fd);
|
||||||
subcontext_process.MainLoop();
|
subcontext_process.MainLoop();
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue