• M
    fix ima breakage · 8eb988c7
    Mimi Zohar 提交于
    The "Untangling ima mess, part 2 with counters" patch messed
    up the counters.  Based on conversations with Al Viro, this patch
    streamlines ima_path_check() by removing the counter maintaince.
    The counters are now updated independently, from measuring the file,
    in __dentry_open() and alloc_file() by calling ima_counts_get().
    ima_path_check() is called from nfsd and do_filp_open().
    It also did not measure all files that should have been measured.
    Reason: ima_path_check() got bogus value passed as mask.
    [AV: mea culpa]
    [AV: add missing nfsd bits]
    Signed-off-by: NMimi Zohar <zohar@us.ibm.com>
    Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
    8eb988c7
namei.c 70.5 KB