Affected by GO-2022-0560
and 14 other vulnerabilities
GO-2022-0560 : Nomad Spread Job Stanza May Trigger Panic in Servers in github.com/hashicorp/nomad
GO-2022-0573 : Improper Authentication in HashiCorp Nomad in github.com/hashicorp/nomad
GO-2022-0577 : HashiCorp Nomad vulnerable to Allocation of Resources Without Limits or Throttling in github.com/hashicorp/nomad
GO-2022-0584 : Arbitrary file reads in HashiCorp Nomad in github.com/hashicorp/nomad
GO-2022-0591 : Privilege escalation in Hashicorp Nomad in github.com/hashicorp/nomad
GO-2022-0600 : HashiCorp Nomad Artifact Download Race Condition in github.com/hashicorp/nomad
GO-2022-0732 : Privilege escalation in Hashicorp Nomad in github.com/hashicorp/nomad
GO-2022-1062 : Nomad Panics On Job Submission With Bad Artifact Stanza Source URL in github.com/hashicorp/nomad
GO-2024-2670 : ACL security vulnerability in github.com/hashicorp/nomad
GO-2024-3073 : Nomad Vulnerable to Allocation Directory Escape On Non-Existing File Paths Through Archive Unpacking in github.com/hashicorp/nomad
GO-2024-3262 : Hashicorp Nomad Incorrect Authorization vulnerability in github.com/hashicorp/nomad
GO-2024-3354 : Hashicorp Nomad Incorrect Privilege Assignment vulnerability in github.com/hashicorp/nomad
GO-2025-3510 : Unintentional exposure of the workload identity token and client secret in logs in github.com/hashicorp/nomad
GO-2025-3758 : Hashicorp Nomad Incorrect Privilege Assignment vulnerability in github.com/hashicorp/nomad
GO-2026-4278 : HashiCorp Nomad is vulnerable to path escape through archive unpacking during migration in github.com/hashicorp/nomad
Discover Packages
github.com/hashicorp/nomad
lib
cpuset
package
Version:
v1.1.2
Opens a new window with list of versions in this module.
Published: Jun 22, 2021
License: MPL-2.0
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
CPUSet is a set like object that provides methods helpful when working with cpus with systems
such as the Linux cpuset cgroup subsystem. A CPUSet is immutable and can be safely accessed concurrently.
New initializes a new CPUSet with 0 or more containing cpus
ContainsAny returns true if any cpus in other CPUSet are present
Difference returns a new set that is the difference of this CPUSet and the supplied other.
[0,1,2,3].Difference([2,3,4]) = [0,1]
Equals tests the equality of the elements in the CPUSet
IsSubsetOf returns true if all cpus of the this CPUSet are present in the other CPUSet.
Size returns to the number of cpus contained in the CPUSet
String returns the cpuset as a comma delimited set of core values and ranged
ToSlice returns a sorted slice of uint16 CPU IDs contained in the CPUSet.
Union returns a new set that is the union of this CPUSet and the supplied other.
Ex. [0,1,2,3].Union([2,3,4,5]) = [0,1,2,3,4,5]
Source Files
¶
Click to show internal directories.
Click to hide internal directories.