Run virtmanager with its new UID
Bug: 183583115 Test: start virtmanager ps -AZ | grep virtmanager u: r:virtmanager:s0 virtmanager 2453 1 10930880 4544 0 0 S virtmanager Change-Id: Ib98029e61ee094842859609271e4d26b30cd2a7b
This commit is contained in:
parent
d4bc533ff0
commit
63ab238450
|
@ -35,6 +35,8 @@ apex {
|
||||||
"vm",
|
"vm",
|
||||||
],
|
],
|
||||||
filesystems: ["microdroid"],
|
filesystems: ["microdroid"],
|
||||||
|
prebuilts: ["com.android.virt.init.rc"],
|
||||||
|
file_contexts: ":com.android.virt-file_contexts",
|
||||||
}
|
}
|
||||||
|
|
||||||
apex_key {
|
apex_key {
|
||||||
|
@ -47,3 +49,9 @@ android_app_certificate {
|
||||||
name: "com.android.virt.certificate",
|
name: "com.android.virt.certificate",
|
||||||
certificate: "com.android.virt",
|
certificate: "com.android.virt",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
prebuilt_etc {
|
||||||
|
name: "com.android.virt.init.rc",
|
||||||
|
src: "virtmanager.rc",
|
||||||
|
filename: "init.rc",
|
||||||
|
}
|
||||||
|
|
|
@ -0,0 +1,19 @@
|
||||||
|
# Copyright (C) 2021 The Android Open Source Project
|
||||||
|
#
|
||||||
|
# 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.
|
||||||
|
|
||||||
|
service virtmanager /apex/com.android.virt/bin/virtmanager
|
||||||
|
class main
|
||||||
|
user virtmanager
|
||||||
|
group virtmanager
|
||||||
|
disabled
|
Loading…
Reference in New Issue