[PATCH V3 04/10] capabilities: use root_priveleged inline to clarify logic
From: Richard Guy Briggs <hidden>
Date: 2017-08-28 12:03:07
From: Richard Guy Briggs <hidden>
Date: 2017-08-28 12:03:07
On 2017-08-25 15:58, James Morris wrote:
On Wed, 23 Aug 2017, Richard Guy Briggs wrote:quoted
Introduce inline root_privileged() to make use of SECURE_NONROOT easier to read. Suggested-by: Serge Hallyn <serge@hallyn.com> Signed-off-by: Richard Guy Briggs <redacted> --- security/commoncap.c | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-)Acked-by: James Morris <redacted>
Does anyone have the appetite to move this helper function to include/linux/securebits.h along with issecure() to make it more widely available?
James Morris
- RGB -- Richard Guy Briggs [off-list ref] Sr. S/W Engineer, Kernel Security, Base Operating Systems Remote, Ottawa, Red Hat Canada IRC: rgb, SunRaycer Voice: +1.647.777.2635, Internal: (81) 32635 -- To unsubscribe from this list: send the line "unsubscribe linux-security-module" in the body of a message to majordomo at vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html