lkml.org 
[lkml]   [2012]   [Feb]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH] selinux: init target class when add avc callback
    Date
    Target security class should be initialized when add avc callback.
    Although tclass is userless in callbacks now, but it may be used
    in the future .

    Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
    ---
    security/selinux/avc.c | 1 +
    1 files changed, 1 insertions(+), 0 deletions(-)

    diff --git a/security/selinux/avc.c b/security/selinux/avc.c
    index dca1c22..27495e6 100644
    --- a/security/selinux/avc.c
    +++ b/security/selinux/avc.c
    @@ -576,6 +576,7 @@ int avc_add_callback(int (*callback)(u32 event, u32 ssid, u32 tsid,
    c->events = events;
    c->ssid = ssid;
    c->tsid = tsid;
    + c->tclass = tclass;
    c->perms = perms;
    c->next = avc_callbacks;
    avc_callbacks = c;
    --
    1.7.9


    \
     
     \ /
      Last update: 2012-02-05 02:57    [W:0.019 / U:0.020 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site