CFFileSecurityClearProperties(_:_:)
Clears properties from a CFFileSecurityRef object.
Declaration
func CFFileSecurityClearProperties(_ fileSec: CFFileSecurity!, _ clearPropertyMask: CFFileSecurityClearOptions) -> BoolParameters
- fileSec:
The file security properties to clear.
- clearPropertyMask:
The file security properties to clear.
Return Value
Returns true if the file security properties were successfully cleared, or false otherwise.
Discussion
One common use for CFFileSecurityRef objects is to clone the permissions from one file to another. In this use, you may want to copy only a subset of the permissions. This function lets you delete the specific permissions that you do not want to change prior to applying the set of permissions to a different file.
See Also
Functions
CFAllocatorAllocateBytes(_:_:_:)CFAllocatorAllocateTyped(_:_:_:_:)CFAllocatorReallocateBytes(_:_:_:_:)CFAllocatorReallocateTyped(_:_:_:_:_:)CFAttributedStringGetBidiLevelsAndResolvedDirections(_:_:_:_:_:)CFBundleCopyLocalizedStringForLocalizations(_:_:_:_:_:)CFBundleIsArchitectureLoadable(_:)CFBundleIsExecutableLoadable(_:)CFBundleIsExecutableLoadableForURL(_:)CFCopyHomeDirectoryURL()CFDateFormatterCreateISO8601Formatter(_:_:)CFFileSecurityCopyAccessControlList(_:_:)CFFileSecurityCopyGroupUUID(_:_:)CFFileSecurityCopyOwnerUUID(_:_:)CFFileSecurityCreate(_:)