Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for LocalhostProfile (0.25 sec)

  1. staging/src/k8s.io/client-go/applyconfigurations/core/v1/apparmorprofile.go

    // with apply.
    type AppArmorProfileApplyConfiguration struct {
    	Type             *v1.AppArmorProfileType `json:"type,omitempty"`
    	LocalhostProfile *string                 `json:"localhostProfile,omitempty"`
    }
    
    // AppArmorProfileApplyConfiguration constructs an declarative configuration of the AppArmorProfile type for use with
    // apply.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 05 20:22:50 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  2. pkg/security/apparmor/validate.go

    		// that is called for API validation, and this is tightening validation.
    		if profile.Type == v1.AppArmorProfileTypeLocalhost {
    			if profile.LocalhostProfile == nil || strings.TrimSpace(*profile.LocalhostProfile) == "" {
    				retErr = fmt.Errorf("invalid empty AppArmor profile name: %q", profile)
    				return false
    			}
    		}
    		return true
    	})
    
    	return retErr
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 05 20:22:50 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  3. hack/testdata/pod-restricted-localhost.yaml

    apiVersion: v1
    kind: Pod
    metadata:
      labels:
        run: target
      name: target
    spec:
      securityContext:
        seccompProfile: 
          type: Localhost
          localhostProfile: dummy.json
      containers:
      - image: busybox
        name: target
        command: ["/bin/sh", "-c", "sleep 100"]
        securityContext:
            runAsUser: 1000
            runAsGroup: 1000
            runAsNonRoot: true
            allowPrivilegeEscalation: false
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 24 11:16:49 UTC 2023
    - 467 bytes
    - Viewed (0)
  4. pkg/security/apparmor/helpers_test.go

    	unconfined := &v1.AppArmorProfile{Type: v1.AppArmorProfileTypeUnconfined}
    	localhost := &v1.AppArmorProfile{
    		Type:             v1.AppArmorProfileTypeLocalhost,
    		LocalhostProfile: ptr.To("test"),
    	}
    
    	tests := []struct {
    		name              string
    		annotationProfile string
    		containerProfile  *v1.AppArmorProfile
    		podProfile        *v1.AppArmorProfile
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 18:46:31 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  5. pkg/security/apparmor/helpers.go

    		profileName := strings.TrimPrefix(val, v1.DeprecatedAppArmorBetaProfileNamePrefix)
    		return &v1.AppArmorProfile{
    			Type:             v1.AppArmorProfileTypeLocalhost,
    			LocalhostProfile: &profileName,
    		}
    
    	default:
    		// Invalid annotation.
    		return nil
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 18:46:32 UTC 2024
    - 3.5K bytes
    - Viewed (0)
Back to top