Some facts:
i) The 4th amendment has been universally held to apply to resident aliens as well as citizens. Refer Landon v. Plasencia, 459 U.S. 21, 32-4 ('82); Benitez-Mendez v. INS, 760 F.2d 907, 09-10 (9th Cir.'85); INS v. Delgado, 466 U.S. 210, 213 n.1, 215-21 ('84); Martinez v. Nygaard, 831 F.2d 822, 824, 826-28 (9th Cir.'87). The exact wording of the court is:
[The people] refers to a class of persons who are part of a national community or who have otherwise developed sufficient connection with [the United States] to be considered part of that community.''
ii) "Wartime" is somewhat vague as a proposition, especially as it isn't clearly mentioned in the constitution as an excuse to suspend the bill of rights. This is particularly true given the US has been at war almost continuously for the last century. However, there is some indication that the USSC is willing to give the executive some degree of latitude when it comes to national security though they are prepared to draw the line at blatant constitutional violations.
iii) In this specific case the government lawyer (possibly on his own and not under direction) specifically stated that he wanted to claim the 4th amendment had no holding over someone accused (not convicted) of "terrorism" whether they were a citizen or not. That's a pretty interesting statement.
iv) Posse Comitatus provides a certain barrier for the military to be used in domestic cases.
Dd