• Home
  • Raw
  • Download

Lines Matching refs:rc

220 	int rc;  in auditd_test_task()  local
225 rc = (ac && ac->pid == task_tgid(task) ? 1 : 0); in auditd_test_task()
228 return rc; in auditd_test_task()
388 int rc = 0; in audit_log_config_change() local
392 return rc; in audit_log_config_change()
395 rc = audit_log_task_context(ab); in audit_log_config_change()
396 if (rc) in audit_log_config_change()
400 return rc; in audit_log_config_change()
405 int allow_changes, rc = 0; in audit_do_config_change() local
415 rc = audit_log_config_change(function_name, new, old, allow_changes); in audit_do_config_change()
416 if (rc) in audit_do_config_change()
424 else if (rc == 0) in audit_do_config_change()
425 rc = -EPERM; in audit_do_config_change()
426 return rc; in audit_do_config_change()
447 int rc; in audit_set_enabled() local
451 rc = audit_do_config_change("audit_enabled", &audit_enabled, state); in audit_set_enabled()
452 if (!rc) in audit_set_enabled()
455 return rc; in audit_set_enabled()
690 int rc; in auditd_send_unicast_skb() local
708 rc = -ECONNREFUSED; in auditd_send_unicast_skb()
716 rc = netlink_unicast(sk, skb, portid, 0); in auditd_send_unicast_skb()
718 if (rc < 0) in auditd_send_unicast_skb()
721 return rc; in auditd_send_unicast_skb()
724 if (ac && rc == -ECONNREFUSED) in auditd_send_unicast_skb()
726 return rc; in auditd_send_unicast_skb()
750 int rc = 0; in kauditd_send_queue() local
774 rc = netlink_unicast(sk, skb, portid, 0); in kauditd_send_queue()
775 if (rc < 0) { in kauditd_send_queue()
778 rc == -ECONNREFUSED || rc == -EPERM) { in kauditd_send_queue()
781 (*err_hook)(skb, rc); in kauditd_send_queue()
782 if (rc == -EAGAIN) in kauditd_send_queue()
783 rc = 0; in kauditd_send_queue()
795 return (rc >= 0 ? 0 : rc); in kauditd_send_queue()
844 int rc; in kauditd_thread() local
867 rc = kauditd_send_queue(sk, portid, in kauditd_thread()
870 if (rc < 0) { in kauditd_thread()
877 rc = kauditd_send_queue(sk, portid, in kauditd_thread()
880 if (rc < 0) { in kauditd_thread()
891 rc = kauditd_send_queue(sk, portid, &audit_queue, 1, in kauditd_thread()
895 if (ac && rc < 0) in kauditd_thread()
2327 unsigned int sessionid, int rc) in audit_log_set_loginuid() argument
2349 oldsessionid, sessionid, !rc); in audit_log_set_loginuid()
2366 int rc; in audit_set_loginuid() local
2371 rc = audit_set_loginuid_perm(loginuid); in audit_set_loginuid()
2372 if (rc) in audit_set_loginuid()
2385 audit_log_set_loginuid(oldloginuid, loginuid, oldsessionid, sessionid, rc); in audit_set_loginuid()
2386 return rc; in audit_set_loginuid()