It's the law, but is it ethical?