Location: Symbol Reference > Classes > TJwSecureFileObject Class > TJwSecureFileObject Methods > TJwSecureFileObject.SetSACL Method
JWSCL Documentation
ContentsIndexHome
PreviousUpNext
TJwSecureFileObject.SetSACL Method
Pascal
procedure SetSACL(const list: TJwSAccessControlList; const Protection: TJwACLProtectionState = apNone); override; overload;
Parameters 
Description 
const Protection: TJwACLProtectionState = apNone 
defines which TJwSecurityInformationFlag Flag is used:
  • apNone uses simply siSaclSecurityInformation to set SACL
  • apProtected uses siProtectedSaclSecurityInformation to set a protected SACL
  • apUnprotected uses siUnprotectedSaclSecurityInformation to set an unprotected SACL and let flow the inheritance stream
 

SetSACL sets the SACL of the file object. You need to have SE_SECURITY_NAME privilege be enabled otherwise the call fails. 

New: You can also use apProtected to remove inherited ACEs (replace an existing SACL completly). 

The list is copied into the file object. 

 

Copyright (c) 2010. All rights reserved.
This help was created by Doc-O-Matic sponsored by toolsfactory software inc.
What do you think about this topic? Send feedback!