Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 38 for SELinux (0.11 sec)

  1. pkg/kubelet/volumemanager/cache/desired_state_of_world.go

    	effectiveSELinuxMountFileLabel string
    
    	// originalSELinuxLabel is the SELinux label that would be used if SELinux mount was supported for all access modes.
    	// For RWOP volumes it's the same as effectiveSELinuxMountFileLabel.
    	// It is used only to report potential SELinux mismatch metrics.
    	// If empty, then:
    	// - either the context+label is unknown (assigned randomly by the container runtime)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 27.1K bytes
    - Viewed (0)
  2. pkg/kubelet/volumemanager/cache/desired_state_of_world_test.go

    	verifyPodExistsInVolumeDsw(t, podName, generatedVolumeName, "" /* SELinux */, dsw)
    	verifyVolumeExistsWithSpecNameInVolumeDsw(t, podName, volumeSpec.Name(), dsw)
    }
    
    // Calls AddPodToVolume() with a volume that does not support SELinux.
    // Verifies newly added pod/volume exists via PodExistsInVolume() without SELinux context
    // VolumeExists() and GetVolumesToMount() and no errors.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 34K bytes
    - Viewed (0)
  3. pkg/registry/storage/csidriver/strategy_test.go

    			seLinuxMountReadWriteOncePodEnabled: false,
    			old:                                 driverWithNothing,
    			update:                              driverWithSELinuxMountEnabled,
    			wantSELinuxMount:                    nil,
    			wantGeneration:                      0,
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 16.7K bytes
    - Viewed (0)
  4. src/make.bash

    	echo
    	echo 'Run sudo apt-get remove binutils-gold.'
    	echo
    	exit 1
    fi
    
    # Test for bad SELinux.
    # On Fedora 16 the selinux filesystem is mounted at /sys/fs/selinux,
    # so loop through the possible selinux mount points.
    for se_mount in /selinux /sys/fs/selinux
    do
    	if [[ -d $se_mount && -f $se_mount/booleans/allow_execstack && -x /usr/sbin/selinuxenabled ]] && /usr/sbin/selinuxenabled; then
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 13:48:46 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  5. pkg/kubelet/volumemanager/populator/desired_state_of_world_populator_test.go

    			name:                    "RWX with plugin with SELinux with full context in pod and SELinuxMount feature disabled",
    			accessModes:             []v1.PersistentVolumeAccessMode{v1.ReadWriteMany},
    			newContainerSELinuxOpts: fullOpts,
    			pluginSupportsSELinux:   true,
    			expectedContext:         "", // RWX volumes don't support SELinux
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 51.4K bytes
    - Viewed (0)
  6. pkg/volume/hostpath/host_path.go

    	}
    
    	if err := os.MkdirAll(pv.Spec.HostPath.Path, 0750); err != nil {
    		return nil, err
    	}
    	if selinux.GetEnabled() {
    		err := selinux.SetFileLabel(pv.Spec.HostPath.Path, config.KubeletContainersSharedSELinuxLabel)
    		if err != nil {
    			return nil, fmt.Errorf("failed to set selinux label for %q: %v", pv.Spec.HostPath.Path, err)
    		}
    	}
    
    	return pv, nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  7. cluster/images/etcd/Makefile

    PUSH_REGISTRY?=staging-k8s.gcr.io
    
    MANIFEST_IMAGE := $(PUSH_REGISTRY)/etcd
    
    # Install binaries matching base distro permissions
    BIN_INSTALL := install -m 0555
    
    # Hosts running SELinux need :z added to volume mounts
    SELINUX_ENABLED := $(shell cat /sys/fs/selinux/enforce 2> /dev/null || echo 0)
    
    ifeq ($(SELINUX_ENABLED),1)
      DOCKER_VOL_OPTS?=:z
    endif
    
    # This option is for running docker manifest command
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 06 16:13:15 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  8. pkg/kubelet/volumemanager/cache/actual_state_of_world_test.go

    	verifyVolumeExistsWithSpecNameInVolumeAsw(t, podName, volumeSpec.Name(), asw)
    	verifyVolumeMountedElsewhere(t, podName, generatedVolumeName, false /*expectedMountedElsewhere */, asw)
    }
    
    // Calls MarkVolumeAsAttached() once to add volume
    // Calls MarkDeviceAsMounted() with SELinux to mark volume as globally mounted.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 46.3K bytes
    - Viewed (0)
  9. pkg/apis/core/types.go

    )
    
    // SELinuxOptions are the labels to be applied to the container.
    type SELinuxOptions struct {
    	// SELinux user label
    	// +optional
    	User string
    	// SELinux role label
    	// +optional
    	Role string
    	// SELinux type label
    	// +optional
    	Type string
    	// SELinux level label.
    	// +optional
    	Level string
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 268.9K bytes
    - Viewed (0)
  10. staging/src/k8s.io/api/core/v1/types_swagger_doc_generated.go

    	"":      "SELinuxOptions are the labels to be applied to the container",
    	"user":  "User is a SELinux user label that applies to the container.",
    	"role":  "Role is a SELinux role label that applies to the container.",
    	"type":  "Type is a SELinux type label that applies to the container.",
    	"level": "Level is SELinux level label that applies to the container.",
    }
    
    func (SELinuxOptions) SwaggerDoc() map[string]string {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 254.8K bytes
    - Viewed (0)
Back to top