PostgreSQL Source Code: src/include/common/file_perm.h Source File (original) (raw)
Go to the documentation of this file.
1
2
3
4
5
6
7
8
9
10
11
12
13#ifndef FILE_PERM_H
14#define FILE_PERM_H
15
16#include <sys/stat.h>
17
18
19
20
21
22
23
24#define PG_MODE_MASK_OWNER (S_IRWXG | S_IRWXO)
25
26
27
28
29#define PG_MODE_MASK_GROUP (S_IWGRP | S_IRWXO)
30
31
32#define PG_DIR_MODE_OWNER S_IRWXU
33
34
35#define PG_DIR_MODE_GROUP (S_IRWXU | S_IRGRP | S_IXGRP)
36
37
38#define PG_FILE_MODE_OWNER (S_IRUSR | S_IWUSR)
39
40
41#define PG_FILE_MODE_GROUP (S_IRUSR | S_IWUSR | S_IRGRP)
42
43
46
47
49
50
52
53
55
56#endif
bool GetDataDirectoryCreatePerm(const char *dataDir)
PGDLLIMPORT int pg_mode_mask
PGDLLIMPORT int pg_file_create_mode
PGDLLIMPORT int pg_dir_create_mode
void SetDataDirectoryCreatePerm(int dataDirMode)