Loading fs_mgr/fs_mgr_verity.cpp +9 −5 Original line number Diff line number Diff line Loading @@ -833,7 +833,7 @@ int fs_mgr_update_verity_state(fs_mgr_verity_state_callback callback) char fstab_filename[PROPERTY_VALUE_MAX + sizeof(FSTAB_PREFIX)]; const char *mount_point; char propbuf[PROPERTY_VALUE_MAX]; char *status; const char *status; int fd = -1; int i; int mode; Loading Loading @@ -883,10 +883,14 @@ int fs_mgr_update_verity_state(fs_mgr_verity_state_callback callback) verity_ioctl_init(io, mount_point, 0); if (ioctl(fd, DM_TABLE_STATUS, io)) { if (fstab->recs[i].fs_mgr_flags & MF_VERIFYATBOOT) { status = "V"; } else { ERROR("Failed to query DM_TABLE_STATUS for %s (%s)\n", mount_point, strerror(errno)); continue; } } status = &buffer[io->data_start + sizeof(struct dm_target_spec)]; Loading Loading @@ -945,11 +949,11 @@ int fs_mgr_setup_verity(struct fstab_rec *fstab) struct fec_handle *f = NULL; struct fec_verity_metadata verity; struct verity_table_params params = { .table = NULL }; bool verified_at_boot = false; alignas(dm_ioctl) char buffer[DM_BUF_SIZE]; struct dm_ioctl *io = (struct dm_ioctl *) buffer; char *mount_point = basename(fstab->mount_point); bool verified_at_boot = false; if (fec_open(&f, fstab->blk_device, O_RDONLY, FEC_VERITY_DISABLE, FEC_DEFAULT_ROOTS) < 0) { Loading Loading
fs_mgr/fs_mgr_verity.cpp +9 −5 Original line number Diff line number Diff line Loading @@ -833,7 +833,7 @@ int fs_mgr_update_verity_state(fs_mgr_verity_state_callback callback) char fstab_filename[PROPERTY_VALUE_MAX + sizeof(FSTAB_PREFIX)]; const char *mount_point; char propbuf[PROPERTY_VALUE_MAX]; char *status; const char *status; int fd = -1; int i; int mode; Loading Loading @@ -883,10 +883,14 @@ int fs_mgr_update_verity_state(fs_mgr_verity_state_callback callback) verity_ioctl_init(io, mount_point, 0); if (ioctl(fd, DM_TABLE_STATUS, io)) { if (fstab->recs[i].fs_mgr_flags & MF_VERIFYATBOOT) { status = "V"; } else { ERROR("Failed to query DM_TABLE_STATUS for %s (%s)\n", mount_point, strerror(errno)); continue; } } status = &buffer[io->data_start + sizeof(struct dm_target_spec)]; Loading Loading @@ -945,11 +949,11 @@ int fs_mgr_setup_verity(struct fstab_rec *fstab) struct fec_handle *f = NULL; struct fec_verity_metadata verity; struct verity_table_params params = { .table = NULL }; bool verified_at_boot = false; alignas(dm_ioctl) char buffer[DM_BUF_SIZE]; struct dm_ioctl *io = (struct dm_ioctl *) buffer; char *mount_point = basename(fstab->mount_point); bool verified_at_boot = false; if (fec_open(&f, fstab->blk_device, O_RDONLY, FEC_VERITY_DISABLE, FEC_DEFAULT_ROOTS) < 0) { Loading