From 3f054348d8dfa23b7b308528c53905667b4ce32a Mon Sep 17 00:00:00 2001 From: Tal Aloni Date: Sat, 31 Aug 2024 12:27:59 +0300 Subject: [PATCH] ACE: Moved ACE Header to the ACE abstract class --- .../NTFileStore/Structures/SecurityInformation/ACE/ACE.cs | 4 +++- .../Structures/SecurityInformation/ACE/AccessAllowedACE.cs | 3 +-- .../Structures/SecurityInformation/ACE/AccessDeniedACE.cs | 3 +-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/SMBLibrary/NTFileStore/Structures/SecurityInformation/ACE/ACE.cs b/SMBLibrary/NTFileStore/Structures/SecurityInformation/ACE/ACE.cs index 8f85234..49866f8 100644 --- a/SMBLibrary/NTFileStore/Structures/SecurityInformation/ACE/ACE.cs +++ b/SMBLibrary/NTFileStore/Structures/SecurityInformation/ACE/ACE.cs @@ -1,4 +1,4 @@ -/* Copyright (C) 2014-2017 Tal Aloni . All rights reserved. +/* Copyright (C) 2014-2024 Tal Aloni . All rights reserved. * * You can redistribute this program and/or modify it under the terms of * the GNU Lesser Public License as published by the Free Software Foundation, @@ -14,6 +14,8 @@ namespace SMBLibrary /// public abstract class ACE { + public AceHeader Header; + public abstract void WriteBytes(byte[] buffer, ref int offset); public abstract int Length diff --git a/SMBLibrary/NTFileStore/Structures/SecurityInformation/ACE/AccessAllowedACE.cs b/SMBLibrary/NTFileStore/Structures/SecurityInformation/ACE/AccessAllowedACE.cs index 5f1d445..f4e7712 100644 --- a/SMBLibrary/NTFileStore/Structures/SecurityInformation/ACE/AccessAllowedACE.cs +++ b/SMBLibrary/NTFileStore/Structures/SecurityInformation/ACE/AccessAllowedACE.cs @@ -1,4 +1,4 @@ -/* Copyright (C) 2014-2017 Tal Aloni . All rights reserved. +/* Copyright (C) 2014-2024 Tal Aloni . All rights reserved. * * You can redistribute this program and/or modify it under the terms of * the GNU Lesser Public License as published by the Free Software Foundation, @@ -15,7 +15,6 @@ namespace SMBLibrary { public const int FixedLength = 8; - public AceHeader Header; public AccessMask Mask; public SID Sid; diff --git a/SMBLibrary/NTFileStore/Structures/SecurityInformation/ACE/AccessDeniedACE.cs b/SMBLibrary/NTFileStore/Structures/SecurityInformation/ACE/AccessDeniedACE.cs index bcaa0e2..9a82a9e 100644 --- a/SMBLibrary/NTFileStore/Structures/SecurityInformation/ACE/AccessDeniedACE.cs +++ b/SMBLibrary/NTFileStore/Structures/SecurityInformation/ACE/AccessDeniedACE.cs @@ -1,4 +1,4 @@ -/* Copyright (C) 2014-2017 Tal Aloni . All rights reserved. +/* Copyright (C) 2014-2024 Tal Aloni . All rights reserved. * * You can redistribute this program and/or modify it under the terms of * the GNU Lesser Public License as published by the Free Software Foundation, @@ -12,7 +12,6 @@ namespace SMBLibrary { public const int FixedLength = 8; - public AceHeader Header; public AccessMask Mask; public SID Sid;