mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-11-28 17:44:10 +00:00
f19933bfb0
Starting with 2.32 glibc nanosleep() was refactored to use the clock_nanosleep syscall so various software will fail unless the new syscall is allowed. We can't just drop the old nanosleep syscall because it will break glibc 2.27 which is still used. See glibc commits: 807edded25 nptl: Refactor thrd_sleep in terms of clock_nanosleep 3537ecb49c Refactor nanosleep in terms of clock_nanosleep 79a547b162 nptl: Move nanosleep implementation to libc This is a bulk edit done with the following command: git grep -rl 'nanosleep: 1' | xargs sed -i \ '/^nanosleep: 1/a clock_nanosleep: 1' BUG=chromium:1171287 TEST=Local builds and booting on kevin/64/eve/minnie. Change-Id: I975535078d88200f52319c7eea3a4c7ebf299933 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/2735575 Tested-by: kokoro <noreply+kokoro@google.com> Tested-by: Manoj Gupta <manojgupta@chromium.org> Commit-Queue: Manoj Gupta <manojgupta@chromium.org> Reviewed-by: Dylan Reid <dgreid@chromium.org> Reviewed-by: Stephen Barber <smbarber@chromium.org>
13 lines
338 B
Text
13 lines
338 B
Text
# 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.
|
|
|
|
@include /usr/share/policy/crosvm/common_device.policy
|
|
|
|
clock_gettime: 1
|
|
lseek: 1
|
|
open: return ENOENT
|
|
openat: return ENOENT
|
|
prlimit64: 1
|
|
sched_setscheduler: 1
|
|
setrlimit: 1
|