57 lines
2.4 KiB
Text
57 lines
2.4 KiB
Text
|
#
|
||
|
# /etc
|
||
|
#
|
||
|
/etc/postgresql(/.*)? gen_context(system_u:object_r:postgresql_etc_t,s0)
|
||
|
/etc/rc\.d/init\.d/(se)?postgresql -- gen_context(system_u:object_r:postgresql_initrc_exec_t,s0)
|
||
|
/etc/sysconfig/pgsql(/.*)? gen_context(system_u:object_r:postgresql_etc_t,s0)
|
||
|
|
||
|
#
|
||
|
# /usr
|
||
|
#
|
||
|
/usr/bin/initdb(\.sepgsql)? -- gen_context(system_u:object_r:postgresql_exec_t,s0)
|
||
|
/usr/bin/(se)?postgres -- gen_context(system_u:object_r:postgresql_exec_t,s0)
|
||
|
/usr/bin/pg_ctl -- gen_context(system_u:object_r:postgresql_exec_t,s0)
|
||
|
/usr/bin/postgresql-check-db-dir -- gen_context(system_u:object_r:postgresql_exec_t,s0)
|
||
|
|
||
|
/usr/libexec/postgresql-ctl -- gen_context(system_u:object_r:postgresql_exec_t,s0)
|
||
|
|
||
|
/usr/lib/pgsql/test/regress(/.*)? gen_context(system_u:object_r:postgresql_db_t,s0)
|
||
|
/usr/lib/pgsql/test/regress/pg_regress -- gen_context(system_u:object_r:postgresql_exec_t,s0)
|
||
|
/usr/lib/postgresql/bin/.* -- gen_context(system_u:object_r:postgresql_exec_t,s0)
|
||
|
|
||
|
/usr/lib/systemd/system/postgresql.* -- gen_context(system_u:object_r:postgresql_unit_file_t,s0)
|
||
|
|
||
|
ifdef(`distro_debian', `
|
||
|
/usr/lib/postgresql/.*/bin/.* -- gen_context(system_u:object_r:postgresql_exec_t,s0)
|
||
|
')
|
||
|
|
||
|
ifdef(`distro_redhat', `
|
||
|
/usr/share/jonas/pgsql(/.*)? gen_context(system_u:object_r:postgresql_db_t,s0)
|
||
|
')
|
||
|
|
||
|
#
|
||
|
# /var
|
||
|
#
|
||
|
/var/lib/postgres(ql)?(/.*)? gen_context(system_u:object_r:postgresql_db_t,s0)
|
||
|
|
||
|
/var/lib/pgsql(/.*)? gen_context(system_u:object_r:postgresql_db_t,s0)
|
||
|
/var/lib/pgsql/logfile(/.*)? gen_context(system_u:object_r:postgresql_log_t,s0)
|
||
|
/var/lib/pgsql/.*\.log gen_context(system_u:object_r:postgresql_log_t,s0)
|
||
|
/var/lib/pgsql/data/pg_log(/.*)? gen_context(system_u:object_r:postgresql_log_t,s0)
|
||
|
/var/lib/pgsql/data/log(/.*)? gen_context(system_u:object_r:postgresql_log_t,s0)
|
||
|
|
||
|
/var/lib/sepgsql(/.*)? gen_context(system_u:object_r:postgresql_db_t,s0)
|
||
|
/var/lib/sepgsql/pgstartup\.log -- gen_context(system_u:object_r:postgresql_log_t,s0)
|
||
|
|
||
|
/var/log/postgres\.log.* -- gen_context(system_u:object_r:postgresql_log_t,s0)
|
||
|
/var/log/postgresql(/.*)? gen_context(system_u:object_r:postgresql_log_t,s0)
|
||
|
/var/log/sepostgresql\.log.* -- gen_context(system_u:object_r:postgresql_log_t,s0)
|
||
|
|
||
|
ifdef(`distro_redhat', `
|
||
|
/var/log/rhdb/rhdb(/.*)? gen_context(system_u:object_r:postgresql_log_t,s0)
|
||
|
')
|
||
|
|
||
|
/run/postgresql(/.*)? gen_context(system_u:object_r:postgresql_var_run_t,s0)
|
||
|
|
||
|
#/var/run/postmaster.* gen_context(system_u:object_r:postgresql_var_run_t,s0)
|