• P
    IMA: policy can now be updated multiple times · 38d859f9
    Petko Manolov 提交于
    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: NPetko Manolov <petkan@mip-labs.com>
    Signed-off-by: NMimi Zohar <zohar@linux.vnet.ibm.com>
    38d859f9
ima_policy.c 22.1 KB