Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 33 for SELinux (0.35 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. pkg/volume/util/hostutil/hostutil_linux.go

    limitations under the License.
    */
    
    package hostutil
    
    import (
    	"fmt"
    	"os"
    	"path"
    	"path/filepath"
    	"strings"
    	"syscall"
    
    	"github.com/opencontainers/selinux/go-selinux"
    	"golang.org/x/sys/unix"
    	"k8s.io/klog/v2"
    	"k8s.io/mount-utils"
    	utilpath "k8s.io/utils/path"
    )
    
    const (
    	// Location of the mountinfo file
    	procMountInfoPath = "/proc/self/mountinfo"
    )
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 23 08:36:44 UTC 2023
    - 10K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. LICENSES/vendor/github.com/opencontainers/selinux/LICENSE

    = vendor/github.com/opencontainers/selinux licensed under: =
    
                                     Apache License
                               Version 2.0, January 2004
                            http://www.apache.org/licenses/
    
       TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
    
       1. Definitions.
    
          "License" shall mean the terms and conditions for use, reproduction,
          and distribution as defined by Sections 1 through 9 of this document.
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 08 04:49:00 UTC 2020
    - 11.2K bytes
    - Viewed (0)
  9. src/archive/tar/reader_test.go

    			ChangeTime: time.Unix(1389782956, 794414986),
    			Xattrs: map[string]string{
    				"user.key":  "value",
    				"user.key2": "value2",
    				// Interestingly, selinux encodes the terminating null inside the xattr
    				"security.selinux": "unconfined_u:object_r:default_t:s0\x00",
    			},
    			PAXRecords: map[string]string{
    				"mtime":                         "1386065770.44825232",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 21 21:14:38 UTC 2022
    - 47.1K bytes
    - Viewed (0)
  10. staging/src/k8s.io/api/storage/v1beta1/types_swagger_doc_generated.go

    NodeStage / NodePublish with \"-o context=xyz\" mount option when mounting a ReadWriteOncePod volume used in Pod that has explicitly set SELinux context. In the future, it may be expanded to other volume AccessModes. In any case, Kubernetes will ensure that the volume is mounted only with a single SELinux context.\n\nWhen \"false\", Kubernetes won't pass any special SELinux mount options to the driver. This is typical for volumes that represent subdirectories of a bigger shared filesystem.\n\nDefault is...
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Sep 17 09:18:43 UTC 2023
    - 23.4K bytes
    - Viewed (0)
Back to top