and whoever knowingly has in his possession; or knowingly has under control in a vehicle; a rifle or shotgun, loaded or unloaded, without either:
shall be punished by imprisonment in the state prison for not less than two and one-half years nor more than five years, or for not less than 18 months nor more than two and one-half years in a jail or house of correction. The sentence imposed on such person shall not be reduced to less than 18 months, nor suspended, nor shall any person convicted under this subsection be eligible for probation, parole, work release, or furlough or receive any deduction from his sentence for good conduct until he shall have served 18 months of such sentence; provided, however, that the commissioner of correction may on the recommendation of the warden, superintendent, or other person in charge of a correctional institution, grant to an offender committed under this subsection a temporary release in the custody of an officer of such institution for the following purposes only: to attend the funeral of a relative; to visit a critically ill relative; or to obtain emergency medical or psychiatric service unavailable at said institution. Prosecutions commenced under this subsection shall neither be continued without a finding nor placed on file.
No person having in effect a license to carry firearms for any purpose, issued under section one hundred and thirty-one or section one hundred and thirty-one F of chapter one hundred and forty shall be deemed to be in violation of this section.
The provisions of section eighty-seven of chapter two hundred and seventy-six shall not apply to any person 18 years of age or older, charged with a violation of this subsection, or to any child between ages fourteen and 18 so charged, if the court is of the opinion that the interests of the public require that he should be tried as an adult for such offense instead of being dealt with as a child.
The provisions of this subsection shall not affect the licensing requirements of section one hundred and twenty-nine C of chapter one hundred and forty which require every person not otherwise duly licensed or exempted to have been issued a firearms identification card in order to possess a firearm, rifle or shotgun in his residence or place of business.
Whoever, not being a law enforcement officer and notwithstanding any license obtained by the person pursuant to chapter 140, carries on the person a firearm, loaded or unloaded, or other dangerous weapon in any building or on the grounds of any elementary or secondary school, college or university without the written authorization of the board or officer in charge of the elementary or secondary school, college or university shall be punished by a fine of not more than $1,000 or by imprisonment for not more than 2 years or both. A law enforcement officer may arrest without a warrant and detain a person found carrying a firearm in violation of this paragraph.
Any officer in charge of an elementary or secondary school, college or university or any faculty member or administrative officer of an elementary or secondary school, college or university that fails to report a violation of this paragraph shall be guilty of a misdemeanor and punished by a fine of not more than $500.
The provisions of this paragraph shall not apply to the possession of a large capacity weapon or large capacity feeding device by (i) any officer, agent or employee of the commonwealth or any other state or the United States, including any federal, state or local law enforcement personnel; (ii) any member of the military or other service of any state or the United States; (iii) any duly authorized law enforcement officer, agent or employee of any municipality of the commonwealth; (iv) any federal, state or local historical society, museum or institutional collection open to the public; provided, however, that any such person described in clauses (i) to (iii), inclusive, is authorized by a competent authority to acquire, possess or carry a large capacity semiautomatic weapon and is acting within the scope of his duties; or (v) any gunsmith duly licensed under the applicable federal law.
For purposes of this section, ammunition shall mean cartridges or cartridge cases, primers (igniter), bullets or propellant powder designed for use in any firearm, rifle or shotgun.
Mass. Gen. Laws ch. 269, § 10