Lines Matching refs:arg
158 const struct fsverity_enable_arg *arg) in enable_verity() argument
164 size_t desc_size = sizeof(*desc) + arg->sig_size; in enable_verity()
173 desc->hash_algorithm = arg->hash_algorithm; in enable_verity()
174 desc->log_blocksize = ilog2(arg->block_size); in enable_verity()
177 if (arg->salt_size && in enable_verity()
179 (const u8 __user *)(uintptr_t)arg->salt_ptr, in enable_verity()
180 arg->salt_size)) { in enable_verity()
184 desc->salt_size = arg->salt_size; in enable_verity()
187 if (arg->sig_size && in enable_verity()
189 (const u8 __user *)(uintptr_t)arg->sig_ptr, in enable_verity()
190 arg->sig_size)) { in enable_verity()
194 desc->sig_size = cpu_to_le32(arg->sig_size); in enable_verity()
200 arg->hash_algorithm, in enable_verity()
251 if (arg->sig_size) in enable_verity()
253 arg->sig_size); in enable_verity()
302 struct fsverity_enable_arg arg; in fsverity_ioctl_enable() local
305 if (copy_from_user(&arg, uarg, sizeof(arg))) in fsverity_ioctl_enable()
308 if (arg.version != 1) in fsverity_ioctl_enable()
311 if (arg.__reserved1 || in fsverity_ioctl_enable()
312 memchr_inv(arg.__reserved2, 0, sizeof(arg.__reserved2))) in fsverity_ioctl_enable()
315 if (arg.block_size != PAGE_SIZE) in fsverity_ioctl_enable()
318 if (arg.salt_size > FIELD_SIZEOF(struct fsverity_descriptor, salt)) in fsverity_ioctl_enable()
321 if (arg.sig_size > FS_VERITY_MAX_SIGNATURE_SIZE) in fsverity_ioctl_enable()
352 err = enable_verity(filp, &arg); in fsverity_ioctl_enable()