| /*------------------------------------------------------------------------- | |
| * | |
| * File and directory permission definitions | |
| * | |
| * | |
| * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group | |
| * Portions Copyright (c) 1994, Regents of the University of California | |
| * | |
| * src/include/common/file_perm.h | |
| * | |
| *------------------------------------------------------------------------- | |
| */ | |
| /* | |
| * Mode mask for data directory permissions that only allows the owner to | |
| * read/write directories and files. | |
| * | |
| * This is the default. | |
| */ | |
| /* | |
| * Mode mask for data directory permissions that also allows group read/execute. | |
| */ | |
| /* Default mode for creating directories */ | |
| /* Mode for creating directories that allows group read/execute */ | |
| /* Default mode for creating files */ | |
| /* Mode for creating files that allows group read */ | |
| /* Modes for creating directories and files in the data directory */ | |
| extern PGDLLIMPORT int pg_dir_create_mode; | |
| extern PGDLLIMPORT int pg_file_create_mode; | |
| /* Mode mask to pass to umask() */ | |
| extern PGDLLIMPORT int pg_mode_mask; | |
| /* Set permissions and mask based on the provided mode */ | |
| extern void SetDataDirectoryCreatePerm(int dataDirMode); | |
| /* Set permissions and mask based on the mode of the data directory */ | |
| extern bool GetDataDirectoryCreatePerm(const char *dataDir); | |