; or (ii) the Foreign Intelligence Surveillance Act of 1978 ( 50 U.S.C. 1801 et seq.); or (B) in the case of assistance capabilities described in section 3119, that, during the preceding calendar year, data stored in any device, service, or operating system sold or licensed by the person was subject to not fewer than 5 Federal or State search warrants. (4) Release from liability No civil cause of action shall lie in any court against a person who receives a directive under paragraph (1) for any action or omission reasonably necessary to comply with the directive. (5) Effective date and expiration date of directives (A) In general Subject to subparagraph (B), a directive issued under paragraph (1) shall contain— (i) a date on which the directive takes effect; and (ii) a date when the directive expires. (B) Limits A directive issued under paragraph (1) may not— (i) take effect earlier than 180 days after the date on which the directive is issued; or (ii) expire later than 2 years after the date on which the directive takes effect. (6) Reporting Not later than 30 days after the date on which a directive issued under paragraph (1) takes effect, the Attorney General shall submit to the Committee on the Judiciary of the Senate and the Committee on the Judiciary of the House of Representatives a copy of the directive. (7) No technical demands A directive issued to a person under paragraph (1) may not specify technical means by which the person is required to implement the required capabilities. (c) Challenges of directives and appeal (1) Petition Not later than 30 days after the date on which the Attorney General issues a directive to a person under subsection (b), the person may file a petition to modify or set aside the directive in the United States District Court for the District of Columbia. (2) Consideration of petition (A) Grant The court may grant a petition filed under paragraph (1) only if— (i) the directive does not meet the requirements of this section