selinux-refpolicy/refpolicy/policy/modules/services/postgresql.fc

41 lines
1.3 KiB
Plaintext
Raw Normal View History

2005-09-19 21:17:45 +00:00
#
# /etc
#
/etc/postgresql(/.*)? gen_context(system_u:object_r:postgresql_etc_t,s0)
2005-09-19 21:17:45 +00:00
#
# /usr
#
/usr/bin/initdb -- gen_context(system_u:object_r:postgresql_exec_t,s0)
/usr/bin/postgres -- gen_context(system_u:object_r:postgresql_exec_t,s0)
2005-09-19 21:17:45 +00:00
/usr/lib/pgsql/test/regres(/.*)? 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)
2005-09-19 21:17:45 +00:00
/usr/lib(64)?/postgresql/bin/.* -- gen_context(system_u:object_r:postgresql_exec_t,s0)
2005-09-19 21:17:45 +00:00
ifdef(`distro_debian', `
/usr/lib/postgresql/.*/bin/.* -- gen_context(system_u:object_r:postgresql_exec_t,s0)
')
2005-09-19 21:17:45 +00:00
ifdef(`distro_redhat', `
/usr/share/jonas/pgsql(/.*)? gen_context(system_u:object_r:postgresql_db_t,s0)
2005-09-19 21:17:45 +00:00
')
#
# /var
#
/var/lib/postgres(ql)?(/.*)? gen_context(system_u:object_r:postgresql_db_t,s0)
2005-09-19 21:17:45 +00:00
/var/lib/pgsql/data(/.*)? gen_context(system_u:object_r:postgresql_db_t,s0)
/var/lib/pgsql/pgstartup.log gen_context(system_u:object_r:postgresql_log_t,s0)
2005-09-19 21:17:45 +00:00
/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)
2005-09-19 21:17:45 +00:00
ifdef(`distro_redhat', `
/var/log/rhdb/rhdb(/.*)? gen_context(system_u:object_r:postgresql_log_t,s0)
2005-09-19 21:17:45 +00:00
')
/var/run/postgresql(/.*)? gen_context(system_u:object_r:postgresql_var_run_t,s0)