All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 0/2] procfs/tasks: introduce per-task procfs hidepid= field
@ 2017-01-16 13:23 ` Djalal Harouni
  0 siblings, 0 replies; 68+ messages in thread
From: Djalal Harouni @ 2017-01-16 13:23 UTC (permalink / raw)
  To: linux-kernel, kernel-hardening
  Cc: Andrew Morton, Kees Cook, Lafcadio Wluiki, Djalal Harouni

From: Djalal Harouni <tixxdz@gmail.com>

Hi,

I'm sending this series again based on Lafcadio's previous patches.
I have also fixed some issues and tested the code.

This adds a new per-task hidepid= flag that is honored by procfs when
presenting /proc to the user, in addition to the existing hidepid= mount
option.

One suggested change to add 'ns_capable(CAP_SYS_ADMIN)||no_new_privs' test
before setting the hidepid was not included in this series, however I
can add it. This change was not incorporated since it may be good for
some setuid or even file capabilities programs to not access /proc, yes this
may influence setuid programs but I am not sure if this is really a
problem in this case. As stated I can add it if requested. Thanks!


v4 changes:
Patch 0001 procfs: use an enum for possible hidepid values
        * Was already acked and proposed to be added to -mm branch.

Patch 0002 procfs/tasks: add a simple per-task procfs hidepid= field
        * Document HidePid in Documentation/filesystem/proc.txt
        * Switch to max() as suggested by Kees Cook.
        * Fix compiler warnings
        * Check all prctl() arguments and fail if unused ones are set.
        * Make PR_GET_HIDEPID return the task hidpid value as a result
          of prctl() syscall.

^ permalink raw reply	[flat|nested] 68+ messages in thread

end of thread, other threads:[~2017-02-15  8:57 UTC | newest]

Thread overview: 68+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-16 13:23 [PATCH v4 0/2] procfs/tasks: introduce per-task procfs hidepid= field Djalal Harouni
2017-01-16 13:23 ` [kernel-hardening] " Djalal Harouni
2017-01-16 13:23 ` [PATCH v4 1/2] procfs: use an enum for possible hidepid values Djalal Harouni
2017-01-16 13:23   ` [kernel-hardening] " Djalal Harouni
2017-02-13 22:16   ` Kees Cook
2017-02-13 22:16     ` [kernel-hardening] " Kees Cook
2017-02-15  0:34     ` Andrew Morton
2017-02-15  0:34       ` [kernel-hardening] " Andrew Morton
2017-02-15  8:56       ` Djalal Harouni
2017-02-15  8:56         ` [kernel-hardening] " Djalal Harouni
2017-01-16 13:23 ` [PATCH v4 2/2] procfs/tasks: add a simple per-task procfs hidepid= field Djalal Harouni
2017-01-16 13:23   ` [kernel-hardening] " Djalal Harouni
2017-01-16 17:12   ` Djalal Harouni
2017-01-16 17:12     ` [kernel-hardening] " Djalal Harouni
     [not found]   ` <1484572984-13388-3-git-send-email-djalal-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-01-16 17:15     ` Djalal Harouni
     [not found]       ` <CAEiveUfDvSoW9Hy2Y_uxU2YQ+vR8OvXMqRhxAANTGG7QaQbJeg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-01-17 20:33         ` Andy Lutomirski
2017-01-18 22:50           ` Djalal Harouni
2017-01-18 22:50             ` [kernel-hardening] " Djalal Harouni
2017-01-18 23:35             ` Andy Lutomirski
2017-01-18 23:35               ` [kernel-hardening] " Andy Lutomirski
2017-01-18 23:35               ` Andy Lutomirski
2017-01-19 13:53               ` Djalal Harouni
2017-01-19 13:53                 ` [kernel-hardening] " Djalal Harouni
2017-01-19 13:53                 ` Djalal Harouni
2017-01-19 19:52                 ` Andy Lutomirski
2017-01-19 19:52                   ` [kernel-hardening] " Andy Lutomirski
2017-01-19 19:52                   ` Andy Lutomirski
2017-01-20 15:56                   ` Lafcadio Wluiki
2017-01-20 15:56                     ` [kernel-hardening] " Lafcadio Wluiki
2017-01-20 15:56                     ` Lafcadio Wluiki
2017-01-20 16:33                   ` Djalal Harouni
2017-01-20 16:33                     ` [kernel-hardening] " Djalal Harouni
2017-01-20 16:33                     ` Djalal Harouni
2017-01-21  0:53                     ` Andy Lutomirski
2017-01-21  0:53                       ` [kernel-hardening] " Andy Lutomirski
2017-01-21  0:53                       ` Andy Lutomirski
2017-01-23 11:46                       ` Djalal Harouni
2017-01-23 11:46                         ` [kernel-hardening] " Djalal Harouni
2017-01-23 11:46                         ` Djalal Harouni
2017-01-23 20:07                         ` Andy Lutomirski
2017-01-23 20:07                           ` [kernel-hardening] " Andy Lutomirski
2017-01-23 20:07                           ` Andy Lutomirski
2017-01-26 13:20                           ` Djalal Harouni
2017-01-26 13:20                             ` [kernel-hardening] " Djalal Harouni
2017-01-26 13:20                             ` Djalal Harouni
2017-02-10 14:40                       ` Lafcadio Wluiki
2017-02-10 14:40                         ` [kernel-hardening] " Lafcadio Wluiki
2017-02-10 14:40                         ` Lafcadio Wluiki
2017-02-10 16:18                         ` Andy Lutomirski
2017-02-10 16:18                           ` [kernel-hardening] " Andy Lutomirski
2017-02-10 16:18                           ` Andy Lutomirski
2017-01-20 15:44               ` Lafcadio Wluiki
2017-01-20 15:44                 ` [kernel-hardening] " Lafcadio Wluiki
2017-01-20 15:44                 ` Lafcadio Wluiki
2017-02-10 23:44               ` Kees Cook
2017-02-10 23:44                 ` [kernel-hardening] " Kees Cook
2017-02-10 23:44                 ` Kees Cook
2017-02-13 19:01                 ` Andy Lutomirski
2017-02-13 19:01                   ` [kernel-hardening] " Andy Lutomirski
2017-02-13 19:01                   ` Andy Lutomirski
2017-02-13 19:15                   ` Kees Cook
2017-02-13 19:15                     ` [kernel-hardening] " Kees Cook
2017-02-13 19:15                     ` Kees Cook
2017-02-14  4:11                     ` Christian Kujau
2017-02-14  4:11                       ` [kernel-hardening] " Christian Kujau
2017-02-14  4:11                       ` Christian Kujau
2017-01-16 18:24   ` [kernel-hardening] " Daniel Micay
2017-01-17  9:54     ` Lafcadio Wluiki

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.