[lkml]   [2010]   [Feb]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH] LSM: add static to security_ops variable
    On Sun, Feb 07, 2010 at 07:24:44PM +0800, wzt wzt wrote:
    > security_ops was declared as a global variable, so other drivers or
    > kernel code can easily change its value, like:
    > extern struct security_operations *security_ops;
    > security_ops = NULL;
    > then insmod this driver immediately, it will get an oops. Other evil
    > drivers can aslo fake this variable as extern.

    Evil drivers can do lots of things, if you can load a kernel module on
    the system, all bets are off. Just making this a private variable does
    not mean much.

    What external module are you trying to keep from using this variable?


    greg k-h

     \ /
      Last update: 2010-02-07 15:21    [W:0.019 / U:0.060 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site