Lines Matching refs:error

135 	int error = 0;  in apparmor_capable()  local
139 error = aa_capable(profile, cap, audit); in apparmor_capable()
140 return error; in apparmor_capable()
156 int error = 0; in common_perm() local
160 error = aa_path_perm(op, profile, path, 0, mask, cond); in common_perm()
162 return error; in common_perm()
296 int error = 0; in apparmor_path_link() local
303 error = aa_path_link(profile, old_dentry, new_dir, new_dentry); in apparmor_path_link()
304 return error; in apparmor_path_link()
311 int error = 0; in apparmor_path_rename() local
324 error = aa_path_perm(OP_RENAME_SRC, profile, &old_path, 0, in apparmor_path_rename()
328 if (!error) in apparmor_path_rename()
329 error = aa_path_perm(OP_RENAME_DEST, profile, &new_path, in apparmor_path_rename()
334 return error; in apparmor_path_rename()
370 int error = 0; in apparmor_file_open() local
390 error = aa_path_perm(OP_OPEN, profile, &file->f_path, 0, in apparmor_file_open()
396 return error; in apparmor_file_open()
420 int error = 0; in common_file_perm() local
439 error = aa_file_perm(op, profile, file, mask); in common_file_perm()
441 return error; in common_file_perm()
497 int error = -ENOENT; in apparmor_getprocattr() local
510 error = -EINVAL; in apparmor_getprocattr()
513 error = aa_getprocattr(profile, value); in apparmor_getprocattr()
518 return error; in apparmor_getprocattr()
528 int error; in apparmor_setprocattr() local
558 error = aa_setprocattr_changehat(args, arg_size, in apparmor_setprocattr()
561 error = aa_setprocattr_changehat(args, arg_size, in apparmor_setprocattr()
564 error = aa_setprocattr_changeprofile(args, !AA_ONEXEC, in apparmor_setprocattr()
567 error = aa_setprocattr_changeprofile(args, !AA_ONEXEC, in apparmor_setprocattr()
573 error = aa_setprocattr_changeprofile(args, AA_ONEXEC, in apparmor_setprocattr()
581 if (!error) in apparmor_setprocattr()
582 error = size; in apparmor_setprocattr()
583 return error; in apparmor_setprocattr()
591 aad.error = -EINVAL; in apparmor_setprocattr()
600 int error = 0; in apparmor_task_setrlimit() local
603 error = aa_task_setrlimit(profile, task, resource, new_rlim); in apparmor_task_setrlimit()
605 return error; in apparmor_task_setrlimit()
741 int error = kstrtoul(str, 0, &enabled); in apparmor_enabled_setup() local
742 if (!error) in apparmor_enabled_setup()
886 int error; in apparmor_init() local
894 error = aa_alloc_root_ns(); in apparmor_init()
895 if (error) { in apparmor_init()
900 error = set_init_cxt(); in apparmor_init()
901 if (error) { in apparmor_init()
917 return error; in apparmor_init()
923 return error; in apparmor_init()