• Eric Biggers's avatar
    fs-verity: add the hook for file ->open() · fd2d1acf
    Eric Biggers authored
    Add the fsverity_file_open() function, which prepares an fs-verity file
    to be read from.  If not already done, it loads the fs-verity descriptor
    from the filesystem and sets up an fsverity_info structure for the inode
    which describes the Merkle tree and contains the file measurement.  It
    also denies all attempts to open verity files for writing.
    
    This commit also begins the include/linux/fsverity.h header, which
    declares the interface between fs/verity/ and filesystems.
    Reviewed-by: default avatarTheodore Ts'o <tytso@mit.edu>
    Reviewed-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
    Signed-off-by: default avatarEric Biggers <ebiggers@google.com>
    fd2d1acf
Makefile 105 Bytes