Man page of create_file_securely
Section: C Library Functions (3)
Return to Main Contents
create_file_securely - Create a file in the authentication database (Enhanced Security)
Security library (libsecurity.a)
The file parameter is the pathname to create.
The decibels parameter is AUTH_SILENT, AUTH_LIMITED, or AUTH_VERBOSE.
Using AUTH_SILENT blocks signals.
The AUTH_LIMITED constant allows a limited amount of dialog.
Using AUTH_VERBOSE specifies that
the routine should try to wait until the file can be created (up to
100 tries, 1 second apart).
The values for decibels are as follows:
The purpose parameter is passed to auditd
when a file cannot be created.
It is a tag for the audit log.
The create_file_securely routine creates a file as specified in
the authentication database.
It is more flexible than coding the discretionary
attributes of the file, and a further assurance that the file being
created is in accordance with security concerns.
If the path to the file being created does not exist,
create_file_securely attempts to create the path.
If each directory in the path is not defined in the
authentication database, create_file_securely fails.
The create_file_securely routine returns the following values:
The file control database.
- RETURN VALUES
- RELATED INFORMATION
This document was created by
using the manual pages.
Time: 02:41:11 GMT, October 02, 2010