...
Compliant Solution: fopen_s()
(ISO/IEC TR 24731-1)
Wiki Markup |
---|
The ISO/IEC TR 24731-1 function {{fopen_s()}} function defined in ISO/IEC TR 24731-1can be used to create a file with restricted permissions \[[ISO/IEC TR 24731-1:2007|AA. C References#ISO/IEC TR 24731-1-2007]\] can be used to create a file with restricted permissions. Specifically, ISO/IEC TR 24731-1 states |
If the file is being created, and the first character of the mode string is not 'u', to the extent that the underlying system supports it, the file shall have a file permission that prevents other users on the system from accessing the file. If the file is being created and the first character of the mode string is 'u', then by the time the file has been closed, it shall have the system default file access permissions.
...