CFFileSecuritySetMode(_:_:)
Sets the file mode associated with a CFFileSecurityRef object.
Declaration
func CFFileSecuritySetMode(_ fileSec: CFFileSecurity!, _ mode: mode_t) -> BoolParameters
- fileSec:
The
CFFileSecurityRefobject to modify. - mode:
An integer of type
mode_t.
Return Value
Returns true if the file mode property was successfully set, otherwise false.
Discussion
For more information on numerical file modes, see the chmod(2) manual page and the definitions in /usr/include/sys/stat.h.
See Also
Functions
CFAllocatorAllocateBytes(_:_:_:)CFAllocatorAllocateTyped(_:_:_:_:)CFAllocatorReallocateBytes(_:_:_:_:)CFAllocatorReallocateTyped(_:_:_:_:_:)CFAttributedStringGetBidiLevelsAndResolvedDirections(_:_:_:_:_:)CFBundleCopyLocalizedStringForLocalizations(_:_:_:_:_:)CFBundleIsArchitectureLoadable(_:)CFBundleIsExecutableLoadable(_:)CFBundleIsExecutableLoadableForURL(_:)CFCopyHomeDirectoryURL()CFDateFormatterCreateISO8601Formatter(_:_:)CFFileSecurityClearProperties(_:_:)CFFileSecurityCopyAccessControlList(_:_:)CFFileSecurityCopyGroupUUID(_:_:)CFFileSecurityCopyOwnerUUID(_:_:)