• M
    ima: always maintain counters · e950598d
    Mimi Zohar 提交于
    commit 8262bb85da allocated the inode integrity struct (iint) before any
    inodes were created. Only after IMA was initialized in late_initcall were
    the counters updated. This patch updates the counters, whether or not IMA
    has been initialized, to resolve 'imbalance' messages.
    
    This patch fixes the bug as reported in bugzilla: 15673.  When the i915
    is builtin, the ring_buffer is initialized before IMA, causing the
    imbalance message on suspend.
    Reported-by: NThomas Meyer <thomas@m3y3r.de>
    Signed-off-by: NMimi Zohar <zohar@linux.vnet.ibm.com>
    Tested-by: NThomas Meyer <thomas@m3y3r.de>
    Tested-by: David Safford<safford@watson.ibm.com>
    Cc: Stable Kernel <stable@kernel.org>
    Signed-off-by: NJames Morris <jmorris@namei.org>
    e950598d
ima_main.c 8.4 KB