20#include <winpr/config.h>
24#ifdef WINPR_HAVE_UNISTD_H
28#include <winpr/security.h>
30#include "../handle/handle.h"
125#include <winpr/wlog.h>
128BOOL InitializeSecurityDescriptor(WINPR_ATTR_UNUSED PSECURITY_DESCRIPTOR pSecurityDescriptor,
129 WINPR_ATTR_UNUSED DWORD dwRevision)
131 WLog_ERR(
"TODO",
"TODO: Implement");
135DWORD GetSecurityDescriptorLength(WINPR_ATTR_UNUSED PSECURITY_DESCRIPTOR pSecurityDescriptor)
137 WLog_ERR(
"TODO",
"TODO: Implement");
141BOOL IsValidSecurityDescriptor(WINPR_ATTR_UNUSED PSECURITY_DESCRIPTOR pSecurityDescriptor)
143 WLog_ERR(
"TODO",
"TODO: Implement");
147BOOL GetSecurityDescriptorControl(WINPR_ATTR_UNUSED PSECURITY_DESCRIPTOR pSecurityDescriptor,
148 WINPR_ATTR_UNUSED PSECURITY_DESCRIPTOR_CONTROL pControl,
149 WINPR_ATTR_UNUSED LPDWORD lpdwRevision)
151 WLog_ERR(
"TODO",
"TODO: Implement");
155BOOL SetSecurityDescriptorControl(WINPR_ATTR_UNUSED PSECURITY_DESCRIPTOR pSecurityDescriptor,
156 WINPR_ATTR_UNUSED SECURITY_DESCRIPTOR_CONTROL
157 ControlBitsOfInterest,
158 WINPR_ATTR_UNUSED SECURITY_DESCRIPTOR_CONTROL ControlBitsToSet)
160 WLog_ERR(
"TODO",
"TODO: Implement");
164BOOL GetSecurityDescriptorDacl(WINPR_ATTR_UNUSED PSECURITY_DESCRIPTOR pSecurityDescriptor,
165 WINPR_ATTR_UNUSED LPBOOL lpbDaclPresent,
166 WINPR_ATTR_UNUSED PACL* pDacl,
167 WINPR_ATTR_UNUSED LPBOOL lpbDaclDefaulted)
169 WLog_ERR(
"TODO",
"TODO: Implement");
173BOOL SetSecurityDescriptorDacl(WINPR_ATTR_UNUSED PSECURITY_DESCRIPTOR pSecurityDescriptor,
174 WINPR_ATTR_UNUSED BOOL bDaclPresent, WINPR_ATTR_UNUSED PACL pDacl,
175 WINPR_ATTR_UNUSED BOOL bDaclDefaulted)
177 WLog_ERR(
"TODO",
"TODO: Implement");
181BOOL GetSecurityDescriptorGroup(WINPR_ATTR_UNUSED PSECURITY_DESCRIPTOR pSecurityDescriptor,
182 WINPR_ATTR_UNUSED PSID* pGroup,
183 WINPR_ATTR_UNUSED LPBOOL lpbGroupDefaulted)
185 WLog_ERR(
"TODO",
"TODO: Implement");
189BOOL SetSecurityDescriptorGroup(WINPR_ATTR_UNUSED PSECURITY_DESCRIPTOR pSecurityDescriptor,
190 WINPR_ATTR_UNUSED PSID pGroup,
191 WINPR_ATTR_UNUSED BOOL bGroupDefaulted)
193 WLog_ERR(
"TODO",
"TODO: Implement");
197BOOL GetSecurityDescriptorOwner(WINPR_ATTR_UNUSED PSECURITY_DESCRIPTOR pSecurityDescriptor,
198 WINPR_ATTR_UNUSED PSID* pOwner,
199 WINPR_ATTR_UNUSED LPBOOL lpbOwnerDefaulted)
201 WLog_ERR(
"TODO",
"TODO: Implement");
205BOOL SetSecurityDescriptorOwner(WINPR_ATTR_UNUSED PSECURITY_DESCRIPTOR pSecurityDescriptor,
206 WINPR_ATTR_UNUSED PSID pOwner,
207 WINPR_ATTR_UNUSED BOOL bOwnerDefaulted)
209 WLog_ERR(
"TODO",
"TODO: Implement");
213DWORD GetSecurityDescriptorRMControl(WINPR_ATTR_UNUSED PSECURITY_DESCRIPTOR SecurityDescriptor,
214 WINPR_ATTR_UNUSED PUCHAR RMControl)
216 WLog_ERR(
"TODO",
"TODO: Implement");
220DWORD SetSecurityDescriptorRMControl(WINPR_ATTR_UNUSED PSECURITY_DESCRIPTOR SecurityDescriptor,
221 WINPR_ATTR_UNUSED PUCHAR RMControl)
223 WLog_ERR(
"TODO",
"TODO: Implement");
227BOOL GetSecurityDescriptorSacl(WINPR_ATTR_UNUSED PSECURITY_DESCRIPTOR pSecurityDescriptor,
228 WINPR_ATTR_UNUSED LPBOOL lpbSaclPresent,
229 WINPR_ATTR_UNUSED PACL* pSacl,
230 WINPR_ATTR_UNUSED LPBOOL lpbSaclDefaulted)
232 WLog_ERR(
"TODO",
"TODO: Implement");
236BOOL SetSecurityDescriptorSacl(WINPR_ATTR_UNUSED PSECURITY_DESCRIPTOR pSecurityDescriptor,
237 WINPR_ATTR_UNUSED BOOL bSaclPresent, WINPR_ATTR_UNUSED PACL pSacl,
238 WINPR_ATTR_UNUSED BOOL bSaclDefaulted)
240 WLog_ERR(
"TODO",
"TODO: Implement");
246BOOL AccessTokenIsValid(HANDLE handle)
250 if (!h || (h->Type != HANDLE_TYPE_ACCESS_TOKEN))
252 SetLastError(ERROR_INVALID_PARAMETER);