Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1279970
| From | Willy Tarreau <w@1wt.eu> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 2.6.32 19/38] [PATCH 19/38] pagemap: hide physical addresses from non-privileged users |
| Date | 2015-11-30 16:20 +0100 |
| Message-ID | <qAypc-5id-11@gated-at.bofh.it> (permalink) |
| References | <qAikq-3oq-27@gated-at.bofh.it> <qAlV0-5pM-11@gated-at.bofh.it> <qAqKZ-qe-3@gated-at.bofh.it> <qAuYh-2X2-1@gated-at.bofh.it> <qAy5Q-4Vq-21@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Mon, Nov 30, 2015 at 02:55:20PM +0000, Ben Hutchings wrote: > On Mon, 2015-11-30 at 12:30 +0100, Willy Tarreau wrote: > > On Mon, Nov 30, 2015 at 08:01:36AM +0100, Willy Tarreau wrote: > > > On Mon, Nov 30, 2015 at 01:54:22AM +0000, Ben Hutchings wrote: > > > > On Sun, 2015-11-29 at 22:47 +0100, Willy Tarreau wrote: > > > > This is wrong; see > > > > <https://marc.info/?l=linux-api&m=143144321020852&w=2>. > > > > > > Damned, and I now remember this discussion. The worst thing is that > > > I purposely booted a machine to test the fix and was happy with it, > > > I forgot this point :-( > > > > > > > For 2.6.32 perhaps you could retain the capability check at open time > > > > but store the result in private state for use at read time. > > > > > > I'll see if it is possible to opencode security_capable() with 2.6.32's > > > infrastructure, and how far this brings us. Or maybe we should even drop > > > this one completely and leave pagemap readable only for superuser on > > > 2.6.32, it doesn't seem to be that big of a deal either. > > > > It was easy enough to open-code security_capable() in the end. I've > > tested this version which works fine for me here. If that's OK for you > > I'll emit an -rc2 with the last two patches. > [...] > > + /* do not disclose physical addresses: attack vector */ > > + pm.show_pfn = !cap_capable(current, file->f_cred, CAP_SYS_ADMIN, SECURITY_CAP_AUDIT); > [...] > > But this bypasses SELinux's additional restrictions on capabilities. Got it, I didn't think about it. > I think it would be better to cherry-pick this first: > > commit 6037b715d6fab139742c3df8851db4c823081561 > Author: Chris Wright <chrisw@sous-sol.org> > Date: Wed Feb 9 22:11:51 2011 -0800 > > security: add cred argument to security_capable() > > and then you can pass file->f_cred to security_capable(). That makes sense indeed, the patch should fit nicely. Thanks for the pointer. Willy -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH 2.6.32 19/38] [PATCH 19/38] pagemap: hide physical addresses from non-privileged users Willy Tarreau <w@1wt.eu> - 2015-11-29 23:10 +0100
Re: [PATCH 2.6.32 19/38] [PATCH 19/38] pagemap: hide physical addresses from non-privileged users Ben Hutchings <ben@decadent.org.uk> - 2015-11-30 03:00 +0100
Re: [PATCH 2.6.32 19/38] [PATCH 19/38] pagemap: hide physical addresses from non-privileged users Willy Tarreau <w@1wt.eu> - 2015-11-30 08:10 +0100
Re: [PATCH 2.6.32 19/38] [PATCH 19/38] pagemap: hide physical addresses from non-privileged users Willy Tarreau <w@1wt.eu> - 2015-11-30 12:40 +0100
Re: [PATCH 2.6.32 19/38] [PATCH 19/38] pagemap: hide physical addresses from non-privileged users Konstantin Khlebnikov <khlebnikov@yandex-team.ru> - 2015-11-30 13:00 +0100
Re: [PATCH 2.6.32 19/38] [PATCH 19/38] pagemap: hide physical addresses from non-privileged users Willy Tarreau <w@1wt.eu> - 2015-11-30 13:20 +0100
Re: [PATCH 2.6.32 19/38] [PATCH 19/38] pagemap: hide physical addresses from non-privileged users Ben Hutchings <ben@decadent.org.uk> - 2015-11-30 16:00 +0100
Re: [PATCH 2.6.32 19/38] [PATCH 19/38] pagemap: hide physical addresses from non-privileged users Willy Tarreau <w@1wt.eu> - 2015-11-30 16:20 +0100
csiph-web