Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 33 for selinuxRelabel (0.2 sec)

  1. pkg/kubelet/container/runtime.go

    	// Whether the mount is read-only.
    	ReadOnly bool
    	// Whether the mount is recursive read-only.
    	// Must not be true if ReadOnly is false.
    	RecursiveReadOnly bool
    	// Whether the mount needs SELinux relabeling
    	SELinuxRelabel bool
    	// Requested propagation mode
    	Propagation runtimeapi.MountPropagation
    }
    
    // PortMapping contains information about the port mapping.
    type PortMapping struct {
    	// Protocol of the port mapping.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 00:05:23 UTC 2024
    - 27.8K bytes
    - Viewed (0)
  2. pkg/kubelet/kubelet_pods.go

    		// If the volume supports SELinux and it has not been
    		// relabeled already and it is not a read-only volume,
    		// relabel it and mark it as labeled
    		if vol.Mounter.GetAttributes().Managed && vol.Mounter.GetAttributes().SELinuxRelabel && !vol.SELinuxLabeled {
    			vol.SELinuxLabeled = true
    			relabelVolume = true
    		}
    		hostPath, err := volumeutil.GetPath(vol.Mounter)
    		if err != nil {
    			return nil, cleanupAction, err
    		}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 101.2K bytes
    - Viewed (0)
  3. pkg/volume/testing/testing.go

    		volumeName = spec.Name()
    	}
    	return volumeName, nil
    }
    
    func (_ *FakeVolume) GetAttributes() volume.Attributes {
    	return volume.Attributes{
    		ReadOnly:       false,
    		Managed:        true,
    		SELinuxRelabel: true,
    	}
    }
    
    func (fv *FakeVolume) SetUp(mounterArgs volume.MounterArgs) error {
    	fv.Lock()
    	defer fv.Unlock()
    	err := fv.setupInternal(mounterArgs)
    	fv.SetUpCallCount++
    	return err
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 12:32:15 UTC 2024
    - 53.3K bytes
    - Viewed (0)
  4. pkg/volume/iscsi/attacher.go

    	if err != nil {
    		return err
    	}
    
    	options := []string{}
    	if readOnly {
    		options = append(options, "ro")
    	}
    	if mountArgs.SELinuxLabel != "" {
    		options = volumeutil.AddSELinuxMountOption(options, mountArgs.SELinuxLabel)
    	}
    	if notMnt {
    		diskMounter := &mount.SafeFormatAndMount{Interface: mounter, Exec: attacher.host.GetExec(iscsiPluginName)}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Aug 04 08:51:31 UTC 2022
    - 6.8K bytes
    - Viewed (0)
  5. pkg/kubelet/volumemanager/reconciler/reconciler_test.go

    	volumeSpec := &volume.Spec{Volume: &pod.Spec.Volumes[0]}
    	podName := util.GetUniquePodName(pod)
    	generatedVolumeName, err := dsw.AddPodToVolume(
    		podName, pod, volumeSpec, volumeSpec.Name(), "" /* volumeGidValue */, nil /* seLinuxLabel */)
    
    	// Assert
    	if err != nil {
    		t.Fatalf("AddPodToVolume failed. Expected: <no error> Actual: <%v>", err)
    	}
    
    	// Act
    	runReconciler(reconciler)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 09 07:34:33 UTC 2024
    - 75.4K bytes
    - Viewed (0)
  6. pkg/volume/fc/attacher.go

    	if err != nil {
    		return err
    	}
    
    	options := []string{}
    	if readOnly {
    		options = append(options, "ro")
    	}
    	if mountArgs.SELinuxLabel != "" {
    		options = volumeutil.AddSELinuxMountOption(options, mountArgs.SELinuxLabel)
    	}
    	if notMnt {
    		diskMounter := &mount.SafeFormatAndMount{Interface: mounter, Exec: attacher.host.GetExec(fcPluginName)}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 31 12:02:51 UTC 2022
    - 7.5K bytes
    - Viewed (0)
  7. pkg/volume/csi/csi_mounter_test.go

    			}
    
    			// Mounter.SetUp()
    			var mounterArgs volume.MounterArgs
    			fsGroup := int64(2000)
    			mounterArgs.FsGroup = &fsGroup
    
    			if test.seLinuxLabel != "" {
    				mounterArgs.SELinuxLabel = test.seLinuxLabel
    			}
    
    			expectedMountOptions := pv.Spec.MountOptions
    
    			if test.expectedSELinuxContext != "" {
    				expectedMountOptions = append(expectedMountOptions, test.expectedSELinuxContext)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 50.1K bytes
    - Viewed (0)
  8. pkg/volume/csi/csi_attacher.go

    		if err != nil {
    			return errors.New(log("failed to query for SELinuxMount support: %s", err))
    		}
    		if support && deviceMounterArgs.SELinuxLabel != "" {
    			mountOptions = util.AddSELinuxMountOption(mountOptions, deviceMounterArgs.SELinuxLabel)
    			seLinuxSupported = true
    		}
    	}
    
    	// Store volume metadata for UnmountDevice. Keep it around even if the
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 03 07:38:14 UTC 2023
    - 25.9K bytes
    - Viewed (0)
  9. pkg/volume/util/operationexecutor/operation_generator.go

    			// Mount device to global mount path
    			err = volumeDeviceMounter.MountDevice(
    				volumeToMount.VolumeSpec,
    				devicePath,
    				deviceMountPath,
    				volume.DeviceMounterArgs{FsGroup: fsGroup, SELinuxLabel: volumeToMount.SELinuxLabel},
    			)
    			if err != nil {
    				og.checkForFailedMount(volumeToMount, err)
    				og.markDeviceErrorState(volumeToMount, devicePath, deviceMountPath, err, actualStateOfWorld)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 101.4K bytes
    - Viewed (0)
  10. pkg/kubelet/volumemanager/reconciler/reconciler_common.go

    		volMounted, devicePath, err := rc.actualStateOfWorld.PodExistsInVolume(volumeToMount.PodName, volumeToMount.VolumeName, volumeToMount.DesiredPersistentVolumeSize, volumeToMount.SELinuxLabel)
    		volumeToMount.DevicePath = devicePath
    		if cache.IsSELinuxMountMismatchError(err) {
    			// The volume is mounted, but with an unexpected SELinux context.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 21 10:23:12 UTC 2024
    - 14.8K bytes
    - Viewed (0)
Back to top