Lines Matching defs:policy
410 struct f2fs_fscrypt_policy policy;
442 policy.version = 0;
443 policy.contents_encryption_mode =
445 policy.filenames_encryption_mode =
447 policy.flags = int_log2(pad >> 2);
448 memcpy(policy.master_key_descriptor, salt->key_desc,
450 rc = ioctl(fd, F2FS_IOC_SET_ENCRYPTION_POLICY, &policy);
453 printf("Error [%s] setting policy.\nThe key descriptor "
699 "set the policy of those directories to use the key just entered by\n" \
760 #define set_policy_desc "sets a policy for directories"
762 "f2fscrypt set_policy policy path ... \n\n" \
763 "Sets the policy for the directories specified on the command line.\n" \
764 "All directories must be empty to set the policy; if the directory\n" \
765 "already has a policy established, f2fscrypt will validate that it the\n" \
766 "policy matches what was specified. A policy is an encryption key\n" \
807 "Gets the policy for the directories specified on the command line.\n"
811 struct f2fs_fscrypt_policy policy;
833 rc = ioctl(fd, F2FS_IOC_GET_ENCRYPTION_POLICY, &policy);
836 printf("Error getting policy for %s: %s\n",
842 printf("%02x", (unsigned char) policy.master_key_descriptor[j]);