type PtraceRule struct { // StrictMode is used to indicate whether to restrict ptrace permissions for all source and destination processes. // If set to false, it restricts ptrace permissions only for processes in other containers. // If set to true, it restricts ptrace permissions for all processes (except those within the init mnt namespace) StrictMode bool`json:"strictMode,omitempty"` // Permissions are used to indicate which ptrace-related permissions of the target container should be restricted. // Available values: trace, traceby, read, readby. // // trace, traceby // For "write" operations, or other operations that are more dangerous, such as: ptrace attaching (PTRACE_ATTACH) to // another process or calling process_vm_writev(2). // read, readby // For "read" operations or other operations that are less dangerous, such as: get_robust_list(2); kcmp(2); reading // /proc/pid/auxv, /proc/pid/environ, or /proc/pid/stat; or readlink(2) of a /proc/pid/ns/* file. Permissions []string`json:"permissions,omitempty"` }
type PtraceContent struct { Permissions uint32`json:"permissions"` Flags uint32`json:"flags"` }
ptrace: properties: permissions: description:"Permissions are used to indicate which ptrace-related permissions of the target container should be restricted. Available values: trace, traceby, read, readby. \n trace, traceby For \"write\" operations, or other operations that are more dangerous, such as: ptrace attaching (PTRACE_ATTACH) to another process or calling process_vm_writev(2). read, readby For \"read\" operations or other operations that are less dangerous, such as: get_robust_list(2); kcmp(2); reading /proc/pid/auxv, /proc/pid/environ, or /proc/pid/stat; or readlink(2) of a /proc/pid/ns/* file." items: type:string type:array strictMode: description:StrictModeisusedtoindicatewhether torestrictptracepermissionsforallsourceand destinationprocesses.Ifsettofalse,itrestricts ptracepermissionsonlyforprocessesinothercontainers. Ifsettotrue,itrestrictsptracepermissions forallprocesses(exceptthosewithintheinit mntnamespace) type:boolean type:object
crd.varmor.org_varmorpolicies.yaml定义了一个 Kubernetes 自定义资源定义(Custom Resource Definition,CRD),用于扩展 Kubernetes API 并引入名为 varmorpolicies.crd.varmor.org 的新资源类型。