The courts have upheld federal laws banning gun ownership by people convicted of felonies and some misdemeanors, by illegal immigrants and by drug addicts. They have upheld laws making it illegal to carry guns near schools or in post offices. They have upheld laws concerning unregistered weapons. And they have upheld laws banning machine guns and sawed-off shotguns.