mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-06 10:32:10 +00:00
eb83ee79b6
Add Goldfish battery to aarch64 crosvm. The guest kernel will see the goldfish battery node on the FDT. This copies the seccomp policy for the battery from x86-64. BUG=b:214124318 TEST=create VM with parameter "--battery" or "--battery=type=goldfish" TEST=android-sh -c 'dumpsys battery' TEST=tast run ${DUT} arc.PerfBoot.vm Change-Id: I8212e760db5ffbc5d01442cfa7930baa5962ef6e Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3686713 Reviewed-by: Alexandre Courbot <acourbot@chromium.org> Tested-by: kokoro <noreply+kokoro@google.com> Auto-Submit: Masami Hiramatsu <mhiramat@google.com> Reviewed-by: Keiichi Watanabe <keiichiw@chromium.org> Commit-Queue: Masami Hiramatsu <mhiramat@google.com>
10 lines
309 B
Text
10 lines
309 B
Text
# Copyright 2020 The Chromium OS Authors. All rights reserved.
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
@include /usr/share/policy/crosvm/common_device.policy
|
|
connect: 1
|
|
geteuid: 1
|
|
getsockname: 1
|
|
prctl: arg0 == PR_SET_NAME
|
|
socket: arg0 == AF_UNIX
|