Fish and Game Code § 2581
CHAPTER 6.5. Control of Illegally Taken Fish and Wildlife
If the loss is lawful under this code and regulations adopted under this code, this chapter does not apply to the loss of any bird, mammal, amphibian, reptile, or fish as a result of any of the following acts:
(a) Implementing lawful forestry practices.
(b) Implementing lawful agricultural practices.
(c) Any development or maintenance activity carried out pursuant to the terms of a permit issued by the federal government, the state, or any city, county, or district, or any agency thereof.