summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-03-06 00:08:23 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-03-06 00:08:23 +0000
commite09ffd09b2a4564b46ff6f592d5f0d4d53a552ce (patch)
treec8904a778c51837afe00678c9cf1499d6f2e47cf
parent78db2e67f19d450fa71a9b1572dbc0cc787eb98e (diff)
parent838eb9f18155b55953984b1447f72d7da37a92e5 (diff)
downloadtests-e09ffd09b2a4564b46ff6f592d5f0d4d53a552ce.tar.gz
Snap for 8261343 from 838eb9f18155b55953984b1447f72d7da37a92e5 to tm-d1-release
Change-Id: Ib286dcee065b2762ac4c085ea713a64415ce916c
-rw-r--r--net/test/rootfs/common.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/net/test/rootfs/common.sh b/net/test/rootfs/common.sh
index c86c39c..c935250 100644
--- a/net/test/rootfs/common.sh
+++ b/net/test/rootfs/common.sh
@@ -103,6 +103,10 @@ setup_cuttlefish_user() {
useradd -m -G cvdnetwork,kvm,render,sudo,video \
-d /home/vsoc-01 --shell /bin/bash vsoc-01
echo -e "cuttlefish\ncuttlefish" | passwd vsoc-01
+
+ # Enable unlimited memory locking for vsoc-01, which is needed by protected
+ # KVM, which is enabled by default on arm64 devices
+ echo "vsoc-01 - memlock unlimited" >>/etc/security/limits.conf
}
# $* - One or more device names for getty spawns