Home
last modified time | relevance | path

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

12

/security/landlock/
Dsyscalls.c163 int err, ruleset_fd; in SYSCALL_DEFINE3() local
179 err = copy_min_struct_from_user(&ruleset_attr, sizeof(ruleset_attr), in SYSCALL_DEFINE3()
183 if (err) in SYSCALL_DEFINE3()
184 return err; in SYSCALL_DEFINE3()
247 int err = 0; in get_path_from_fd() local
266 err = -EBADFD; in get_path_from_fd()
274 return err; in get_path_from_fd()
312 int res, err; in SYSCALL_DEFINE4() local
327 err = -EINVAL; in SYSCALL_DEFINE4()
335 err = -EFAULT; in SYSCALL_DEFINE4()
[all …]
Druleset.c265 int err = 0; in merge_ruleset() local
281 err = -EINVAL; in merge_ruleset()
294 err = -EINVAL; in merge_ruleset()
298 err = -EINVAL; in merge_ruleset()
302 err = insert_rule(dst, walker_rule->object, &layers, in merge_ruleset()
304 if (err) in merge_ruleset()
311 return err; in merge_ruleset()
318 int err = 0; in inherit_ruleset() local
331 err = insert_rule(child, walker_rule->object, in inherit_ruleset()
334 if (err) in inherit_ruleset()
[all …]
Dfs.c169 int err; in landlock_append_fs_rule() local
187 err = landlock_insert_rule(ruleset, object, access_rights); in landlock_append_fs_rule()
194 return err; in landlock_append_fs_rule()
/security/integrity/evm/
Devm_secfs.c183 int len, err; in evm_write_xattrs() local
205 err = -ENOMEM; in evm_write_xattrs()
212 err = PTR_ERR(xattr->name); in evm_write_xattrs()
231 err = simple_setattr(&init_user_ns, evm_xattrs, &newattrs); in evm_write_xattrs()
233 if (!err) in evm_write_xattrs()
234 err = count; in evm_write_xattrs()
240 err = -EINVAL; in evm_write_xattrs()
255 err = -EEXIST; in evm_write_xattrs()
258 err = count; in evm_write_xattrs()
271 audit_log_format(ab, " res=%d", (err < 0) ? err : 0); in evm_write_xattrs()
[all …]
/security/selinux/
Dnlmsgtab.c156 int i, err = -EINVAL; in nlmsg_perm() local
161 err = 0; in nlmsg_perm()
165 return err; in nlmsg_perm()
170 int err = 0; in selinux_nlmsg_lookup() local
180 err = nlmsg_perm(nlmsg_type, perm, nlmsg_route_perms, in selinux_nlmsg_lookup()
185 err = nlmsg_perm(nlmsg_type, perm, nlmsg_tcpdiag_perms, in selinux_nlmsg_lookup()
195 err = nlmsg_perm(nlmsg_type, perm, nlmsg_xfrm_perms, in selinux_nlmsg_lookup()
206 err = nlmsg_perm(nlmsg_type, perm, nlmsg_audit_perms, in selinux_nlmsg_lookup()
213 err = -ENOENT; in selinux_nlmsg_lookup()
217 return err; in selinux_nlmsg_lookup()
Dhooks.c978 goto err; in selinux_add_opt()
983 goto err; in selinux_add_opt()
988 goto err; in selinux_add_opt()
993 goto err; in selinux_add_opt()
1006 err: in selinux_add_opt()
3878 int err = 0; in selinux_file_fcntl() local
3883 err = file_has_perm(cred, file, FILE__WRITE); in selinux_file_fcntl()
3894 err = file_has_perm(cred, file, 0); in selinux_file_fcntl()
3907 err = file_has_perm(cred, file, FILE__LOCK); in selinux_file_fcntl()
3911 return err; in selinux_file_fcntl()
[all …]
Dselinuxfs.c412 goto err; in sel_open_policy()
416 goto err; in sel_open_policy()
421 goto err; in sel_open_policy()
425 goto err; in sel_open_policy()
440 err: in sel_open_policy()
2089 goto err; in sel_fill_super()
2093 goto err; in sel_fill_super()
2100 goto err; in sel_fill_super()
2106 goto err; in sel_fill_super()
2112 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/safesetid/
Dsecurityfs.c144 int err; in handle_policy_update() local
155 err = PTR_ERR(buf); in handle_policy_update()
160 err = -ENOMEM; in handle_policy_update()
170 err = -EINVAL; in handle_policy_update()
177 err = -ENOMEM; in handle_policy_update()
182 err = parse_policy_line(file, p, rule); in handle_policy_update()
183 if (err) in handle_policy_update()
188 err = -EEXIST; in handle_policy_update()
201 err = verify_ruleset(pol); in handle_policy_update()
203 if (err && err != -EINVAL) in handle_policy_update()
[all …]
/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()
103 int err = 0; in __integrity_init_keyring() local
109 err = PTR_ERR(keyring[id]); in __integrity_init_keyring()
111 keyring_name[id], err); in __integrity_init_keyring()
122 return err; in __integrity_init_keyring()
/security/keys/
Ddh.c69 int err; member
72 static void dh_crypto_done(struct crypto_async_request *req, int err) in dh_crypto_done() argument
76 if (err == -EINPROGRESS) in dh_crypto_done()
79 compl->err = err; in dh_crypto_done()
122 goto err; in keyctl_dh_compute_kdf()
127 goto err; in keyctl_dh_compute_kdf()
133 err: in keyctl_dh_compute_kdf()
281 ret = compl.err; in __keyctl_dh_compute()
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()
/security/loadpin/
Dloadpin.c290 goto err; in read_trusted_verity_root_digests()
295 goto err; in read_trusted_verity_root_digests()
310 goto err; in read_trusted_verity_root_digests()
320 goto err; in read_trusted_verity_root_digests()
328 goto err; in read_trusted_verity_root_digests()
334 goto err; in read_trusted_verity_root_digests()
344 goto err; in read_trusted_verity_root_digests()
352 err: in read_trusted_verity_root_digests()
/security/lockdown/
Dlockdown.c120 int i, len, err = -EINVAL; in lockdown_write() local
137 err = lock_kernel_down("securityfs", level); in lockdown_write()
141 return err ? err : n; in lockdown_write()
/security/selinux/ss/
Dconditional.c222 goto err; in cond_read_bool()
229 goto err; in cond_read_bool()
233 goto err; in cond_read_bool()
238 goto err; in cond_read_bool()
241 goto err; in cond_read_bool()
245 goto err; in cond_read_bool()
248 err: in cond_read_bool()
434 goto err; in cond_read_list()
441 goto err; in cond_read_list()
444 err: in cond_read_list()
Dservices.c140 goto err; in selinux_set_mapping()
159 goto err; in selinux_set_mapping()
174 err: in selinux_set_mapping()
3052 goto err; in security_get_bools()
3057 goto err; in security_get_bools()
3066 goto err; in security_get_bools()
3071 err: in security_get_bools()
3482 goto err; in security_get_permissions()
3488 goto err; in security_get_permissions()
3493 err: in security_get_permissions()
[all …]
/security/tomoyo/
Dtomoyo.c101 const int err = tomoyo_find_next_domain(bprm); in tomoyo_bprm_check_security() local
104 return err; in tomoyo_bprm_check_security()
281 const int err = tomoyo_path2_perm(TOMOYO_TYPE_RENAME, &path2, in tomoyo_path_rename() local
284 if (err) in tomoyo_path_rename()
285 return err; in tomoyo_path_rename()
/security/smack/
Dsmackfs.c2993 int err; in init_smk_fs() local
2999 err = smk_init_sysfs(); in init_smk_fs()
3000 if (err) in init_smk_fs()
3003 err = register_filesystem(&smk_fs_type); in init_smk_fs()
3004 if (!err) { in init_smk_fs()
3008 err = PTR_ERR(smackfs_mount); in init_smk_fs()
3017 if (err == 0 && rc < 0) in init_smk_fs()
3018 err = rc; in init_smk_fs()
3020 if (err == 0 && rc < 0) in init_smk_fs()
3021 err = rc; in init_smk_fs()
[all …]
/security/integrity/ima/
Dima_crypto.c318 static inline int ahash_wait(int err, struct crypto_wait *wait) in ahash_wait() argument
321 err = crypto_wait_req(err, wait); in ahash_wait()
323 if (err) in ahash_wait()
324 pr_crit_ratelimited("ahash calculation failed: err: %d\n", err); in ahash_wait()
326 return err; in ahash_wait()
Dima_appraise.c753 int err; in ima_inode_setxattr() local
761 err = validate_hash_algo(dentry, xvalue, xattr_value_len); in ima_inode_setxattr()
762 if (err) in ima_inode_setxattr()
763 return err; in ima_inode_setxattr()
/security/keys/trusted-keys/
Dtrusted_core.c127 goto err; in trusted_payload_alloc()
130 goto err; in trusted_payload_alloc()
133 err: in trusted_payload_alloc()
/security/apparmor/
Daudit.c198 int err = PTR_ERR(rule->label); in aa_audit_rule_init() local
200 return err; in aa_audit_rule_init()
Dpolicy.c641 int err; in policy_ns_capable() local
644 err = cap_capable(current_cred(), userns, cap, CAP_OPT_NONE); in policy_ns_capable()
645 if (!err) in policy_ns_capable()
646 err = aa_capable(label, cap, CAP_OPT_NONE); in policy_ns_capable()
648 return err; in policy_ns_capable()
/security/keys/encrypted-keys/
Dencrypted.c336 int err; in calc_hmac() local
345 err = crypto_shash_setkey(tfm, key, keylen); in calc_hmac()
346 if (!err) in calc_hmac()
347 err = crypto_shash_tfm_digest(tfm, buf, buflen, digest); in calc_hmac()
349 return err; in calc_hmac()

12