"Line of duty"? Hardly.
Try "In pursuit of a story"
Lets also not forget that such a law would also extend to blatant enemy propagandists that get hired as “stringers” by our own msm in areas we engage with our military.
Journalists need a wake up call. If you are behind enemy lines and reporting on the goings on within the enemy camp, you are a spy for us and rightfully subject to arrest and execution by that enemy.
If you are within our own lines and reporting for the benefit for the enemy, you are rightfully subject to the same as above.
If you’re out and about in the wild, you take your chances.
Journalists are not “citizens of the world”. That concept has no meaning what so ever except in the minds of the truly intellectually inbred. In times of war, a journalist belongs to one side or the other. Not both.