Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for SELinuxEnabled (0.23 sec)

  1. pkg/volume/util/selinux.go

    	// It returns "" and no error on platforms that do not have SELinux enabled
    	// or don't support SELinux at all.
    	SELinuxOptionsToFileLabel(opts *v1.SELinuxOptions) (string, error)
    
    	// SELinuxEnabled returns true when the OS has enabled SELinux support.
    	SELinuxEnabled() bool
    }
    
    // Real implementation of the interface.
    // On Linux with SELinux enabled it translates. Otherwise it always returns an empty string and no error.
    type translator struct{}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 20 14:40:21 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  2. pkg/volume/util/hostutil/hostutil_linux.go

    	}
    
    	return nil
    }
    
    // selinux.SELinuxEnabled implementation for unit tests
    type seLinuxEnabledFunc func() bool
    
    // GetSELinux is common implementation of GetSELinuxSupport on Linux.
    func GetSELinux(path string, mountInfoFilename string, selinuxEnabled seLinuxEnabledFunc) (bool, error) {
    	// Skip /proc/mounts parsing if SELinux is disabled.
    	if !selinuxEnabled() {
    		return false, nil
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 23 08:36:44 UTC 2023
    - 10K bytes
    - Viewed (0)
  3. pkg/volume/util/hostutil/hostutil_linux_test.go

    	if err != nil {
    		t.Fatalf("cannot create temporary file: %v", err)
    	}
    	defer os.RemoveAll(tempDir)
    
    	tests := []struct {
    		name           string
    		mountPoint     string
    		selinuxEnabled bool
    		expectedResult bool
    	}{
    		{
    			"ext4 on / with disabled SELinux",
    			"/",
    			false,
    			false,
    		},
    		{
    			"ext4 on /",
    			"/",
    			true,
    			true,
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 20 14:49:03 UTC 2023
    - 8K bytes
    - Viewed (0)
  4. src/make.bash

    # 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
    		if ! cat $se_mount/booleans/allow_execstack | grep -c '^1 1$' >> /dev/null ; then
    			echo "WARNING: the default SELinux policy on, at least, Fedora 12 breaks "
    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/cache/desired_state_of_world.go

    	var seLinuxFileLabel string
    	var pluginSupportsSELinuxContextMount bool
    
    	if feature.DefaultFeatureGate.Enabled(features.SELinuxMountReadWriteOncePod) {
    		var err error
    
    		if !dsw.seLinuxTranslator.SELinuxEnabled() {
    			return "", false, nil
    		}
    
    		pluginSupportsSELinuxContextMount, err = dsw.getSELinuxMountSupport(volumeSpec)
    		if err != nil {
    			return "", false, err
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 27.1K bytes
    - Viewed (0)
Back to top