dms process profile modification

Signed-off-by: majiajun <majiajun@huawei.com>
Change-Id: I75d557301ebd196517caeb30bdce070177f1b1e0
This commit is contained in:
majiajun 2022-06-09 19:39:57 -07:00
parent 54d5ec7cfd
commit 67249e2331
4 changed files with 5 additions and 40 deletions

View File

@ -16,15 +16,11 @@ import("//build/ohos.gni")
#################################################################################
group("etc") {
deps = [ ":distributedsched.rc" ]
deps = [ ":dms_etc" ]
}
ohos_prebuilt_etc("distributedsched.rc") {
if (use_musl) {
source = "distributedsched_musl.cfg"
} else {
source = "distributedsched.cfg"
}
ohos_prebuilt_etc("dms_etc") {
source = "distributedsched.cfg"
relative_install_dir = "init"
subsystem_name = "distributedschedule"
part_name = "dmsfwk_standard"

View File

@ -2,8 +2,8 @@
"services" : [{
"name" : "distributedsched",
"path" : ["/system/bin/sa_main", "/system/profile/distributedsched.xml"],
"uid" : "system",
"gid" : ["system", "shell"],
"uid" : "dms",
"gid" : ["dms", "shell"],
"secon" : "u:r:distributedsche:s0"
}
]

View File

@ -1,21 +0,0 @@
# Copyright (c) 2021 Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
on post-fs-data
start distributedsched
service distributedsched /system/bin/sa_main /system/profile/distributedsched.xml
class z_core
user system
group system shell
seclabel u:r:softbus_server:s0

View File

@ -1,10 +0,0 @@
{
"services" : [{
"name" : "distributedsched",
"path" : ["/system/bin/sa_main", "/system/profile/distributedsched.xml"],
"uid" : "dms",
"gid" : ["dms", "shell"],
"secon" : "u:r:distributedsche:s0"
}
]
}