Lines Matching refs:ac
221 struct auditd_connection *ac; in auditd_test_task() local
224 ac = rcu_dereference(auditd_conn); in auditd_test_task()
225 rc = (ac && ac->pid == task_tgid(task) ? 1 : 0); in auditd_test_task()
270 const struct auditd_connection *ac; in auditd_pid_vnr() local
273 ac = rcu_dereference(auditd_conn); in auditd_pid_vnr()
274 if (!ac || !ac->pid) in auditd_pid_vnr()
277 pid = pid_vnr(ac->pid); in auditd_pid_vnr()
478 struct auditd_connection *ac; in auditd_conn_free() local
480 ac = container_of(rcu, struct auditd_connection, rcu); in auditd_conn_free()
481 put_pid(ac->pid); in auditd_conn_free()
482 put_net(ac->net); in auditd_conn_free()
483 kfree(ac); in auditd_conn_free()
650 static void auditd_reset(const struct auditd_connection *ac) in auditd_reset() argument
660 if (ac && ac != ac_old) { in auditd_reset()
694 struct auditd_connection *ac; in auditd_send_unicast_skb() local
704 ac = rcu_dereference(auditd_conn); in auditd_send_unicast_skb()
705 if (!ac) { in auditd_send_unicast_skb()
711 net = get_net(ac->net); in auditd_send_unicast_skb()
713 portid = ac->portid; in auditd_send_unicast_skb()
724 if (ac && rc == -ECONNREFUSED) in auditd_send_unicast_skb()
725 auditd_reset(ac); in auditd_send_unicast_skb()
848 struct auditd_connection *ac; in kauditd_thread() local
856 ac = rcu_dereference(auditd_conn); in kauditd_thread()
857 if (!ac) { in kauditd_thread()
861 net = get_net(ac->net); in kauditd_thread()
863 portid = ac->portid; in kauditd_thread()
872 auditd_reset(ac); in kauditd_thread()
882 auditd_reset(ac); in kauditd_thread()
895 if (ac && rc < 0) in kauditd_thread()
896 auditd_reset(ac); in kauditd_thread()