policy patch
The attached patch fixes a problem with LVM on Fedora, some annoying audit messages from rpm, and has some of the stuff that's needed for Postgresql (NB it's not enough to make Postgresql fully functional but it's a definite improvement over what's currently there so it's worth having).
Steve, please put this into Sourceforge.
Signature · 4 lines
http://www.coker.com.au/selinux/ My NSA Security Enhanced Linux packages http://www.coker.com.au/bonnie++/ Bonnie++ hard drive benchmark http://www.coker.com.au/postal/ Postal SMTP/POP benchmark http://www.coker.com.au/~russell/ My home page
domains/program/unused/lvm.te +1 -0
@@ -93,6 +93,7 @@ dontaudit lvm_t initctl_t:fifo_file getattr; dontaudit lvm_t sbin_t:file getattr; allow lvm_t lvm_control_t:chr_file rw_file_perms; +allow initrc_t lvm_control_t:chr_file unlink; dontaudit lvm_t var_run_t:dir getattr; allow lvm_t tmpfs_t:dir getattr;
domains/program/unused/rpm.te +2 -0
@@ -93,6 +93,8 @@ allow rpm_t sysfs_t:filesystem getattr; allow rpm_t tmpfs_t:filesystem getattr; dontaudit rpm_t domain:{ socket unix_dgram_socket udp_socket unix_stream_socket tcp_socket fifo_file rawip_socket packet_socket } getattr; +allow rpm_t fs_type:dir getattr; +allow rpm_t fs_type:filesystem getattr; # allow compiling and loading new policy create_dir_file(rpm_t, { policy_src_t policy_config_t })
file_contexts/program/postgresql.fc +13 -0
@@ -1,5 +1,18 @@ # postgresql - ldap server /usr/lib(64)?/postgresql/bin/.* -- system_u:object_r:postgresql_exec_t +/usr/bin/postgres -- system_u:object_r:postgresql_exec_t +/usr/bin/pg_dump -- system_u:object_r:postgresql_exec_t +/usr/bin/pg_dumpall -- system_u:object_r:postgresql_exec_t +/usr/bin/pg_resetxlog -- system_u:object_r:postgresql_exec_t +/etc/rc.d/init.d/postgresql -- system_u:object_r:postgresql_exec_t + +# not sure whether the following binaries need labelling +/usr/bin/createlang -- system_u:object_r:postgresql_exec_t +/usr/bin/droplang -- system_u:object_r:postgresql_exec_t +/usr/bin/pg_encoding -- system_u:object_r:postgresql_exec_t +/usr/bin/pg_id -- system_u:object_r:postgresql_exec_t +/usr/bin/pg_restore -- system_u:object_r:postgresql_exec_t + /var/lib/postgres(/.*)? system_u:object_r:postgresql_db_t /var/lib/pgsql(/.*)? system_u:object_r:postgresql_db_t /var/run/postgresql(/.*)? system_u:object_r:postgresql_var_run_t
Quoted 6 lines · Russell Coker
The attached patch fixes a problem with LVM on Fedora, some annoying audit messages from rpm, and has some of the stuff that's needed for Postgresql (NB it's not enough to make Postgresql fully functional but it's a definite improvement over what's currently there so it's worth having).
Steve, please put this into Sourceforge.
Thanks, merged.
Signature · 8 lines
Stephen Smalley <[email protected]> National Security Agency -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.