The master of a ship may confine any person on board, during a voyage, for willful disobedience to his lawful commands.

SOURCE: CC § 2038.