I suggest its both....for national security and for aircraft safety.
- Deter, detect, gather intelligence...for national security
- Stop any potential air-ragers having access to nasty, pointy, sharp **** in your passenger cabin or having their belongings catch fire in the overhead locker
Works for me.