Harbors and Navigation Code § 805
CHAPTER 2. Ship Masters and Cargoes
If, during a voyage, the vessel’s supplies fail, the master, with the advice of the officers, may compel persons who have private supplies on board to surrender them for the common want, or payment of, or on giving security for, their value.