git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: f7a2002) | patch
Update sepgsql to add mandatory access control for TRUNCATE
2019年11月23日 15:41:52 +0000 (10:41 -0500)
2019年11月23日 15:46:44 +0000 (10:46 -0500)
commit 4f66c93f61439b4db866b21cc1ecd5bf815564ef
Update sepgsql to add mandatory access control for TRUNCATE

Use SELinux "db_table: { truncate }" to check if permission is granted to
TRUNCATE. Update example SELinux policy to grant needed permission for
TRUNCATE. Add new regression test to demonstrate a positive and negative
cases. Test will only be run if the loaded SELinux policy has the
"db_table: { truncate }" permission. Makes use of recent commit which added
object TRUNCATE hook. Patch by Yuli Khodorkovskiy with minor
editorialization by me. Not back-patched because the object TRUNCATE hook
was not.

Author: Yuli Khodorkovskiy
Reviewed-by: Joe Conway
Discussion: https://postgr.es/m/CAFL5wJcomybj1Xdw7qWmPJRpGuFukKgNrDb6uVBaCMgYS9dkaA%40mail.gmail.com
contrib/sepgsql/expected/truncate.out [new file with mode: 0644] blob
contrib/sepgsql/hooks.c diff | blob | blame | history
contrib/sepgsql/relation.c diff | blob | blame | history
contrib/sepgsql/selinux.c diff | blob | blame | history
contrib/sepgsql/sepgsql-regtest.te diff | blob | blame | history
contrib/sepgsql/sepgsql.h diff | blob | blame | history
contrib/sepgsql/sql/truncate.sql [new file with mode: 0644] blob
contrib/sepgsql/test_sepgsql diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /