Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1578518
| From | Lafcadio Wluiki <wluikil@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v4 2/2] procfs/tasks: add a simple per-task procfs hidepid= field |
| Date | 2017-02-10 15:50 +0100 |
| Message-ID | <t9kGm-4F0-7@gated-at.bofh.it> (permalink) |
| References | (5 earlier) <t17ZE-2aa-19@gated-at.bofh.it> <t1lpT-2eh-1@gated-at.bofh.it> <t1r2n-5LK-11@gated-at.bofh.it> <t1Koh-19S-19@gated-at.bofh.it> <t1Sc9-5SH-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Sat, Jan 21, 2017 at 1:53 AM, Andy Lutomirski <luto@amacapital.net> wrote: > I agree that the kernel change to do it per task is very simple. But > this is an unfortunate slippery slope. What if you want to block off > everything in /proc that isn't associated with a PID? What if you > want to suppress /sys access? What if you want ot block *all* > non-current PIDs from being revealed in /proc? What if you want to > hide /proc/PID/cmdline? These are all what-ifs that noone was interested in so far. I have a very specific itch I want to scratch, and I found a reasonably generic concept of exposing it. But now you are trying to lead this all down onto a paths asking for features noone is actually really interested in. > I think that the right solution here is to fix procfs to understand > per-superblock mount options. Andy, this is really not helpful. Doing that is far from easy, that's a major undertaking: asking us to rework procfs in such a major way I only can understand as an indirect way for you to say "go away" to us... Expecting newcomers to kernel work to basically clean up an entire kernel subsystem, dealing with all the politics involved is just not going to work. And again: I am very sure the proposed prctl() based solution is actually much much nicer than any procfs superblock based one, since it works naturally, and easily for unprivileged processes too! Anything that requires mount options means privileges are required in some form or another. Yes userns would open that up, but that comes with a huge amount of additional problems. Anyway, I understand it is your intention to derail this. I can accept that. It's a pity though. L.
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
Re: [PATCH v4 2/2] procfs/tasks: add a simple per-task procfs hidepid= field Lafcadio Wluiki <wluikil@gmail.com> - 2017-02-10 15:50 +0100 Re: [PATCH v4 2/2] procfs/tasks: add a simple per-task procfs hidepid= field Andy Lutomirski <luto@amacapital.net> - 2017-02-10 19:20 +0100
csiph-web