Searched refs:policy (Results 1 – 15 of 15) sorted by relevance
/fs/crypto/ |
D | policy.c | 88 static bool supported_iv_ino_lblk_policy(const struct fscrypt_policy_v2 *policy, in supported_iv_ino_lblk_policy() argument 103 if (policy->contents_encryption_mode != FSCRYPT_MODE_AES_256_XTS) { in supported_iv_ino_lblk_policy() 138 static bool fscrypt_supported_v1_policy(const struct fscrypt_policy_v1 *policy, in fscrypt_supported_v1_policy() argument 141 if (!fscrypt_valid_enc_modes_v1(policy->contents_encryption_mode, in fscrypt_supported_v1_policy() 142 policy->filenames_encryption_mode)) { in fscrypt_supported_v1_policy() 145 policy->contents_encryption_mode, in fscrypt_supported_v1_policy() 146 policy->filenames_encryption_mode); in fscrypt_supported_v1_policy() 150 if (policy->flags & ~(FSCRYPT_POLICY_FLAGS_PAD_MASK | in fscrypt_supported_v1_policy() 153 policy->flags); in fscrypt_supported_v1_policy() 157 if ((policy->flags & FSCRYPT_POLICY_FLAG_DIRECT_KEY) && in fscrypt_supported_v1_policy() [all …]
|
D | fscrypt_private.h | 120 static inline int fscrypt_policy_size(const union fscrypt_policy *policy) in fscrypt_policy_size() argument 122 switch (policy->version) { in fscrypt_policy_size() 124 return sizeof(policy->v1); in fscrypt_policy_size() 126 return sizeof(policy->v2); in fscrypt_policy_size() 133 fscrypt_policy_contents_mode(const union fscrypt_policy *policy) in fscrypt_policy_contents_mode() argument 135 switch (policy->version) { in fscrypt_policy_contents_mode() 137 return policy->v1.contents_encryption_mode; in fscrypt_policy_contents_mode() 139 return policy->v2.contents_encryption_mode; in fscrypt_policy_contents_mode() 146 fscrypt_policy_fnames_mode(const union fscrypt_policy *policy) in fscrypt_policy_fnames_mode() argument 148 switch (policy->version) { in fscrypt_policy_fnames_mode() [all …]
|
D | keysetup.c | 67 select_encryption_mode(const union fscrypt_policy *policy, in select_encryption_mode() argument 73 return &fscrypt_modes[fscrypt_policy_contents_mode(policy)]; in select_encryption_mode() 76 return &fscrypt_modes[fscrypt_policy_fnames_mode(policy)]; in select_encryption_mode() 575 const union fscrypt_policy *policy, in fscrypt_setup_encryption_info() argument 593 crypt_info->ci_policy = *policy; in fscrypt_setup_encryption_info() 661 union fscrypt_policy policy; in fscrypt_get_encryption_info() local 674 res = fscrypt_policy_from_context(&policy, &ctx, res); in fscrypt_get_encryption_info() 683 if (!fscrypt_supported_policy(&policy, inode)) { in fscrypt_get_encryption_info() 689 res = fscrypt_setup_encryption_info(inode, &policy, in fscrypt_get_encryption_info() 725 const union fscrypt_policy *policy; in fscrypt_prepare_new_inode() local [all …]
|
D | hooks.c | 197 const union fscrypt_policy *policy; in fscrypt_prepare_symlink() local 204 policy = fscrypt_policy_to_inherit(dir); in fscrypt_prepare_symlink() 205 if (policy == NULL) { in fscrypt_prepare_symlink() 213 if (IS_ERR(policy)) in fscrypt_prepare_symlink() 214 return PTR_ERR(policy); in fscrypt_prepare_symlink() 227 if (!fscrypt_fname_encrypted_size(policy, len, in fscrypt_prepare_symlink()
|
D | Makefile | 13 policy.o
|
D | fname.c | 260 bool fscrypt_fname_encrypted_size(const union fscrypt_policy *policy, in fscrypt_fname_encrypted_size() argument 264 int padding = 4 << (fscrypt_policy_flags(policy) & in fscrypt_fname_encrypted_size()
|
/fs/cifs/ |
D | netlink.c | 51 .policy = cifs_genl_policy,
|
/fs/sysfs/ |
D | Kconfig | 18 delegating policy decisions, like persistently naming devices.
|
/fs/f2fs/ |
D | data.c | 2496 unsigned int policy = SM_I(sbi)->ipu_policy; in check_inplace_update_policy() local 2498 if (policy & (0x1 << F2FS_IPU_HONOR_OPU_WRITE) && in check_inplace_update_policy() 2501 if (policy & (0x1 << F2FS_IPU_FORCE)) in check_inplace_update_policy() 2503 if (policy & (0x1 << F2FS_IPU_SSR) && f2fs_need_SSR(sbi)) in check_inplace_update_policy() 2505 if (policy & (0x1 << F2FS_IPU_UTIL) && in check_inplace_update_policy() 2508 if (policy & (0x1 << F2FS_IPU_SSR_UTIL) && f2fs_need_SSR(sbi) && in check_inplace_update_policy() 2515 if (policy & (0x1 << F2FS_IPU_ASYNC) && in check_inplace_update_policy() 2522 if (policy & (0x1 << F2FS_IPU_FSYNC) && in check_inplace_update_policy()
|
D | super.c | 520 if (is_remount && !F2FS_OPTION(sbi).dummy_enc_policy.policy) { in f2fs_set_test_dummy_encryption() 3066 return F2FS_OPTION(F2FS_SB(sb)).dummy_enc_policy.policy; in f2fs_get_dummy_policy()
|
/fs/hugetlbfs/ |
D | inode.c | 92 vma->vm_policy = mpol_shared_policy_lookup(&HUGETLBFS_I(inode)->policy, in hugetlb_set_vma_policy() 1139 mpol_shared_policy_init(&p->policy, NULL); in hugetlbfs_alloc_inode() 1152 mpol_free_shared_policy(&HUGETLBFS_I(inode)->policy); in hugetlbfs_destroy_inode()
|
/fs/btrfs/ |
D | extent-tree.c | 3536 enum btrfs_extent_allocation_policy policy; member 3895 switch (ffe_ctl->policy) { in do_allocation() 3909 switch (ffe_ctl->policy) { in release_block_group() 3941 switch (ffe_ctl->policy) { in found_extent() 3955 switch (ffe_ctl->policy) { in chunk_allocation_failed() 4056 if (ffe_ctl->policy != BTRFS_EXTENT_ALLOC_CLUSTERED) in find_free_extent_update_loop() 4130 switch (ffe_ctl->policy) { in prepare_allocation() 4208 ffe_ctl.policy = BTRFS_EXTENT_ALLOC_CLUSTERED; in find_free_extent() 4217 ffe_ctl.policy = BTRFS_EXTENT_ALLOC_ZONED; in find_free_extent()
|
/fs/ksmbd/ |
D | transport_ipc.c | 210 ksmbd_genl_family.policy = ksmbd_nl_policy; in ksmbd_nl_init_fixup()
|
/fs/proc/ |
D | array.c | 622 seq_put_decimal_ull(m, " ", task->policy); in do_task_stat()
|
/fs/ext4/ |
D | super.c | 1556 return EXT4_SB(sb)->s_dummy_enc_policy.policy; in ext4_get_dummy_policy() 2070 if (is_remount && !sbi->s_dummy_enc_policy.policy) { in ext4_set_test_dummy_encryption()
|