public officers legal protection