Lines Matching refs:error

306 	int error;
308 error = __inode_security_revalidate(inode, NULL, !rcu);
309 if (error)
310 return ERR_PTR(error);
507 * error other than -ENODATA is returned by getxattr on
989 * NOTE: the caller is responsible for freeing the memory even if on error.
1300 #error New address family defined, please update this function.
1614 #error Fix SELinux to handle capabilities > 63.
3410 int error;
3433 error = security_sid_to_context_force(isec->sid, &context,
3436 error = security_sid_to_context(isec->sid,
3438 if (error)
3439 return error;
3440 error = size;
3447 return error;
3686 int error = 0;
3694 error = file_has_perm(cred, file, FILE__GETATTR);
3699 error = file_has_perm(cred, file, FILE__SETATTR);
3705 error = file_has_perm(cred, file, 0);
3710 error = cred_has_capability(cred, CAP_SYS_TTY_CONFIG,
3717 error = ioctl_has_perm(cred, file, FILE__IOCTL, (u16) cmd);
3724 error = ioctl_has_perm(cred, file, FILE__IOCTL, (u16) cmd);
3726 return error;
3775 goto error;
3792 error:
4263 /* Returns error only if unable to parse addresses */
4361 /* Returns error only if unable to parse addresses */
6321 int error;
6328 error = avc_has_perm(current_sid(), __tsec->sid,
6330 if (error)
6347 error = -EINVAL;
6355 error = security_sid_to_context(sid, value, &len);
6356 if (error)
6357 return error;
6362 return error;
6370 int error;
6377 error = avc_has_perm(mysid, mysid, SECCLASS_PROCESS,
6380 error = avc_has_perm(mysid, mysid, SECCLASS_PROCESS,
6383 error = avc_has_perm(mysid, mysid, SECCLASS_PROCESS,
6386 error = avc_has_perm(mysid, mysid, SECCLASS_PROCESS,
6389 error = avc_has_perm(mysid, mysid, SECCLASS_PROCESS,
6392 error = -EINVAL;
6393 if (error)
6394 return error;
6402 error = security_context_to_sid(value, size,
6404 if (error == -EINVAL && !strcmp(name, "fscreate")) {
6419 return error;
6424 return error;
6426 error = security_context_to_sid_force(value, size,
6429 if (error)
6430 return error;
6450 error = avc_has_perm(mysid, sid,
6452 if (error)
6459 error = -EINVAL;
6465 error = security_bounded_transition(tsec->sid, sid);
6466 if (error)
6471 error = avc_has_perm(tsec->sid, sid, SECCLASS_PROCESS,
6473 if (error)
6480 error = avc_has_perm(ptsid, sid, SECCLASS_PROCESS,
6482 if (error)
6488 error = -EINVAL;
6498 return error;
6539 /* Do not return error when suppressing label (SBLABEL_MNT not set). */
7416 panic("SELinux: register_pernet_subsys: error %d\n", err);