snapshot: sagernet/gvisor v0.0.0-20250811.0-sing-box-mod.1
Содержимое пина, зафиксированного в go.mod sing-box-lx, одним коммитом без истории. Полная история SagerNet/gvisor — 1.45 ГБ и клонируется в каждой CI-джобе; наша дельта — одна вставка в одну функцию, история для неё не нужна. Module path github.com/sagernet/gvisor сохранён намеренно: на него опирается replace-директива суперпроекта. Патч поверх — отдельным коммитом, чтобы дельта читалась одним git show и переносилась на новый пин копированием. SPECS/TASKS/048-GVISOR_HANDSHAKE_NIL_CRASH
This commit is contained in:
commit
2c4ae3b0a4
712 changed files with 185689 additions and 0 deletions
71
pkg/abi/linux/clone.go
Normal file
71
pkg/abi/linux/clone.go
Normal file
|
|
@ -0,0 +1,71 @@
|
|||
// Copyright 2018 The gVisor Authors.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
package linux
|
||||
|
||||
// Clone constants per clone(2).
|
||||
const (
|
||||
CSIGNAL = 0xff
|
||||
|
||||
CLONE_VM = 0x100
|
||||
CLONE_FS = 0x200
|
||||
CLONE_FILES = 0x400
|
||||
CLONE_SIGHAND = 0x800
|
||||
CLONE_PIDFD = 0x1000
|
||||
CLONE_PTRACE = 0x2000
|
||||
CLONE_VFORK = 0x4000
|
||||
CLONE_PARENT = 0x8000
|
||||
CLONE_THREAD = 0x10000
|
||||
CLONE_NEWNS = 0x20000
|
||||
CLONE_SYSVSEM = 0x40000
|
||||
CLONE_SETTLS = 0x80000
|
||||
CLONE_PARENT_SETTID = 0x100000
|
||||
CLONE_CHILD_CLEARTID = 0x200000
|
||||
CLONE_DETACHED = 0x400000
|
||||
CLONE_UNTRACED = 0x800000
|
||||
CLONE_CHILD_SETTID = 0x1000000
|
||||
CLONE_NEWCGROUP = 0x2000000
|
||||
CLONE_NEWUTS = 0x4000000
|
||||
CLONE_NEWIPC = 0x8000000
|
||||
CLONE_NEWUSER = 0x10000000
|
||||
CLONE_NEWPID = 0x20000000
|
||||
CLONE_NEWNET = 0x40000000
|
||||
CLONE_IO = 0x80000000
|
||||
|
||||
// Only passable via clone3(2).
|
||||
CLONE_CLEAR_SIGHAND = 0x100000000
|
||||
CLONE_INTO_CGROUP = 0x200000000
|
||||
|
||||
// Sizeof first published struct.
|
||||
CLONE_ARGS_SIZE_VER0 = 64
|
||||
// Sizeof third published struct.
|
||||
CLONE_ARGS_SIZE_VER2 = 88
|
||||
)
|
||||
|
||||
// CloneArgs is struct clone_args, from include/uapi/linux/sched.h.
|
||||
//
|
||||
// +marshal
|
||||
type CloneArgs struct {
|
||||
Flags uint64
|
||||
Pidfd uint64
|
||||
ChildTID uint64
|
||||
ParentTID uint64
|
||||
ExitSignal uint64
|
||||
Stack uint64
|
||||
StackSize uint64
|
||||
TLS uint64
|
||||
SetTID uint64
|
||||
SetTIDSize uint64
|
||||
Cgroup uint64
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue