Refined logic that builds security-related stanzas for NetworkManager systemconnection files