Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for RunningInUserNS (0.21 sec)

  1. pkg/kubelet/userns/inuserns/inuserns_linux.go

    limitations under the License.
    */
    
    package inuserns
    
    import libcontaineruserns "github.com/opencontainers/runc/libcontainer/userns"
    
    // RunningInUserNS detects whether the current process is running in a user namespace.
    func RunningInUserNS() bool {
    	return libcontaineruserns.RunningInUserNS()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jan 09 01:42:20 UTC 2024
    - 833 bytes
    - Viewed (0)
  2. pkg/kubelet/userns/inuserns/inuserns_others.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package inuserns
    
    // RunningInUserNS detects whether the current process is running in a user namespace.
    func RunningInUserNS() bool {
    	return false
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jan 09 01:42:20 UTC 2024
    - 758 bytes
    - Viewed (0)
  3. pkg/kubelet/util/swap/swap_util.go

    func IsTmpfsNoswapOptionSupported(mounter mount.Interface, mountPath string) bool {
    	isTmpfsNoswapOptionSupportedHelper := func() bool {
    		if sysruntime.GOOS == "windows" {
    			return false
    		}
    
    		if inuserns.RunningInUserNS() {
    			// Turning off swap in unprivileged tmpfs mounts unsupported
    			// https://github.com/torvalds/linux/blob/v6.8/mm/shmem.c#L4004-L4011
    			// https://github.com/kubernetes/kubernetes/issues/125137
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 27 10:07:06 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  4. pkg/kubelet/cm/container_manager_linux.go

    		case KernelTunableModify:
    			klog.V(2).InfoS("Updating kernel flag", "flag", flag, "expectedValue", expectedValue, "actualValue", val)
    			err = sysctl.SetSysctl(flag, expectedValue)
    			if err != nil {
    				if inuserns.RunningInUserNS() {
    					if utilfeature.DefaultFeatureGate.Enabled(kubefeatures.KubeletInUserNamespace) {
    						klog.V(2).InfoS("Updating kernel flag failed (running in UserNS, ignoring)", "flag", flag, "err", err)
    						continue
    					}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 21 10:18:16 UTC 2024
    - 35.1K bytes
    - Viewed (0)
  5. pkg/kubelet/kubelet.go

    		Kind:      "Node",
    		Name:      string(nodeName),
    		UID:       types.UID(nodeName),
    		Namespace: "",
    	}
    
    	oomWatcher, err := oomwatcher.NewWatcher(kubeDeps.Recorder)
    	if err != nil {
    		if inuserns.RunningInUserNS() {
    			if utilfeature.DefaultFeatureGate.Enabled(features.KubeletInUserNamespace) {
    				// oomwatcher.NewWatcher returns "open /dev/kmsg: operation not permitted" error,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 126.1K bytes
    - Viewed (0)
Back to top