Documentation
¶
Index ¶
- func Apply(name string, replace, inherit bool, entries ...api.ExplicitAccess) error
- func Chmod(name string, mode os.FileMode) error
- func DenyName(accessPermissions uint32, name string) api.ExplicitAccess
- func DenySid(accessPermissions uint32, sid *windows.SID) api.ExplicitAccess
- func GrantName(accessPermissions uint32, name string) api.ExplicitAccess
- func GrantSid(accessPermissions uint32, sid *windows.SID) api.ExplicitAccess
- func SetOwner(name string, inherit bool, owner *windows.SID) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Apply ¶
func Apply(name string, replace, inherit bool, entries ...api.ExplicitAccess) error
Apply the provided access control entries to a file. If the replace parameter is true, existing entries will be overwritten. If the inherit parameter is true, the file will inherit ACEs from its parent.
func Chmod ¶
Change the permissions of the specified file. Only the nine least-significant bytes are used, allowing access by the file's owner, the file's group, and everyone else to be explicitly controlled.
func DenyName ¶
func DenyName(accessPermissions uint32, name string) api.ExplicitAccess
Create an ExplicitAccess instance denying permissions to the provided name.
func DenySid ¶
func DenySid(accessPermissions uint32, sid *windows.SID) api.ExplicitAccess
Create an ExplicitAccess instance denying permissions to the provided SID.
func GrantName ¶
func GrantName(accessPermissions uint32, name string) api.ExplicitAccess
Create an ExplicitAccess instance granting permissions to the provided name.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.