Lines Matching refs:bdev
482 init_debug("bdev blob size = %d\n", blob_sizes.lbs_bdev);
818 * @bdev: the block_device that needs a blob
824 static int lsm_bdev_alloc(struct block_device *bdev)
827 bdev->bd_security = NULL;
831 bdev->bd_security = kzalloc(blob_sizes.lbs_bdev, GFP_KERNEL);
832 if (!bdev->bd_security)
5839 * @bdev: block device
5841 * Allocate and attach a security structure to @bdev->bd_security. The
5842 * security field is initialized to NULL when the bdev structure is
5847 int security_bdev_alloc(struct block_device *bdev)
5851 rc = lsm_bdev_alloc(bdev);
5855 rc = call_int_hook(bdev_alloc_security, bdev);
5857 security_bdev_free(bdev);
5865 * @bdev: block device
5867 * Deallocate the bdev security structure and set @bdev->bd_security to NULL.
5869 void security_bdev_free(struct block_device *bdev)
5871 if (!bdev->bd_security)
5874 call_void_hook(bdev_free_security, bdev);
5876 kfree(bdev->bd_security);
5877 bdev->bd_security = NULL;
5883 * @bdev: block device
5888 * Register a verified integrity measurement of a bdev with LSMs.
5908 int security_bdev_setintegrity(struct block_device *bdev,
5912 return call_int_hook(bdev_setintegrity, bdev, type, value, size);