Home
last modified time | relevance | path

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

/security/keys/
Ddh.c68 int err; member
71 static void dh_crypto_done(struct crypto_async_request *req, int err) in dh_crypto_done() argument
75 if (err == -EINPROGRESS) in dh_crypto_done()
78 compl->err = err; in dh_crypto_done()
92 int err; in kdf_alloc() local
101 err = -EINVAL; in kdf_alloc()
105 err = -ENOMEM; in kdf_alloc()
118 return err; in kdf_alloc()
148 int err = 0; in kdf_ctr() local
153 err = crypto_shash_init(desc); in kdf_ctr()
[all …]
Dprocess_keys.c425 key_ref_t key_ref, ret, err; in search_cred_keyrings_rcu() local
437 err = ERR_PTR(-EAGAIN); in search_cred_keyrings_rcu()
452 err = key_ref; in search_cred_keyrings_rcu()
473 err = key_ref; in search_cred_keyrings_rcu()
495 err = key_ref; in search_cred_keyrings_rcu()
517 err = key_ref; in search_cred_keyrings_rcu()
523 key_ref = ret ? ret : err; in search_cred_keyrings_rcu()
542 key_ref_t key_ref, ret = ERR_PTR(-EACCES), err; in search_process_keyrings_rcu() local
547 err = key_ref; in search_process_keyrings_rcu()
574 if (err == ERR_PTR(-ENOKEY) || ret == ERR_PTR(-ENOKEY)) in search_process_keyrings_rcu()
[all …]
Dpersistent.c47 long err = key_create_persistent_register(ns); in key_create_persistent() local
48 if (err < 0) in key_create_persistent()
49 return ERR_PTR(err); in key_create_persistent()
Dkeyring.c907 long err; in keyring_search_rcu() local
920 err = key_task_permission(keyring_ref, ctx->cred, KEY_NEED_SEARCH); in keyring_search_rcu()
921 if (err < 0) in keyring_search_rcu()
922 return ERR_PTR(err); in keyring_search_rcu()
/security/safesetid/
Dsecurityfs.c115 int err; in handle_policy_update() local
125 err = PTR_ERR(buf); in handle_policy_update()
130 err = -ENOMEM; in handle_policy_update()
140 err = -EINVAL; in handle_policy_update()
147 err = -ENOMEM; in handle_policy_update()
151 err = parse_policy_line(file, p, rule); in handle_policy_update()
152 if (err) in handle_policy_update()
158 err = -EEXIST; in handle_policy_update()
171 err = verify_ruleset(pol); in handle_policy_update()
173 if (err && err != -EINVAL) in handle_policy_update()
[all …]
/security/selinux/ss/
Dconditional.c230 goto err; in cond_read_bool()
237 goto err; in cond_read_bool()
241 goto err; in cond_read_bool()
246 goto err; in cond_read_bool()
249 goto err; in cond_read_bool()
253 goto err; in cond_read_bool()
256 err: in cond_read_bool()
285 goto err; in cond_insertf()
300 goto err; in cond_insertf()
311 goto err; in cond_insertf()
[all …]
Dservices.c138 goto err; in selinux_set_mapping()
157 goto err; in selinux_set_mapping()
172 err: in selinux_set_mapping()
2227 goto err; in security_load_policy()
2232 goto err; in security_load_policy()
2254 goto err; in security_load_policy()
2286 err: in security_load_policy()
2875 goto err; in security_get_bools()
2880 goto err; in security_get_bools()
2889 goto err; in security_get_bools()
[all …]
/security/selinux/
Dnlmsgtab.c146 int i, err = -EINVAL; in nlmsg_perm() local
151 err = 0; in nlmsg_perm()
155 return err; in nlmsg_perm()
160 int err = 0; in selinux_nlmsg_lookup() local
170 err = nlmsg_perm(nlmsg_type, perm, nlmsg_route_perms, in selinux_nlmsg_lookup()
175 err = nlmsg_perm(nlmsg_type, perm, nlmsg_tcpdiag_perms, in selinux_nlmsg_lookup()
185 err = nlmsg_perm(nlmsg_type, perm, nlmsg_xfrm_perms, in selinux_nlmsg_lookup()
196 err = nlmsg_perm(nlmsg_type, perm, nlmsg_audit_perms, in selinux_nlmsg_lookup()
203 err = -ENOENT; in selinux_nlmsg_lookup()
207 return err; in selinux_nlmsg_lookup()
Dhooks.c3772 int err = 0; in selinux_file_fcntl() local
3777 err = file_has_perm(cred, file, FILE__WRITE); in selinux_file_fcntl()
3788 err = file_has_perm(cred, file, 0); in selinux_file_fcntl()
3801 err = file_has_perm(cred, file, FILE__LOCK); in selinux_file_fcntl()
3805 return err; in selinux_file_fcntl()
4409 int err; in selinux_skb_peerlbl_sid() local
4414 err = selinux_xfrm_skb_sid(skb, &xfrm_sid); in selinux_skb_peerlbl_sid()
4415 if (unlikely(err)) in selinux_skb_peerlbl_sid()
4417 err = selinux_netlbl_skbuff_getsid(skb, family, &nlbl_type, &nlbl_sid); in selinux_skb_peerlbl_sid()
4418 if (unlikely(err)) in selinux_skb_peerlbl_sid()
[all …]
Dselinuxfs.c388 goto err; in sel_open_policy()
392 goto err; in sel_open_policy()
397 goto err; in sel_open_policy()
407 goto err; in sel_open_policy()
416 err: in sel_open_policy()
1985 goto err; in sel_fill_super()
1989 goto err; in sel_fill_super()
1996 goto err; in sel_fill_super()
2002 goto err; in sel_fill_super()
2008 goto err; in sel_fill_super()
[all …]
Dxfrm.c104 goto err; in selinux_xfrm_alloc_user()
110 goto err; in selinux_xfrm_alloc_user()
116 err: in selinux_xfrm_alloc_user()
/security/integrity/evm/
Devm_secfs.c177 int len, err; in evm_write_xattrs() local
199 err = -ENOMEM; in evm_write_xattrs()
205 err = PTR_ERR(xattr->name); in evm_write_xattrs()
224 err = simple_setattr(evm_xattrs, &newattrs); in evm_write_xattrs()
226 if (!err) in evm_write_xattrs()
227 err = count; in evm_write_xattrs()
233 err = -EINVAL; in evm_write_xattrs()
241 err = -EEXIST; in evm_write_xattrs()
253 audit_log_format(ab, " res=%d", err); in evm_write_xattrs()
259 return err; in evm_write_xattrs()
/security/integrity/
Ddigsig.c51 int err = PTR_ERR(keyring[id]); in integrity_keyring_from_id() local
52 pr_err("no %s keyring: %d\n", keyring_name[id], err); in integrity_keyring_from_id()
54 return ERR_PTR(err); in integrity_keyring_from_id()
102 int err = 0; in __integrity_init_keyring() local
108 err = PTR_ERR(keyring[id]); in __integrity_init_keyring()
110 keyring_name[id], err); in __integrity_init_keyring()
117 return err; in __integrity_init_keyring()
/security/lockdown/
Dlockdown.c145 int i, len, err = -EINVAL; in lockdown_write() local
162 err = lock_kernel_down("securityfs", level); in lockdown_write()
166 return err ? err : n; in lockdown_write()
/security/integrity/ima/
Dima_crypto.c193 static inline int ahash_wait(int err, struct crypto_wait *wait) in ahash_wait() argument
196 err = crypto_wait_req(err, wait); in ahash_wait()
198 if (err) in ahash_wait()
199 pr_crit_ratelimited("ahash calculation failed: err: %d\n", err); in ahash_wait()
201 return err; in ahash_wait()
/security/keys/encrypted-keys/
Dencrypted.c330 int err; in calc_hash() local
334 err = crypto_shash_digest(desc, buf, buflen, digest); in calc_hash()
336 return err; in calc_hash()
343 int err; in calc_hmac() local
352 err = crypto_shash_setkey(tfm, key, keylen); in calc_hmac()
353 if (!err) in calc_hmac()
354 err = calc_hash(tfm, digest, buf, buflen); in calc_hmac()
356 return err; in calc_hmac()
/security/smack/
Dsmackfs.c2954 int err; in init_smk_fs() local
2960 err = smk_init_sysfs(); in init_smk_fs()
2961 if (err) in init_smk_fs()
2964 err = register_filesystem(&smk_fs_type); in init_smk_fs()
2965 if (!err) { in init_smk_fs()
2969 err = PTR_ERR(smackfs_mount); in init_smk_fs()
2978 if (err == 0 && rc < 0) in init_smk_fs()
2979 err = rc; in init_smk_fs()
2981 if (err == 0 && rc < 0) in init_smk_fs()
2982 err = rc; in init_smk_fs()
[all …]
/security/tomoyo/
Dtomoyo.c107 const int err = tomoyo_find_next_domain(bprm); in tomoyo_bprm_check_security() local
110 return err; in tomoyo_bprm_check_security()
/security/apparmor/
Dlsm.c1691 int err; in apparmor_nf_ip_init() local
1696 err = register_pernet_subsys(&apparmor_net_ops); in apparmor_nf_ip_init()
1697 if (err) in apparmor_nf_ip_init()
1698 panic("Apparmor: register_pernet_subsys: error %d\n", err); in apparmor_nf_ip_init()
/security/
Dsecurity.c1073 int err = call_int_hook(path_rename, 0, new_dir, new_dentry, in security_path_rename() local
1075 if (err) in security_path_rename()
1076 return err; in security_path_rename()
1174 int err = call_int_hook(inode_rename, 0, new_dir, new_dentry, in security_inode_rename() local
1176 if (err) in security_inode_rename()
1177 return err; in security_inode_rename()