Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 163 for seLinuxOptions (0.26 sec)

  1. pkg/securitycontext/accessors_test.go

    				continue
    			}
    		}
    
    		// SELinuxOptions
    		{
    			modifiedSC := nonNilSC(tc.newSC())
    			m := NewPodSecurityContextMutator(tc.newSC())
    			modifiedSC.SELinuxOptions = &api.SELinuxOptions{User: "bob"}
    			m.SetSELinuxOptions(&api.SELinuxOptions{User: "bob"})
    			if !reflect.DeepEqual(m.PodSecurityContext(), modifiedSC) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 22 16:15:27 UTC 2023
    - 27.8K bytes
    - Viewed (0)
  2. pkg/securitycontext/accessors.go

    }
    func (w *effectiveContainerSecurityContextWrapper) SELinuxOptions() *api.SELinuxOptions {
    	if v := w.containerSC.SELinuxOptions(); v != nil {
    		return v
    	}
    	return w.podSC.SELinuxOptions()
    }
    func (w *effectiveContainerSecurityContextWrapper) SetSELinuxOptions(v *api.SELinuxOptions) {
    	if !reflect.DeepEqual(w.SELinuxOptions(), v) {
    		w.containerSC.SetSELinuxOptions(v)
    	}
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 22 16:15:27 UTC 2023
    - 14.4K bytes
    - Viewed (0)
  3. pkg/securitycontext/util.go

    		return effectiveSc
    	}
    	if effectiveSc == nil && containerSc != nil {
    		return containerSc
    	}
    
    	if containerSc.SELinuxOptions != nil {
    		effectiveSc.SELinuxOptions = new(v1.SELinuxOptions)
    		*effectiveSc.SELinuxOptions = *containerSc.SELinuxOptions
    	}
    
    	if containerSc.WindowsOptions != nil {
    		// only override fields that are set at the container level, not the whole thing
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 15 07:28:24 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  4. pkg/volume/util/selinux.go

    	"k8s.io/kubernetes/pkg/features"
    	"k8s.io/kubernetes/pkg/volume"
    )
    
    // SELinuxLabelTranslator translates v1.SELinuxOptions of a process to SELinux file label.
    type SELinuxLabelTranslator interface {
    	// SELinuxOptionsToFileLabel returns SELinux file label for given SELinuxOptions
    	// of a container process.
    	// When Role, User or Type are empty, they're read from the system defaults.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 20 14:40:21 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  5. pkg/kubelet/kuberuntime/security_context.go

    	if securityContext == nil {
    		return nil
    	}
    
    	sc := &runtimeapi.LinuxContainerSecurityContext{
    		Capabilities:   convertToRuntimeCapabilities(securityContext.Capabilities),
    		SelinuxOptions: convertToRuntimeSELinuxOption(securityContext.SELinuxOptions),
    	}
    	if securityContext.RunAsUser != nil {
    		sc.RunAsUser = &runtimeapi.Int64Value{Value: int64(*securityContext.RunAsUser)}
    	}
    	if securityContext.RunAsGroup != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  6. pkg/kubelet/volumemanager/cache/desired_state_of_world_test.go

    	// Arrange: prepare a different pod with the same context
    	seLinux2 := v1.SELinuxOptions{
    		User:  "system_u",
    		Role:  "object_r",
    		Type:  "container_t",
    		Level: "s0:c3,c4",
    	}
    	seLinuxContainerContexts2 := []*v1.SELinuxOptions{&seLinux2}
    	pod2 := pod.DeepCopy()
    	pod2.Name = "pod2"
    	pod2.UID = "pod2uid"
    	pod2.Spec.SecurityContext.SELinuxOptions = &seLinux2
    	pod2Name := util.GetUniquePodName(pod2)
    
    	// Act
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 34K bytes
    - Viewed (0)
  7. pkg/kubelet/kuberuntime/kuberuntime_sandbox_linux_test.go

    			SelinuxOptions: &runtimeapi.SELinuxOption{
    				User: "qux",
    			},
    			RunAsUser:  &runtimeapi.Int64Value{Value: 1000},
    			RunAsGroup: &runtimeapi.Int64Value{Value: 10},
    		},
    	}
    
    	podSandboxConfig, err := m.generatePodSandboxConfig(pod, 1)
    	assert.NoError(t, err)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 8K bytes
    - Viewed (0)
  8. staging/src/k8s.io/client-go/applyconfigurations/core/v1/podsecuritycontext.go

    // PodSecurityContextApplyConfiguration represents an declarative configuration of the PodSecurityContext type for use
    // with apply.
    type PodSecurityContextApplyConfiguration struct {
    	SELinuxOptions           *SELinuxOptionsApplyConfiguration                `json:"seLinuxOptions,omitempty"`
    	WindowsOptions           *WindowsSecurityContextOptionsApplyConfiguration `json:"windowsOptions,omitempty"`
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  9. manifests/charts/ztunnel/templates/daemonset.yaml

              readOnlyRootFilesystem: true
              runAsGroup: 1337
              runAsNonRoot: false
              runAsUser: 0
    {{- if .Values.seLinuxOptions }}
              seLinuxOptions:
    {{ toYaml .Values.seLinuxOptions | trim | indent 12 }}
    {{- end }}
            readinessProbe:
              httpGet:
                port: 15021
                path: /healthz/ready
            args:
            - proxy
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jun 11 01:33:52 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  10. pkg/kubelet/kuberuntime/security_context_windows_test.go

    		{
    			desc: "Pass if container's user and image's user aren't set and RunAsNonRoot is true",
    			sc: &v1.SecurityContext{
    				// verifyRunAsNonRoot should ignore the RunAsUser, SELinuxOptions, and RunAsGroup options.
    				RunAsUser:      &uid,
    				SELinuxOptions: &v1.SELinuxOptions{},
    				RunAsGroup:     &uid,
    				RunAsNonRoot:   &runAsNonRootTrue,
    			},
    			fail: false,
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jul 30 02:29:11 UTC 2022
    - 4.6K bytes
    - Viewed (0)
Back to top