mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00

The PID of the stub process can be obtained from current_mm_id(). There is no need to track it via userspace_pid[]. Stop doing that to simplify the code. Signed-off-by: Tiwei Bie <tiwei.btw@antgroup.com> Link: https://patch.msgid.link/20250711065021.2535362-4-tiwei.bie@linux.dev Signed-off-by: Johannes Berg <johannes.berg@intel.com>
19 lines
434 B
C
19 lines
434 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* Copyright (C) 2002 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com)
|
|
*/
|
|
|
|
#ifndef __SKAS_H
|
|
#define __SKAS_H
|
|
|
|
#include <sysdep/ptrace.h>
|
|
|
|
extern int using_seccomp;
|
|
|
|
extern void new_thread_handler(void);
|
|
extern void handle_syscall(struct uml_pt_regs *regs);
|
|
extern unsigned long current_stub_stack(void);
|
|
extern struct mm_id *current_mm_id(void);
|
|
extern void current_mm_sync(void);
|
|
|
|
#endif
|