Home
last modified time | relevance | path

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

/fs/crypto/
Dpolicy.c88 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 …]
Dfscrypt_private.h120 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 …]
Dkeysetup.c67 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 …]
Dhooks.c197 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()
DMakefile13 policy.o
Dfname.c260 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/
Dnetlink.c51 .policy = cifs_genl_policy,
/fs/sysfs/
DKconfig18 delegating policy decisions, like persistently naming devices.
/fs/f2fs/
Ddata.c2496 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()
Dsuper.c520 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/
Dinode.c92 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/
Dextent-tree.c3536 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/
Dtransport_ipc.c210 ksmbd_genl_family.policy = ksmbd_nl_policy; in ksmbd_nl_init_fixup()
/fs/proc/
Darray.c622 seq_put_decimal_ull(m, " ", task->policy); in do_task_stat()
/fs/ext4/
Dsuper.c1556 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()