Function

CFFileSecuritySetMode(_:_:)

Sets the file mode associated with a CFFileSecurityRef object.

Declaration

func CFFileSecuritySetMode(_ fileSec: CFFileSecurity!, _ mode: mode_t) -> Bool

Parameters

fileSec

The CFFileSecurityRef object 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.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software