Home
last modified time | relevance | path

Searched refs:policy_size (Results 1 – 1 of 1) sorted by relevance

/fs/crypto/
Dpolicy.c525 size_t policy_size; in fscrypt_ioctl_get_policy_ex() local
529 BUILD_BUG_ON(offsetof(typeof(arg), policy_size) != 0); in fscrypt_ioctl_get_policy_ex()
530 BUILD_BUG_ON(offsetofend(typeof(arg), policy_size) != in fscrypt_ioctl_get_policy_ex()
537 policy_size = fscrypt_policy_size(policy); in fscrypt_ioctl_get_policy_ex()
539 if (copy_from_user(&arg, uarg, sizeof(arg.policy_size))) in fscrypt_ioctl_get_policy_ex()
542 if (policy_size > arg.policy_size) in fscrypt_ioctl_get_policy_ex()
544 arg.policy_size = policy_size; in fscrypt_ioctl_get_policy_ex()
546 if (copy_to_user(uarg, &arg, sizeof(arg.policy_size) + policy_size)) in fscrypt_ioctl_get_policy_ex()