PostgreSQL Source Code
git master
|
#include <sys/stat.h>
Go to the source code of this file.
Macros | |
#define | PG_MODE_MASK_OWNER (S_IRWXG | S_IRWXO) |
#define | PG_MODE_MASK_GROUP (S_IWGRP | S_IRWXO) |
#define | PG_DIR_MODE_OWNER S_IRWXU |
#define | PG_DIR_MODE_GROUP (S_IRWXU | S_IRGRP | S_IXGRP) |
#define | PG_FILE_MODE_OWNER (S_IRUSR | S_IWUSR) |
#define | PG_FILE_MODE_GROUP (S_IRUSR | S_IWUSR | S_IRGRP) |
Functions | |
void | SetDataDirectoryCreatePerm (int dataDirMode) |
bool | GetDataDirectoryCreatePerm (const char *dataDir) |
Variables | |
PGDLLIMPORT int | pg_dir_create_mode |
PGDLLIMPORT int | pg_file_create_mode |
PGDLLIMPORT int | pg_mode_mask |
Definition at line 35 of file file_perm.h.
#define PG_DIR_MODE_OWNER S_IRWXU |
Definition at line 32 of file file_perm.h.
Definition at line 41 of file file_perm.h.
Definition at line 38 of file file_perm.h.
Definition at line 29 of file file_perm.h.
Definition at line 24 of file file_perm.h.
void SetDataDirectoryCreatePerm | ( | int | dataDirMode | ) |
Definition at line 34 of file file_perm.c.
References pg_dir_create_mode, PG_DIR_MODE_GROUP, PG_DIR_MODE_OWNER, pg_file_create_mode, PG_FILE_MODE_GROUP, PG_FILE_MODE_OWNER, pg_mode_mask, PG_MODE_MASK_GROUP, and PG_MODE_MASK_OWNER.
Referenced by check_input_dir_permissions(), checkDataDir(), main(), and RetrieveDataDirCreatePerm().
|
extern |
Definition at line 18 of file file_perm.c.
Referenced by checkDataDir(), convert_link_to_directory(), create_data_directory(), create_fullpage_directory(), create_output_directory(), create_tablespace_directories(), create_target_dir(), create_xlog_or_symlink(), extract_directory(), initialize_data_directory(), main(), make_outputdirs(), MakePGDirectory(), process_directory_recursively(), recovery_create_dbdir(), SetDataDirectoryCreatePerm(), setup_config(), StartLogStreamer(), TablespaceCreateDbspace(), and verify_dir_is_empty_or_create().
|
extern |
Definition at line 19 of file file_perm.c.
Referenced by astreamer_inject_file(), BasicOpenFile(), check_copy_file_range(), check_file_clone(), cloneFile(), copy_file_blocks(), copy_file_by_range(), copy_file_clone(), copyFile(), copyFileByRange(), CreateLockFile(), dir_open_for_write(), flush_manifest(), open_target_file(), OpenTransientFile(), PathNameOpenFile(), rewriteVisibilityMap(), sendFileWithContent(), SetDataDirectoryCreatePerm(), setup_config(), tar_open_for_write(), truncate_target_file(), update_controlfile(), write_backup_label(), write_reconstructed_file(), and WriteEmptyXLOG().
|
extern |
Definition at line 25 of file file_perm.c.
Referenced by checkDataDir(), initialize_data_directory(), main(), SetDataDirectoryCreatePerm(), and update_metainfo_datafile().