What is the meaning of Master-at-arms?

A warrant officer or chief petty officer responsible for discipline aboard a naval ship.

A commissioned officer responsible for overseeing all fitness training in subordinate units.

A petty officer responsible for law enforcement, antiterrorism, force protection, and expeditionary warfare.

An officer in a fraternal or similar organization charged with maintaining order.

Source: wiktionary.org