pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Fix contrib/sepgsql test policy to work with latest SELinux rele 7+ messages / 1 participants [nested] [flat]
* pgsql: Fix contrib/sepgsql test policy to work with latest SELinux rele @ 2019-07-25 15:03 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2019-07-25 15:03 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix contrib/sepgsql test policy to work with latest SELinux releases. As of Fedora 30, it seems that the system-provided macros for setting up user privileges in SELinux policies don't grant the ability to read /etc/passwd, as they formerly did. This restriction breaks psql (which tries to use getpwuid() to obtain the user name it's running under) and thereby the contrib/sepgsql regression test. Add explicit specifications that we need the right to read /etc/passwd. Mike Palmiotto, per a report from me. Back-patch to all supported branches. Discussion: https://postgr.es/m/23856.1563381159@sss.pgh.pa.us Branch ------ REL_10_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/5c3d47287fd7c76aa376d035695bffde6d59a7c8 Modified Files -------------- contrib/sepgsql/sepgsql-regtest.te | 11 +++++++++++ 1 file changed, 11 insertions(+) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Fix contrib/sepgsql test policy to work with latest SELinux rele @ 2019-07-25 15:03 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2019-07-25 15:03 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix contrib/sepgsql test policy to work with latest SELinux releases. As of Fedora 30, it seems that the system-provided macros for setting up user privileges in SELinux policies don't grant the ability to read /etc/passwd, as they formerly did. This restriction breaks psql (which tries to use getpwuid() to obtain the user name it's running under) and thereby the contrib/sepgsql regression test. Add explicit specifications that we need the right to read /etc/passwd. Mike Palmiotto, per a report from me. Back-patch to all supported branches. Discussion: https://postgr.es/m/23856.1563381159@sss.pgh.pa.us Branch ------ REL9_6_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/0a9ba5baac7da710972d507ab3b59a3dc1951319 Modified Files -------------- contrib/sepgsql/sepgsql-regtest.te | 11 +++++++++++ 1 file changed, 11 insertions(+) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Fix contrib/sepgsql test policy to work with latest SELinux rele @ 2019-07-25 15:03 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2019-07-25 15:03 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix contrib/sepgsql test policy to work with latest SELinux releases. As of Fedora 30, it seems that the system-provided macros for setting up user privileges in SELinux policies don't grant the ability to read /etc/passwd, as they formerly did. This restriction breaks psql (which tries to use getpwuid() to obtain the user name it's running under) and thereby the contrib/sepgsql regression test. Add explicit specifications that we need the right to read /etc/passwd. Mike Palmiotto, per a report from me. Back-patch to all supported branches. Discussion: https://postgr.es/m/23856.1563381159@sss.pgh.pa.us Branch ------ REL9_4_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/0e259d4bc78956c173c9a81c03713e17b6513738 Modified Files -------------- contrib/sepgsql/sepgsql-regtest.te | 11 +++++++++++ 1 file changed, 11 insertions(+) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Fix contrib/sepgsql test policy to work with latest SELinux rele @ 2019-07-25 15:03 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2019-07-25 15:03 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix contrib/sepgsql test policy to work with latest SELinux releases. As of Fedora 30, it seems that the system-provided macros for setting up user privileges in SELinux policies don't grant the ability to read /etc/passwd, as they formerly did. This restriction breaks psql (which tries to use getpwuid() to obtain the user name it's running under) and thereby the contrib/sepgsql regression test. Add explicit specifications that we need the right to read /etc/passwd. Mike Palmiotto, per a report from me. Back-patch to all supported branches. Discussion: https://postgr.es/m/23856.1563381159@sss.pgh.pa.us Branch ------ REL_12_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/665329abe7effa688dd96b34a0130109b669d36d Modified Files -------------- contrib/sepgsql/sepgsql-regtest.te | 11 +++++++++++ 1 file changed, 11 insertions(+) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Fix contrib/sepgsql test policy to work with latest SELinux rele @ 2019-07-25 15:03 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2019-07-25 15:03 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix contrib/sepgsql test policy to work with latest SELinux releases. As of Fedora 30, it seems that the system-provided macros for setting up user privileges in SELinux policies don't grant the ability to read /etc/passwd, as they formerly did. This restriction breaks psql (which tries to use getpwuid() to obtain the user name it's running under) and thereby the contrib/sepgsql regression test. Add explicit specifications that we need the right to read /etc/passwd. Mike Palmiotto, per a report from me. Back-patch to all supported branches. Discussion: https://postgr.es/m/23856.1563381159@sss.pgh.pa.us Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/f5a4ab23e42ac35862e3f7dc021a41f41a34386c Modified Files -------------- contrib/sepgsql/sepgsql-regtest.te | 11 +++++++++++ 1 file changed, 11 insertions(+) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Fix contrib/sepgsql test policy to work with latest SELinux rele @ 2019-07-25 15:03 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2019-07-25 15:03 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix contrib/sepgsql test policy to work with latest SELinux releases. As of Fedora 30, it seems that the system-provided macros for setting up user privileges in SELinux policies don't grant the ability to read /etc/passwd, as they formerly did. This restriction breaks psql (which tries to use getpwuid() to obtain the user name it's running under) and thereby the contrib/sepgsql regression test. Add explicit specifications that we need the right to read /etc/passwd. Mike Palmiotto, per a report from me. Back-patch to all supported branches. Discussion: https://postgr.es/m/23856.1563381159@sss.pgh.pa.us Branch ------ REL_11_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/5a1c61bdf4c010dd4de197e3fd1678f518f10f75 Modified Files -------------- contrib/sepgsql/sepgsql-regtest.te | 11 +++++++++++ 1 file changed, 11 insertions(+) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Fix contrib/sepgsql test policy to work with latest SELinux rele @ 2019-07-25 15:03 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2019-07-25 15:03 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix contrib/sepgsql test policy to work with latest SELinux releases. As of Fedora 30, it seems that the system-provided macros for setting up user privileges in SELinux policies don't grant the ability to read /etc/passwd, as they formerly did. This restriction breaks psql (which tries to use getpwuid() to obtain the user name it's running under) and thereby the contrib/sepgsql regression test. Add explicit specifications that we need the right to read /etc/passwd. Mike Palmiotto, per a report from me. Back-patch to all supported branches. Discussion: https://postgr.es/m/23856.1563381159@sss.pgh.pa.us Branch ------ REL9_5_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/b22e249837ad51753476186dd1e80a18f598992f Modified Files -------------- contrib/sepgsql/sepgsql-regtest.te | 11 +++++++++++ 1 file changed, 11 insertions(+) ^ permalink raw reply [nested|flat] 7+ messages in thread
end of thread, other threads:[~2019-07-25 15:03 UTC | newest] Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2019-07-25 15:03 pgsql: Fix contrib/sepgsql test policy to work with latest SELinux rele Tom Lane <tgl@sss.pgh.pa.us> 2019-07-25 15:03 pgsql: Fix contrib/sepgsql test policy to work with latest SELinux rele Tom Lane <tgl@sss.pgh.pa.us> 2019-07-25 15:03 pgsql: Fix contrib/sepgsql test policy to work with latest SELinux rele Tom Lane <tgl@sss.pgh.pa.us> 2019-07-25 15:03 pgsql: Fix contrib/sepgsql test policy to work with latest SELinux rele Tom Lane <tgl@sss.pgh.pa.us> 2019-07-25 15:03 pgsql: Fix contrib/sepgsql test policy to work with latest SELinux rele Tom Lane <tgl@sss.pgh.pa.us> 2019-07-25 15:03 pgsql: Fix contrib/sepgsql test policy to work with latest SELinux rele Tom Lane <tgl@sss.pgh.pa.us> 2019-07-25 15:03 pgsql: Fix contrib/sepgsql test policy to work with latest SELinux rele Tom Lane <tgl@sss.pgh.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox