Lines Matching refs:error
285 int error;
287 error = __inode_security_revalidate(inode, NULL, !rcu);
288 if (error)
289 return ERR_PTR(error);
498 error other than -ENODATA is returned by getxattr on
1285 #error New address family defined, please update this function.
1596 #error Fix SELinux to handle capabilities > 63.
3346 int error;
3369 error = security_sid_to_context_force(&selinux_state,
3373 error = security_sid_to_context(&selinux_state, isec->sid,
3375 if (error)
3376 return error;
3377 error = size;
3384 return error;
3624 int error = 0;
3632 error = file_has_perm(cred, file, FILE__GETATTR);
3637 error = file_has_perm(cred, file, FILE__SETATTR);
3643 error = file_has_perm(cred, file, 0);
3648 error = cred_has_capability(cred, CAP_SYS_TTY_CONFIG,
3655 error = ioctl_has_perm(cred, file, FILE__IOCTL, (u16) cmd);
3662 error = ioctl_has_perm(cred, file, FILE__IOCTL, (u16) cmd);
3664 return error;
3714 goto error;
3731 error:
4219 /* Returns error only if unable to parse addresses */
4317 /* Returns error only if unable to parse addresses */
6341 int error;
6348 error = avc_has_perm(&selinux_state,
6351 if (error)
6368 error = -EINVAL;
6376 error = security_sid_to_context(&selinux_state, sid, value, &len);
6377 if (error)
6378 return error;
6383 return error;
6391 int error;
6398 error = avc_has_perm(&selinux_state,
6402 error = avc_has_perm(&selinux_state,
6406 error = avc_has_perm(&selinux_state,
6410 error = avc_has_perm(&selinux_state,
6414 error = avc_has_perm(&selinux_state,
6418 error = -EINVAL;
6419 if (error)
6420 return error;
6428 error = security_context_to_sid(&selinux_state, value, size,
6430 if (error == -EINVAL && !strcmp(name, "fscreate")) {
6448 return error;
6450 error = security_context_to_sid_force(
6454 if (error)
6455 return error;
6475 error = avc_has_perm(&selinux_state, mysid, sid,
6477 if (error)
6484 error = -EINVAL;
6489 error = -EPERM;
6491 error = security_bounded_transition(&selinux_state,
6493 if (error)
6498 error = avc_has_perm(&selinux_state,
6501 if (error)
6508 error = avc_has_perm(&selinux_state,
6511 if (error)
6517 error = -EINVAL;
6527 return error;
6568 /* Do not return error when suppressing label (SBLABEL_MNT not set). */
7421 panic("SELinux: register_pernet_subsys: error %d\n", err);