From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751155AbeBUTwh (ORCPT ); Wed, 21 Feb 2018 14:52:37 -0500 Received: from mail-io0-f171.google.com ([209.85.223.171]:45162 "EHLO mail-io0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750738AbeBUTwf (ORCPT ); Wed, 21 Feb 2018 14:52:35 -0500 X-Google-Smtp-Source: AG47ELttlzWT/0Q5zK6Pmo1/DPc9eE+LLJp1DejMo4eHdfcDQOoeIpLeDiSzjdK9IZYIR+TJYz12ANCv+fLTLTS3GC4= MIME-Version: 1.0 In-Reply-To: <20180221182104.GI3231@tassilo.jf.intel.com> References: <20180215182208.35003-2-joe.konno@linux.intel.com> <6680a760-eb30-4daf-2dad-a9628f1c15a8@kernel.org> <20180220211849.fqjb6rdmypl6opir@agluck-desk> <20180220233008.55rfm7zw62hrao5p@agluck-desk> <3908561D78D1C84285E8C5FCA982C28F7B37DE1B@ORSMSX110.amr.corp.intel.com> <20180221182104.GI3231@tassilo.jf.intel.com> From: Linus Torvalds Date: Wed, 21 Feb 2018 11:52:33 -0800 X-Google-Sender-Auth: 0M1s4uRWixnZBS5V2lUwi6_uW3c Message-ID: Subject: Re: [PATCH 1/2] fs/efivarfs: restrict inode permissions To: Andi Kleen Cc: Ard Biesheuvel , "Luck, Tony" , Joe Konno , "linux-efi@vger.kernel.org" , Linux Kernel Mailing List , Jeremy Kerr , Matthew Garrett , Peter Jones , Andy Lutomirski , James Bottomley Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 21, 2018 at 10:21 AM, Andi Kleen wrote: > > How about uid name spaces? Someone untrusted in a container could > create a lot of uids and switch between them. Anybody who does that deserves whatever the hell they get. You can already blow out a lot of other resources that way. If you can create users indiscriminately enough, you can bypass most other resource limits too. If you think containers protect against security issues from untrusted users, I have a bridge to sell you. Linus