From 5147f011d9b2b37dd46939d4b50d71d50a6776c1 Mon Sep 17 00:00:00 2001 From: Joseph Sutton Date: Thu, 15 Dec 2022 11:58:11 +1300 Subject: auth: Shorten long SID flags combinations The combination MANDATORY | ENABLED_BY_DEFAULT | ENABLED is very commonly used, and introducing a shorter alias for it makes the code clearer. Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- librpc/idl/security.idl | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'librpc/idl') diff --git a/librpc/idl/security.idl b/librpc/idl/security.idl index 3d2c8a33903..05c40618a10 100644 --- a/librpc/idl/security.idl +++ b/librpc/idl/security.idl @@ -665,6 +665,11 @@ interface security SE_GROUP_LOGON_ID = 0xC0000000 } security_GroupAttrs; + const uint32 SE_GROUP_DEFAULT_FLAGS = + SE_GROUP_MANDATORY | + SE_GROUP_ENABLED_BY_DEFAULT | + SE_GROUP_ENABLED; + /* This is not yet sent over the network, but is simply defined in IDL */ typedef [public] struct { uint32 num_sids; -- cgit v1.2.1