Re: Locking task->security

From: Chris Wright (chrisat_private)
Date: Thu Aug 30 2001 - 15:10:12 PDT

  • Next message: Seth Arnold: "Re: Locking task->security"

    * richard offer (offerat_private) wrote:
    > 
    > \begin{A non-kernel person stupid question}
    > 
    > I have my own blob in current->security, it comprises a bunch of data that
    > I think I need to lock access to.
    > 
    > My naive options appear to be :-
    > 
    >     1) lock the whole task structure (very bad)
    >     2) add a new security specific lock to the task to protect access to
    > the security blob
    >     3) add a lock inside the structure hanging off security (bad)
    >     4) add a global policy specific lock (bad)
    > 
    > 2 seems to be the most obvious one to me, but that raises the question why
    > it doesn't seem to have been mentioned before, what am I missing ?
    
    why do you say 3) is bad?  for example the mm_struct that hangs off
    the task_struct has a lock in it.
    
    -chris
    
    _______________________________________________
    linux-security-module mailing list
    linux-security-moduleat_private
    http://mail.wirex.com/mailman/listinfo/linux-security-module
    



    This archive was generated by hypermail 2b30 : Thu Aug 30 2001 - 15:19:36 PDT