diff --git a/policy/modules/services/apm.if b/policy/modules/services/apm.if
index 1ea99b2..8c1c60c 100644
--- a/policy/modules/services/apm.if
+++ b/policy/modules/services/apm.if
@@ -108,6 +108,5 @@ interface(`apm_stream_connect',`
 	')
 
 	files_search_pids($1)
-	allow $1 apmd_var_run_t:sock_file write;
-	allow $1 apmd_t:unix_stream_socket connectto;
+	stream_connect_pattern($1, apmd_var_run_t, apmd_var_run_t, apmd_t)
 ')