mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-11-25 05:03:05 +00:00
6d9243865b
A new command line parameter to specify privileged UIDs. If the requester UID is privileged, PassthroughFs uses D-Bus to set quota project ID. BUG=b:190791826 TEST=build Cq-Depend: chromium:3129049,chromium:3129048 Change-Id: Ie27f200e8c651be6a5503f69e7b784c5e8f968ea Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3014623 Tested-by: kokoro <noreply+kokoro@google.com> Commit-Queue: Ryo Hashimoto <hashimoto@chromium.org> Reviewed-by: Chirantan Ekbote <chirantan@chromium.org> Reviewed-by: Dennis Kempin <denniskempin@google.com>
24 lines
943 B
Bash
Executable file
24 lines
943 B
Bash
Executable file
#!/usr/bin/env bash
|
|
# Copyright 2021 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.
|
|
#
|
|
# To build crosvm using cargo against libraries and crates provided by ChromeOS
|
|
# use this script to update path references in Cargo.toml.
|
|
#
|
|
# TODO(b/194323235): Add documentation for ChromeOS developer workflows.
|
|
|
|
declare -A replacements=(
|
|
["libcras_stub"]="../../third_party/adhd/cras/client/libcras"
|
|
["system_api_stub"]="../../platform2/system_api"
|
|
["third_party/minijail"]="../../aosp/external/minijail"
|
|
["third_party/vmm_vhost"]="../../third_party/rust-vmm/vhost"
|
|
)
|
|
|
|
for crate in "${!replacements[@]}"; do
|
|
echo "Replacing '${crate}' with '${replacements[$crate]}'"
|
|
sed -i "s|path = \"${crate}|path = \"${replacements[$crate]}|g" \
|
|
Cargo.toml
|
|
done
|
|
|
|
echo "Modified Cargo.toml with new paths. Please do not commit those."
|