| 1 | { |
| 2 | "definitions": { |
| 3 | "PersonalityDomain": { |
| 4 | "type": "string", |
| 5 | "enum": [ |
| 6 | "LINUX", |
| 7 | "LINUX32" |
| 8 | ] |
| 9 | }, |
| 10 | "Personality": { |
| 11 | "type": "object", |
| 12 | "properties": { |
| 13 | "domain": { |
| 14 | "$ref": "#/definitions/PersonalityDomain" |
| 15 | }, |
| 16 | "flags": { |
| 17 | "$ref": "defs.json#/definitions/ArrayOfStrings" |
| 18 | } |
| 19 | } |
| 20 | }, |
| 21 | "RootfsPropagation": { |
| 22 | "type": "string", |
| 23 | "enum": [ |
| 24 | "private", |
| 25 | "shared", |
| 26 | "slave", |
| 27 | "unbindable" |
| 28 | ] |
| 29 | }, |
| 30 | "SeccompArch": { |
| 31 | "type": "string", |
| 32 | "enum": [ |
| 33 | "SCMP_ARCH_X86", |
| 34 | "SCMP_ARCH_X86_64", |
| 35 | "SCMP_ARCH_X32", |
| 36 | "SCMP_ARCH_ARM", |
| 37 | "SCMP_ARCH_AARCH64", |
| 38 | "SCMP_ARCH_LOONGARCH64", |
| 39 | "SCMP_ARCH_M68K", |
| 40 | "SCMP_ARCH_MIPS", |
| 41 | "SCMP_ARCH_MIPS64", |
| 42 | "SCMP_ARCH_MIPS64N32", |
| 43 | "SCMP_ARCH_MIPSEL", |
| 44 | "SCMP_ARCH_MIPSEL64", |
| 45 | "SCMP_ARCH_MIPSEL64N32", |
| 46 | "SCMP_ARCH_PPC", |
| 47 | "SCMP_ARCH_PPC64", |
| 48 | "SCMP_ARCH_PPC64LE", |
| 49 | "SCMP_ARCH_S390", |
| 50 | "SCMP_ARCH_S390X", |
| 51 | "SCMP_ARCH_SH", |
| 52 | "SCMP_ARCH_SHEB", |
| 53 | "SCMP_ARCH_PARISC", |
| 54 | "SCMP_ARCH_PARISC64", |
| 55 | "SCMP_ARCH_RISCV64" |
| 56 | ] |
| 57 | }, |
| 58 | "SeccompAction": { |
| 59 | "type": "string", |
| 60 | "enum": [ |
| 61 | "SCMP_ACT_KILL", |
| 62 | "SCMP_ACT_KILL_PROCESS", |
| 63 | "SCMP_ACT_KILL_THREAD", |
| 64 | "SCMP_ACT_TRAP", |
| 65 | "SCMP_ACT_ERRNO", |
| 66 | "SCMP_ACT_TRACE", |
| 67 | "SCMP_ACT_ALLOW", |
| 68 | "SCMP_ACT_LOG", |
| 69 | "SCMP_ACT_NOTIFY" |
| 70 | ] |
| 71 | }, |
| 72 | "SeccompFlag": { |
| 73 | "type": "string", |
| 74 | "enum": [ |
| 75 | "SECCOMP_FILTER_FLAG_TSYNC", |
| 76 | "SECCOMP_FILTER_FLAG_LOG", |
| 77 | "SECCOMP_FILTER_FLAG_SPEC_ALLOW", |
| 78 | "SECCOMP_FILTER_FLAG_WAIT_KILLABLE_RECV" |
| 79 | ] |
| 80 | }, |
| 81 | "SeccompOperators": { |
| 82 | "type": "string", |
| 83 | "enum": [ |
| 84 | "SCMP_CMP_NE", |
| 85 | "SCMP_CMP_LT", |
| 86 | "SCMP_CMP_LE", |
| 87 | "SCMP_CMP_EQ", |
| 88 | "SCMP_CMP_GE", |
| 89 | "SCMP_CMP_GT", |
| 90 | "SCMP_CMP_MASKED_EQ" |
| 91 | ] |
| 92 | }, |
| 93 | "SyscallArg": { |
| 94 | "type": "object", |
| 95 | "properties": { |
| 96 | "index": { |
| 97 | "$ref": "defs.json#/definitions/uint32" |
| 98 | }, |
| 99 | "value": { |
| 100 | "$ref": "defs.json#/definitions/uint64" |
| 101 | }, |
| 102 | "valueTwo": { |
| 103 | "$ref": "defs.json#/definitions/uint64" |
| 104 | }, |
| 105 | "op": { |
| 106 | "$ref": "#/definitions/SeccompOperators" |
| 107 | } |
| 108 | }, |
| 109 | "required": [ |
| 110 | "index", |
| 111 | "value", |
| 112 | "op" |
| 113 | ] |
| 114 | }, |
| 115 | "Syscall": { |
| 116 | "type": "object", |
| 117 | "properties": { |
| 118 | "names": { |
| 119 | "type": "array", |
| 120 | "items": { |
| 121 | "type": "string" |
| 122 | }, |
| 123 | "minItems": 1 |
| 124 | }, |
| 125 | "action": { |
| 126 | "$ref": "#/definitions/SeccompAction" |
| 127 | }, |
| 128 | "errnoRet": { |
| 129 | "$ref": "defs.json#/definitions/uint32" |
| 130 | }, |
| 131 | "args": { |
| 132 | "type": "array", |
| 133 | "items": { |
| 134 | "$ref": "#/definitions/SyscallArg" |
| 135 | } |
| 136 | } |
| 137 | }, |
| 138 | "required": [ |
| 139 | "names", |
| 140 | "action" |
| 141 | ] |
| 142 | }, |
| 143 | "Major": { |
| 144 | "description": "major device number", |
| 145 | "$ref": "defs.json#/definitions/int64" |
| 146 | }, |
| 147 | "Minor": { |
| 148 | "description": "minor device number", |
| 149 | "$ref": "defs.json#/definitions/int64" |
| 150 | }, |
| 151 | "FileMode": { |
| 152 | "description": "File permissions mode (typically an octal value)", |
| 153 | "type": "integer", |
| 154 | "minimum": 0, |
| 155 | "maximum": 512 |
| 156 | }, |
| 157 | "FileType": { |
| 158 | "description": "Type of a block or special character device", |
| 159 | "type": "string", |
| 160 | "pattern": "^[cbup]$" |
| 161 | }, |
| 162 | "Device": { |
| 163 | "type": "object", |
| 164 | "required": [ |
| 165 | "type", |
| 166 | "path" |
| 167 | ], |
| 168 | "properties": { |
| 169 | "type": { |
| 170 | "$ref": "#/definitions/FileType" |
| 171 | }, |
| 172 | "path": { |
| 173 | "$ref": "defs.json#/definitions/FilePath" |
| 174 | }, |
| 175 | "fileMode": { |
| 176 | "$ref": "#/definitions/FileMode" |
| 177 | }, |
| 178 | "major": { |
| 179 | "$ref": "#/definitions/Major" |
| 180 | }, |
| 181 | "minor": { |
| 182 | "$ref": "#/definitions/Minor" |
| 183 | }, |
| 184 | "uid": { |
| 185 | "$ref": "defs.json#/definitions/UID" |
| 186 | }, |
| 187 | "gid": { |
| 188 | "$ref": "defs.json#/definitions/GID" |
| 189 | } |
| 190 | } |
| 191 | }, |
| 192 | "weight": { |
| 193 | "$ref": "defs.json#/definitions/uint16" |
| 194 | }, |
| 195 | "blockIODevice": { |
| 196 | "type": "object", |
| 197 | "properties": { |
| 198 | "major": { |
| 199 | "$ref": "#/definitions/Major" |
| 200 | }, |
| 201 | "minor": { |
| 202 | "$ref": "#/definitions/Minor" |
| 203 | } |
| 204 | }, |
| 205 | "required": [ |
| 206 | "major", |
| 207 | "minor" |
| 208 | ] |
| 209 | }, |
| 210 | "blockIODeviceWeight": { |
| 211 | "type": "object", |
| 212 | "allOf": [ |
| 213 | { |
| 214 | "$ref": "#/definitions/blockIODevice" |
| 215 | }, |
| 216 | { |
| 217 | "type": "object", |
| 218 | "properties": { |
| 219 | "weight": { |
| 220 | "$ref": "#/definitions/weight" |
| 221 | }, |
| 222 | "leafWeight": { |
| 223 | "$ref": "#/definitions/weight" |
| 224 | } |
| 225 | } |
| 226 | } |
| 227 | ] |
| 228 | }, |
| 229 | "blockIODeviceThrottle": { |
| 230 | "allOf": [ |
| 231 | { |
| 232 | "$ref": "#/definitions/blockIODevice" |
| 233 | }, |
| 234 | { |
| 235 | "type": "object", |
| 236 | "properties": { |
| 237 | "rate": { |
| 238 | "$ref": "defs.json#/definitions/uint64" |
| 239 | } |
| 240 | } |
| 241 | } |
| 242 | ] |
| 243 | }, |
| 244 | "DeviceCgroup": { |
| 245 | "type": "object", |
| 246 | "properties": { |
| 247 | "allow": { |
| 248 | "type": "boolean" |
| 249 | }, |
| 250 | "type": { |
| 251 | "type": "string" |
| 252 | }, |
| 253 | "major": { |
| 254 | "$ref": "#/definitions/Major" |
| 255 | }, |
| 256 | "minor": { |
| 257 | "$ref": "#/definitions/Minor" |
| 258 | }, |
| 259 | "access": { |
| 260 | "type": "string" |
| 261 | } |
| 262 | }, |
| 263 | "required": [ |
| 264 | "allow" |
| 265 | ] |
| 266 | }, |
| 267 | "NetworkInterfacePriority": { |
| 268 | "type": "object", |
| 269 | "properties": { |
| 270 | "name": { |
| 271 | "type": "string" |
| 272 | }, |
| 273 | "priority": { |
| 274 | "$ref": "defs.json#/definitions/uint32" |
| 275 | } |
| 276 | }, |
| 277 | "required": [ |
| 278 | "name", |
| 279 | "priority" |
| 280 | ] |
| 281 | }, |
| 282 | "Rdma": { |
| 283 | "type": "object", |
| 284 | "properties": { |
| 285 | "hcaHandles": { |
| 286 | "$ref": "defs.json#/definitions/uint32" |
| 287 | }, |
| 288 | "hcaObjects": { |
| 289 | "$ref": "defs.json#/definitions/uint32" |
| 290 | } |
| 291 | } |
| 292 | }, |
| 293 | "NamespaceType": { |
| 294 | "type": "string", |
| 295 | "enum": [ |
| 296 | "mount", |
| 297 | "pid", |
| 298 | "network", |
| 299 | "uts", |
| 300 | "ipc", |
| 301 | "user", |
| 302 | "cgroup", |
| 303 | "time" |
| 304 | ] |
| 305 | }, |
| 306 | "NamespaceReference": { |
| 307 | "type": "object", |
| 308 | "properties": { |
| 309 | "type": { |
| 310 | "$ref": "#/definitions/NamespaceType" |
| 311 | }, |
| 312 | "path": { |
| 313 | "$ref": "defs.json#/definitions/FilePath" |
| 314 | } |
| 315 | }, |
| 316 | "required": [ |
| 317 | "type" |
| 318 | ] |
| 319 | }, |
| 320 | "TimeOffsets": { |
| 321 | "type": "object", |
| 322 | "properties": { |
| 323 | "secs": { |
| 324 | "$ref": "defs.json#/definitions/int64" |
| 325 | }, |
| 326 | "nanosecs": { |
| 327 | "$ref": "defs.json#/definitions/uint32" |
| 328 | } |
| 329 | } |
| 330 | }, |
| 331 | "SchedulerPolicy": { |
| 332 | "type": "string", |
| 333 | "enum": [ |
| 334 | "SCHED_OTHER", |
| 335 | "SCHED_FIFO", |
| 336 | "SCHED_RR", |
| 337 | "SCHED_BATCH", |
| 338 | "SCHED_ISO", |
| 339 | "SCHED_IDLE", |
| 340 | "SCHED_DEADLINE" |
| 341 | ] |
| 342 | }, |
| 343 | "SchedulerFlag": { |
| 344 | "type": "string", |
| 345 | "enum": [ |
| 346 | "SCHED_FLAG_RESET_ON_FORK", |
| 347 | "SCHED_FLAG_RECLAIM", |
| 348 | "SCHED_FLAG_DL_OVERRUN", |
| 349 | "SCHED_FLAG_KEEP_POLICY", |
| 350 | "SCHED_FLAG_KEEP_PARAMS", |
| 351 | "SCHED_FLAG_UTIL_CLAMP_MIN", |
| 352 | "SCHED_FLAG_UTIL_CLAMP_MAX" |
| 353 | ] |
| 354 | } |
| 355 | } |
| 356 | } |