To ensure the safety of Air Passengers, I think the Air Lines have the full rights to check the passengers in all necessary ways. After all the safety of Passengers is of paramount importance and there shd be no compromise on this aspect.
At the same time it is expected that all passengers extend fullest cooperation to the Security Agencies and the Airlines for carrying out their duties, howsoever unpleasant the task may be.