mirror of
https://gitee.com/openharmony/communication_ipc
synced 2024-11-23 07:50:24 +00:00
adapter rpc for samgr use musl
Signed-off-by: sin_dzzeng <13277932042@163.com>
This commit is contained in:
parent
68666ee9ef
commit
c80617d348
5
BUILD.gn
5
BUILD.gn
@ -37,4 +37,9 @@ config("ipc_util_config") {
|
||||
if (defined(build_public_version) && build_public_version) {
|
||||
cflags += [ "-DBUILD_PUBLIC_VERSION" ]
|
||||
}
|
||||
if (use_musl) {
|
||||
cflags += [ "-DSAMGR_PROCESS_UID=1005" ]
|
||||
} else {
|
||||
cflags += [ "-DSAMGR_PROCESS_UID=1000" ]
|
||||
}
|
||||
}
|
||||
|
@ -39,7 +39,7 @@ static constexpr HiLogLabel LABEL = { LOG_CORE, LOG_ID_IPC, "IPCObjectStub" };
|
||||
// Authentication information can be added only for processes with system permission.
|
||||
static constexpr pid_t ALLOWED_UID = 10000;
|
||||
// Only the samgr can obtain the UID and PID.
|
||||
static constexpr pid_t SYSTEM_SERVER_UID = 1000;
|
||||
static constexpr pid_t SYSTEM_SERVER_UID = SAMGR_PROCESS_UID;
|
||||
#endif
|
||||
static constexpr pid_t SHELL_UID = 2000;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user