提交 33a6527c 编写于 作者: R renwei

add limit_domain

Signed-off-by: Nrenwei <renwei8@huawei.com>
Change-Id: Ifff534ce49b2c276a231f094ddf0953e43d01bd2
上级 b9c35b34
......@@ -180,6 +180,11 @@ void SetSecon(Service *service)
} else {
INIT_LOGI("service %s secon set to %s.", service->name, service->secon);
}
} else {
if (setexeccon("u:r:limit_domain:s0") < 0) {
INIT_LOGE("failed to set service %s's secon (%s).", service->name, "u:r:limit_domain:s0");
}
INIT_LOGE("Please config secon field in service %s's cfg file, limit_domain will be blocked by selinux", service->name);
}
#endif // WITH_SELINUX
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册