Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1568178lqa; Mon, 29 Apr 2024 12:07:56 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWArjnQOh72v56RmM6XNV8Jdq7WJnLE8sx8k/y5bi7dtpha+0+yKv7thLGxNTJvvW9EYQE3edxTp0ctk79Arrl8wpNflZhl34Bl43gzEQ== X-Google-Smtp-Source: AGHT+IGbwRcEBaADU3XNjsTCaZ7fITvoGbagArwuFLIOjAXTd5xiMVKA6iOCN2XREy6Y0DlZvliD X-Received: by 2002:a50:d688:0:b0:56e:3293:3777 with SMTP id r8-20020a50d688000000b0056e32933777mr10151098edi.17.1714417676230; Mon, 29 Apr 2024 12:07:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1714417676; cv=none; d=google.com; s=arc-20160816; b=CSA3u2ZJrI+rCU6W3pt+06zPSxkyQPoKevf+aW5k3KkBMvSoe5eqPaQ01DRMggB92P 39EQDtRnT4bs3xK2dGprNiZy2HrATDZqsuTTR4VZoaNSgjXKhC3+6zeON7ak7gaEhoxK jqW5YeZfdAzZvLN9vYOnK3WiSMsXclDmT+NINze4HgfKDYv6t2U0WCEz5EiTmK66+pGy SlrRJV9KzH/xSok02n2fd9elYzZ0oUEq55sSqSw6NQT6/J1pLYaP/sUISnN4QPJ8WY3e 2UmGeHmDYqbTiJXMSyZ6dVPluGkKpsKQ4tYNLvmOfYogtQW1V/jtNKg8xI50xVfWmw7e xIXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=subject:content-transfer-encoding:in-reply-to:organization :autocrypt:from:content-language:references:to:user-agent :mime-version:date:message-id:dkim-signature:delivered-to:reply-to :list-id:list-subscribe:list-unsubscribe:list-help:list-post :precedence:mailing-list; bh=YNI9WLILehCWBpvHD5IL6kdrV4+hQ4h9iFfcfBeIcBY=; fh=9jsPTyo6edd9xvAeG+KFFrRrXMmgB/RdwUKOrvy9dcA=; b=IIFOrFT+op+mSnfFJOo1M2dW36omnMY+OILlLlPsFmdDltBCEBnTvKNcf7oGEMW77B cTiH8TcF68UpqGcR9YkYOsVG8NG4vjw8J1l4vxJGUI2JfFhXJ1p3IKqO1/u0fvcnVlzM xJi6GZ7GoeE5TUFRPjf82xxqOoL51NbwozxkF1onhdXcOR9UhLlCOZZMcnEOy3v54NPf zl1RscddtlQI4Vx92HOQ7XUfCiEgxSpEvsr2/2rq7JDfwZBhuNxZ8Ffbc2t5HS1oVE6i 5fZKRM5fwRhEf/5TCAnpsEGoN5CpzVATQI2U12D+hohCOFeF9ApS4TacqJ2lb2npeaVu xdXQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=mXE2AP6d; spf=pass (google.com: domain of oss-security-return-30097-linux.lists.archive=gmail.com@lists.openwall.com designates 193.110.157.125 as permitted sender) smtp.mailfrom="oss-security-return-30097-linux.lists.archive=gmail.com@lists.openwall.com"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from second.openwall.net (second.openwall.net. [193.110.157.125]) by mx.google.com with SMTP id r7-20020aa7cfc7000000b0056e0988e60csi14013404edy.386.2024.04.29.12.07.56 for ; Mon, 29 Apr 2024 12:07:56 -0700 (PDT) Received-SPF: pass (google.com: domain of oss-security-return-30097-linux.lists.archive=gmail.com@lists.openwall.com designates 193.110.157.125 as permitted sender) client-ip=193.110.157.125; Authentication-Results: mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=mXE2AP6d; spf=pass (google.com: domain of oss-security-return-30097-linux.lists.archive=gmail.com@lists.openwall.com designates 193.110.157.125 as permitted sender) smtp.mailfrom="oss-security-return-30097-linux.lists.archive=gmail.com@lists.openwall.com"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (qmail 9316 invoked by uid 550); 29 Apr 2024 19:07:34 -0000 Mailing-List: contact oss-security-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: oss-security@lists.openwall.com Delivered-To: mailing list oss-security@lists.openwall.com Received: (qmail 9298 invoked from network); 29 Apr 2024 19:07:34 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1714417646; bh=YNI9WLILehCWBpvHD5IL6kdrV4+hQ4h9iFfcfBeIcBY=; h=Message-ID:Date:MIME-Version:Subject:To:References:From: In-Reply-To:Content-Type; b=mXE2AP6d7308UBxMYg4qFnTkSzfrSrWjPFh9RGRCRlxelnMB9b89wY9cIUaXUNvQd RntSObflvWoDjgJHAhYwYrrB74bSNgyO3Sd7THcW/HQEQByiQrpCegba7GtB+n+r02 mpUTpoJT/lLSyaEI/rzG3om2niatGquAsNv+IoZ4gRaCNv3Vw0BsRNqEPLapgrnpY3 7N1KHRTewuxilav22I7NU28Jd2bkBzVJqSzUnDn1tTUeMzSzr0DLTIKwwvK1ZQXpdB pq9GNlzSarImGnzrlR7J0VqMNaEO0C2xOS27jNaNcNeg7VS1eV5vfQRvBkQdBL9bnB I/vnEiGM6avmA== Message-ID: <98d8462c-e881-403a-80cb-3800d98e4c01@canonical.com> Date: Mon, 29 Apr 2024 12:07:23 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird To: oss-security@lists.openwall.com References: <20240414190855.GA12716@openwall.com> <354b913bc1c154c1e3a2fc34ed8ed6b0d4641f11.camel@canonical.com> Content-Language: en-US From: John Johansen Autocrypt: addr=john.johansen@canonical.com; keydata= xsFNBE5mrPoBEADAk19PsgVgBKkImmR2isPQ6o7KJhTTKjJdwVbkWSnNn+o6Up5knKP1f49E BQlceWg1yp/NwbR8ad+eSEO/uma/K+PqWvBptKC9SWD97FG4uB4/caomLEU97sLQMtnvGWdx rxVRGM4anzWYMgzz5TZmIiVTZ43Ou5VpaS1Vz1ZSxP3h/xKNZr/TcW5WQai8u3PWVnbkjhSZ PHv1BghN69qxEPomrJBm1gmt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hpUmO4sgs9SWeEWprt9tWrRlCNuJX+u3aMEQ12b2lslnoaOelghwBs8IJ r998vj9JBFJgdeiEaKJLjLmMFOYrmW197As7DTZ+R7Ef4gkWusYFcNKDqfZKDGef740Xfh9d yb2mJrDeYqwgKb7SF02Hhp8ZnohZXw8ba16ihUOnh1iKH77Ff9dLzMEJzU73DifOU/aArOWp JZuGJamJ9EkEVrha0B4lN1dh3fuP8EjhFZaGfLDtoA80aPffK0Yc1R/pGjb+O2Pi0XXL9AVe qMkb/AaOl21F9u1SOosciy98800mr/3nynvid0AKJ2VZIfOP46nboqlsWebA07SmyJSyeG8c XA87+8BuXdGxHn7RGj6G+zZwSZC6/2v9sOUJ+nOna3dwr6uHFSqKw7HwNl/PUGeRqgJEVu++ +T7sv9+iY+e0Y+SolyJgTxMYeRnDWE6S77g6gzYYHmcQOWP7ZMX+MtD4SKlf0+Q8li/F9GUL p0rw8op9f0p1+YAhyAd+dXWNKf7zIfZ2ME+0qKpbQnr1oizLHuJX/Telo8KMmHter28DPJ03 lT9Q Organization: Canonical In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [oss-security] Re: Linux: Disabling network namespaces On 4/19/24 12:01, nightmare.yeah27@aceecat.org wrote: > On Wed, Apr 17, 2024 at 09:52:10AM GMT, Georgia Garcia wrote: > >> I just wanted to add that in the Ubuntu Noble Numbat release we are >> using AppArmor to restrict unprivileged user namespaces. > >> Applications that don't have an AppArmor profile will use a default >> profile which denies the use of capabilities within the user >> namespace. Applications that need to use capabilities will have to >> be confined by a profile. Since we understand that creating an >> AppArmor profile might not be a trivial task for large programs, we >> introduced the "unconfined" flag which makes the profile act as if >> it were unconfined from the perspective of AppArmor, allowing all >> operations. > >> There are more details here: > >> https://discourse.ubuntu.com/t/noble-numbat-release-notes/39890#unprivileged-user-namespace-restrictions-13 > > I wonder if this (at least the kernel part of it) is already in the > latest PopOS rolling updates? I see some nodes in /proc/sys/kernel > that look very related. > partially. The ability to straight up deny user namespace creation is in the kernel already. The ability to transition the profile and the default behavior for unconfined is not. In Ubuntu the behavior for the unconfined profile is hard coded as there is still some work to be done around allowing this to be replaced easily in policy (its possible but has some limitations/costs that were not acceptable). Once the work to make replacing unconfined easy is done that will be upstreamed and the hard coded behavior will get dropped.