Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.kernel > #72231
| From | Ben Hutchings <ben@decadent.org.uk> |
|---|---|
| Newsgroups | linux.debian.kernel |
| Subject | Re: User NS usage and attack surface mitigation on debian |
| Date | 2021-06-20 23:10 +0200 |
| Message-ID | <CscRz-4v7-5@gated-at.bofh.it> (permalink) |
| References | <Cqf7b-5i9-9@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
[Multipart message — attachments visible in raw view] - view raw
On Tue, 2021-06-15 at 13:04 +0200, HolyTaint wrote: > I stumbled upon this answer from three years ago ( > https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=898446) > "User namespaces *are* enabled - but by default, they can only be > created by root". Note that this default has been changed in the kernel version available in testing/unstable. > I need clarifications on that, cause I didn't quite know how > namespace management works. > I experimented a bit, from what I got it creates a namespace > originating from the user asking it, and using it as normal user was > disabled by default because it clearly adds lots of attack surface by > exposing code that would normally be used by just root. Also in this > little space there is a mapping between namespace users and > originating user > > What I didn't quite got is, does this patch allow creating namespaces > belonging to an user from root, thus avoiding the possibility of > privilege escalation, or having user namespaces running from > unprivileged users is a threat by itself? [...] If by "belonging to a user" you mean "user appears as uid 0 inside the user namespace, and may have some capabilities there" - then yes, it is possible for root to create a user namespace belonging to another user. (I don't know exactly how to do that, though.) Ben. -- Ben Hutchings The program is absolutely right; therefore, the computer must be wrong.
Back to linux.debian.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
User NS usage and attack surface mitigation on debian HolyTaint <holytaint@disroot.org> - 2021-06-15 13:10 +0200 Re: User NS usage and attack surface mitigation on debian HolyTaint <holytaint@disroot.org> - 2021-06-17 05:30 +0200 Re: User NS usage and attack surface mitigation on debian Ben Hutchings <ben@decadent.org.uk> - 2021-06-20 23:10 +0200
csiph-web