patches and low-level development discussion
 help / color / mirror / code / Atom feed
d8ec1a11229f9f859ef006a3f51a900a40ea4231 blob 463 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
 
// SPDX-License-Identifier: EUPL-1.2+
// SPDX-FileCopyrightText: 2022 Alyssa Ross <hi@alyssa.is>

#include <fcntl.h>
#include <unistd.h>

#include <sys/syscall.h>

#include <linux/openat2.h>

int openat_path_resolve_in_root(int dirfd, const char *pathname)
{
	struct open_how how = { 0 };
	how.flags = O_PATH | O_CLOEXEC;
	how.resolve = RESOLVE_IN_ROOT | RESOLVE_NO_MAGICLINKS | RESOLVE_NO_XDEV;
	return syscall(SYS_openat2, dirfd, pathname, &how, sizeof how);
}
debug log:

solving d8ec1a1 ...
found d8ec1a1 in https://spectrum-os.org/lists/archives/spectrum-devel/20221010232909.1953738-16-hi@alyssa.is/

applying [1/1] https://spectrum-os.org/lists/archives/spectrum-devel/20221010232909.1953738-16-hi@alyssa.is/
diff --git a/host/start-vm/fs.c b/host/start-vm/fs.c
new file mode 100644
index 0000000..d8ec1a1

Checking patch host/start-vm/fs.c...
Applied patch host/start-vm/fs.c cleanly.

index at:
100644 d8ec1a11229f9f859ef006a3f51a900a40ea4231	host/start-vm/fs.c

Code repositories for project(s) associated with this public inbox

	https://spectrum-os.org/git/crosvm
	https://spectrum-os.org/git/doc
	https://spectrum-os.org/git/mktuntap
	https://spectrum-os.org/git/nixpkgs
	https://spectrum-os.org/git/spectrum
	https://spectrum-os.org/git/ucspi-vsock
	https://spectrum-os.org/git/www

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).