Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1574668

Re: [RFC/PATCH 1/3] security: add the security_task_copy() hook

From Djalal Harouni <tixxdz@gmail.com>
Newsgroups linux.kernel
Subject Re: [RFC/PATCH 1/3] security: add the security_task_copy() hook
Date 2017-02-06 14:20 +0100
Message-ID <t7Rn3-5po-3@gated-at.bofh.it> (permalink)
References <t6t3r-6OU-15@gated-at.bofh.it> <t6t3r-6OU-13@gated-at.bofh.it> <t7PbA-3SX-19@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Mon, Feb 6, 2017 at 11:49 AM, Tetsuo Handa
<penguin-kernel@i-love.sakura.ne.jp> wrote:
> Djalal Harouni wrote:
>> To achieve the above we add the security_task_copy() hook that allows us
>> to clone the Timgad context of parent into child task_struct.
>>
>> The security hook can also be used by new LSMs after the child task has
>> done some initialization, this way they won't clash with the major LSMs.
>> The situation is not really well, this hook allows us to introduce a
>> stackable LSM that can be easily used with all other LSMs.
>
> We are already planning to revive security_task_alloc() hook (probably in Linux 4.12)
> ( news://news.gmane.org:119/201701101958.JAD43709.OtJSOQFVFOLHMF@I-love.SAKURA.ne.jp ).
> Is security_task_alloc() called too early for your case?
>
> (Well, we want to configure http archive like marc.info ?)

I found this marc.info
http://marc.info/?l=linux-security-module&m=129584883703846

Oups from 2011! your email pretty sum up all the approach that I took
:-) , and yes it was not that obvious... so I did it that way where
the data is kept in an external table. Also yes beside TOMOYO I also
need that hook for the various reasons that are listed in that thread.

Thanks!

-- 
tixxdz

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[RFC/PATCH 1/3] security: add the security_task_copy() hook Djalal Harouni <tixxdz@gmail.com> - 2017-02-02 18:10 +0100
  Re: [RFC/PATCH 1/3] security: add the security_task_copy() hook Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> - 2017-02-06 12:00 +0100
    Re: [RFC/PATCH 1/3] security: add the security_task_copy() hook Djalal Harouni <tixxdz@gmail.com> - 2017-02-06 13:50 +0100
    Re: [RFC/PATCH 1/3] security: add the security_task_copy() hook Djalal Harouni <tixxdz@gmail.com> - 2017-02-06 14:20 +0100

csiph-web