• Petko Manolov's avatar
    IMA: policy can now be updated multiple times · 38d859f9
    Petko Manolov authored
    The new rules get appended to the original policy, forming a queue.
    The new rules are first added to a temporary list, which on error
    get released without disturbing the normal IMA operations.  On
    success both lists (the current policy and the new rules) are spliced.
    
    IMA policy reads are many orders of magnitude more numerous compared to
    writes, the match code is RCU protected.  The updater side also does
    list splice in RCU manner.
    Signed-off-by: default avatarPetko Manolov <petkan@mip-labs.com>
    Signed-off-by: default avatarMimi Zohar <zohar@linux.vnet.ibm.com>
    38d859f9
ima_fs.c 10.1 KB