Police have acted within their jurisdiction to detain the six Parti Sosialis Malaysia (PSM) members regarding security issues, said Mohamed Nazri Abdul Aziz.