id stringlengths 2 7 | text stringlengths 17 51.2k | title stringclasses 1
value |
|---|---|---|
c14400 | }
}
newRlimit := rspec.POSIXRlimit{
Type: rType,
Hard: rHard,
Soft: rSoft,
}
g.Config.Process.Rlimits = append(g.Config.Process.Rlimits, newRlimit)
} | |
c14401 | rType {
g.Config.Process.Rlimits = append(g.Config.Process.Rlimits[:i], g.Config.Process.Rlimits[i+1:]...)
return
}
}
} | |
c14402 | }
g.Config.Process.Rlimits = []rspec.POSIXRlimit{}
} | |
c14403 |
}
g.Config.Process.User.AdditionalGids = []uint32{}
} | |
c14404 | g.Config.Process.User.AdditionalGids = append(g.Config.Process.User.AdditionalGids, gid)
} | |
c14405 |
g.Config.Process.SelinuxLabel = label
} | |
c14406 |
g.Config.Linux.CgroupsPath = path
} | |
c14407 | g.Config.Linux.IntelRdt.L3CacheSchema = schema
} | |
c14408 |
g.Config.Linux.MountLabel = label
} | |
c14409 |
g.Config.Process.OOMScoreAdj = &adj
} | |
c14410 | g.Config.Linux.Resources.BlockIO.LeafWeight = &weight
} | |
c14411 | g.Config.Linux.Resources.BlockIO.Weight = &weight
} | |
c14412 |
}
weightDevice := new(rspec.LinuxWeightDevice)
weightDevice.Major = major
weightDevice.Minor = minor
weightDevice.Weight = &weight
g.Config.Linux.Resources.BlockIO.WeightDevice = append(g.Config.Linux.Resources.BlockIO.WeightDevice, *weightDevice)
} | |
c14413 | newWeightDevice.LeafWeight = weightDevice.LeafWeight
g.Config.Linux.Resources.BlockIO.WeightDevice[i] = *newWeightDevice
} else {
g.Config.Linux.Resources.BlockIO.WeightDevice = append(g.Config.Linux.Resources.BlockIO.WeightDevice[:i], g.Config.Linux.Resources.BlockIO.WeightDevice[i+1:]...)
}
return
... | |
c14414 |
throttleDevices := addOrReplaceBlockIOThrottleDevice(g.Config.Linux.Resources.BlockIO.ThrottleReadBpsDevice, major, minor, rate)
g.Config.Linux.Resources.BlockIO.ThrottleReadBpsDevice = throttleDevices
} | |
c14415 | || g.Config.Linux.Resources.BlockIO == nil {
return
}
throttleDevices := dropBlockIOThrottleDevice(g.Config.Linux.Resources.BlockIO.ThrottleReadBpsDevice, major, minor)
g.Config.Linux.Resources.BlockIO.ThrottleReadBpsDevice = throttleDevices
} | |
c14416 |
throttleDevices := addOrReplaceBlockIOThrottleDevice(g.Config.Linux.Resources.BlockIO.ThrottleReadIOPSDevice, major, minor, rate)
g.Config.Linux.Resources.BlockIO.ThrottleReadIOPSDevice = throttleDevices
} | |
c14417 | || g.Config.Linux.Resources.BlockIO == nil {
return
}
throttleDevices := dropBlockIOThrottleDevice(g.Config.Linux.Resources.BlockIO.ThrottleReadIOPSDevice, major, minor)
g.Config.Linux.Resources.BlockIO.ThrottleReadIOPSDevice = throttleDevices
} | |
c14418 |
throttleDevices := addOrReplaceBlockIOThrottleDevice(g.Config.Linux.Resources.BlockIO.ThrottleWriteBpsDevice, major, minor, rate)
g.Config.Linux.Resources.BlockIO.ThrottleWriteBpsDevice = throttleDevices
} | |
c14419 | || g.Config.Linux.Resources.BlockIO == nil {
return
}
throttleDevices := dropBlockIOThrottleDevice(g.Config.Linux.Resources.BlockIO.ThrottleWriteBpsDevice, major, minor)
g.Config.Linux.Resources.BlockIO.ThrottleWriteBpsDevice = throttleDevices
} | |
c14420 |
throttleDevices := addOrReplaceBlockIOThrottleDevice(g.Config.Linux.Resources.BlockIO.ThrottleWriteIOPSDevice, major, minor, rate)
g.Config.Linux.Resources.BlockIO.ThrottleWriteIOPSDevice = throttleDevices
} | |
c14421 | || g.Config.Linux.Resources.BlockIO == nil {
return
}
throttleDevices := dropBlockIOThrottleDevice(g.Config.Linux.Resources.BlockIO.ThrottleWriteIOPSDevice, major, minor)
g.Config.Linux.Resources.BlockIO.ThrottleWriteIOPSDevice = throttleDevices
} | |
c14422 | g.Config.Linux.Resources.CPU.Shares = &shares
} | |
c14423 | g.Config.Linux.Resources.CPU.Quota = "a
} | |
c14424 | g.Config.Linux.Resources.CPU.Period = &period
} | |
c14425 | g.Config.Linux.Resources.CPU.RealtimeRuntime = &time
} | |
c14426 | g.Config.Linux.Resources.CPU.RealtimePeriod = &period
} | |
c14427 | g.Config.Linux.Resources.CPU.Cpus = cpus
} | |
c14428 | g.Config.Linux.Resources.CPU.Mems = mems
} | |
c14429 | g.Config.Linux.Resources.HugepageLimits[i].Limit = limit
return
}
}
g.Config.Linux.Resources.HugepageLimits = append(g.Config.Linux.Resources.HugepageLimits, hugepageLimit)
} | |
c14430 | pageSize {
g.Config.Linux.Resources.HugepageLimits = append(g.Config.Linux.Resources.HugepageLimits[:i], g.Config.Linux.Resources.HugepageLimits[i+1:]...)
return
}
}
} | |
c14431 | g.Config.Linux.Resources.Memory.Limit = &limit
} | |
c14432 | g.Config.Linux.Resources.Memory.Reservation = &reservation
} | |
c14433 | g.Config.Linux.Resources.Memory.Swap = &swap
} | |
c14434 | g.Config.Linux.Resources.Memory.Kernel = &kernel
} | |
c14435 | g.Config.Linux.Resources.Memory.KernelTCP = &kernelTCP
} | |
c14436 | g.Config.Linux.Resources.Memory.Swappiness = &swappiness
} | |
c14437 | g.Config.Linux.Resources.Memory.DisableOOMKiller = &disable
} | |
c14438 | g.Config.Linux.Resources.Network.ClassID = &classid
} | |
c14439 |
interfacePrio := new(rspec.LinuxInterfacePriority)
interfacePrio.Name = name
interfacePrio.Priority = prio
g.Config.Linux.Resources.Network.Priorities = append(g.Config.Linux.Resources.Network.Priorities, *interfacePrio)
} | |
c14440 | {
g.Config.Linux.Resources.Network.Priorities = append(g.Config.Linux.Resources.Network.Priorities[:i], g.Config.Linux.Resources.Network.Priorities[i+1:]...)
return
}
}
} | |
c14441 | g.Config.Linux.Resources.Pids.Limit = limit
} | |
c14442 | }
g.Config.Linux.Sysctl = make(map[string]string)
} | |
c14443 | g.Config.Linux.Sysctl[key] = value
} | |
c14444 | g.Config.Linux.Sysctl == nil {
return
}
delete(g.Config.Linux.Sysctl, key)
} | |
c14445 | }
g.Config.Linux.UIDMappings = []rspec.LinuxIDMapping{}
} | |
c14446 | size,
}
g.initConfigLinux()
g.Config.Linux.UIDMappings = append(g.Config.Linux.UIDMappings, idMapping)
} | |
c14447 | }
g.Config.Linux.GIDMappings = []rspec.LinuxIDMapping{}
} | |
c14448 | one of (r)private|(r)slave|(r)shared|(r)unbindable", rp)
}
g.initConfigLinux()
g.Config.Linux.RootfsPropagation = rp
return nil
} | |
c14449 |
}
g.Config.Hooks.Prestart = []rspec.Hook{}
} | |
c14450 |
g.Config.Hooks.Prestart = append(g.Config.Hooks.Prestart, preStartHook)
return nil
} | |
c14451 |
}
g.Config.Hooks.Poststop = []rspec.Hook{}
} | |
c14452 |
g.Config.Hooks.Poststop = append(g.Config.Hooks.Poststop, postStopHook)
return nil
} | |
c14453 |
}
g.Config.Hooks.Poststart = []rspec.Hook{}
} | |
c14454 |
g.Config.Hooks.Poststart = append(g.Config.Hooks.Poststart, postStartHook)
return nil
} | |
c14455 |
g.Config.Mounts = append(g.Config.Mounts, mnt)
} | |
c14456 | g.Config.Mounts = append(g.Config.Mounts[:index], g.Config.Mounts[index+1:]...)
return
}
}
} | |
c14457 | {
g.initConfig()
return g.Config.Mounts
} | |
c14458 | g.Config.Mounts = []rspec.Mount{}
} | |
c14459 | g.Config.Process.Capabilities.Bounding = append(g.Config.Process.Capabilities.Bounding, finalCapList...)
g.Config.Process.Capabilities.Effective = append(g.Config.Process.Capabilities.Effective, finalCapList...)
g.Config.Process.Capabilities.Inheritable = append(g.Config.Process.Capabilities.Inheritable, finalCap... | |
c14460 | = []string{}
g.Config.Process.Capabilities.Effective = []string{}
g.Config.Process.Capabilities.Inheritable = []string{}
g.Config.Process.Capabilities.Permitted = []string{}
g.Config.Process.Capabilities.Ambient = []string{}
} | |
c14461 | g.Config.Process.Capabilities.Inheritable {
if strings.ToUpper(cap) == cp {
foundInheritable = true
break
}
}
if !foundInheritable {
g.Config.Process.Capabilities.Inheritable = append(g.Config.Process.Capabilities.Inheritable, cp)
}
for _, cap := range g.Config.Process.Capabilities.Permitted {
if st... | |
c14462 | cp {
foundAmbient = true
break
}
}
if !foundAmbient {
g.Config.Process.Capabilities.Ambient = append(g.Config.Process.Capabilities.Ambient, cp)
}
return nil
} | |
c14463 | cp {
foundBounding = true
break
}
}
if !foundBounding {
g.Config.Process.Capabilities.Bounding = append(g.Config.Process.Capabilities.Bounding, cp)
}
return nil
} | |
c14464 | cp {
foundEffective = true
break
}
}
if !foundEffective {
g.Config.Process.Capabilities.Effective = append(g.Config.Process.Capabilities.Effective, cp)
}
return nil
} | |
c14465 | cp {
foundInheritable = true
break
}
}
if !foundInheritable {
g.Config.Process.Capabilities.Inheritable = append(g.Config.Process.Capabilities.Inheritable, cp)
}
return nil
} | |
c14466 | cp {
foundPermitted = true
break
}
}
if !foundPermitted {
g.Config.Process.Capabilities.Permitted = append(g.Config.Process.Capabilities.Permitted, cp)
}
return nil
} | |
c14467 | for i, cap := range g.Config.Process.Capabilities.Inheritable {
if strings.ToUpper(cap) == cp {
g.Config.Process.Capabilities.Inheritable = removeFunc(g.Config.Process.Capabilities.Inheritable, i)
}
}
for i, cap := range g.Config.Process.Capabilities.Permitted {
if strings.ToUpper(cap) == cp {
g.Config.P... | |
c14468 | g.Config.Process.Capabilities.Ambient = removeFunc(g.Config.Process.Capabilities.Ambient, i)
}
}
return validate.CapValid(cp, false)
} | |
c14469 | }
g.Config.Linux.Namespaces = []rspec.LinuxNamespace{}
} | |
c14470 | g.Config.Linux.Namespaces[i] = namespace
return nil
}
}
g.Config.Linux.Namespaces = append(g.Config.Linux.Namespaces, namespace)
return nil
} | |
c14471 | if ns.Type == namespace.Type {
g.Config.Linux.Namespaces = append(g.Config.Linux.Namespaces[:i], g.Config.Linux.Namespaces[i+1:]...)
return nil
}
}
return nil
} | |
c14472 | dev.Minor == device.Minor {
fmt.Fprintln(os.Stderr, "WARNING: The same type, major and minor should not be used for multiple devices.")
}
}
g.Config.Linux.Devices = append(g.Config.Linux.Devices, device)
} | |
c14473 |
g.Config.Linux.Devices = append(g.Config.Linux.Devices[:i], g.Config.Linux.Devices[i+1:]...)
return
}
}
} | |
c14474 | return
}
g.Config.Linux.Devices = []rspec.LinuxDevice{}
} | |
c14475 |
Major: major,
Minor: minor,
}
g.Config.Linux.Resources.Devices = append(g.Config.Linux.Resources.Devices, device)
} | |
c14476 | (major != nil && device.Major != nil && *major == *device.Major)) &&
(minor == device.Minor || (minor != nil && device.Minor != nil && *minor == *device.Minor)) {
g.Config.Linux.Resources.Devices = append(g.Config.Linux.Resources.Devices[:i], g.Config.Linux.Resources.Devices[i+1:]...)
return
}
}
return
} | |
c14477 | return seccomp.ParseSyscallFlag(arguments, g.Config.Linux.Seccomp)
} | |
c14478 | seccomp.ParseDefaultAction(action, g.Config.Linux.Seccomp)
} | |
c14479 | return seccomp.ParseDefaultActionForce(action, g.Config.Linux.Seccomp)
} | |
c14480 | seccomp.ParseArchitectureFlag(architecture, g.Config.Linux.Seccomp)
} | |
c14481 | seccomp.RemoveAction(arguments, g.Config.Linux.Seccomp)
} | |
c14482 | seccomp.RemoveAllSeccompRules(g.Config.Linux.Seccomp)
} | |
c14483 | = append(g.Config.Linux.MaskedPaths, path)
} | |
c14484 | = append(g.Config.Linux.ReadonlyPaths, path)
} | |
c14485 | g.Config.Solaris.Anet = append(g.Config.Solaris.Anet, anet)
} | |
c14486 | g.Config.Solaris.CappedCPU.Ncpus = ncpus
} | |
c14487 | g.Config.Solaris.CappedMemory.Physical = physical
} | |
c14488 | g.Config.Solaris.CappedMemory.Swap = swap
} | |
c14489 |
g.Config.Solaris.LimitPriv = limitPriv
} | |
c14490 |
g.Config.Solaris.MaxShmMemory = memory
} | |
c14491 |
g.Config.Solaris.Milestone = milestone
} | |
c14492 | }
g.initConfigVMHypervisor()
g.Config.VM.Hypervisor.Path = path
return nil
} | |
c14493 | g.Config.VM.Hypervisor.Parameters = parameters
} | |
c14494 | path", path)
}
g.initConfigVMKernel()
g.Config.VM.Kernel.Path = path
return nil
} | |
c14495 | g.Config.VM.Kernel.Parameters = parameters
} | |
c14496 | path", initrd)
}
g.initConfigVMKernel()
g.Config.VM.Kernel.InitRD = initrd
return nil
} | |
c14497 | path", path)
}
g.initConfigVMImage()
g.Config.VM.Image.Path = path
return nil
} | |
c14498 | supported formats are: raw, qcow2, vdi, vmdk, vhd")
}
g.initConfigVMImage()
g.Config.VM.Image.Format = format
return nil
} | |
c14499 | g.Config.Windows.HyperV.UtilityVMPath = path
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.