Skip to content
Snippets Groups Projects
  1. Mar 15, 2012
    • Robert Haas's avatar
      sepgsql_setcon(). · 523176cb
      Robert Haas authored
      This is intended as infrastructure to allow sepgsql to cooperate with
      connection pooling software, by allowing the effective security label
      to be set for each new connection.
      
      KaiGai Kohei, reviewed by Yeb Havinga.
      523176cb
  2. Mar 09, 2012
  3. Feb 15, 2012
    • Robert Haas's avatar
      sepgsql: Move some code from hooks.c to label.c · d44a3fb5
      Robert Haas authored
      This is some preliminary refactoring related to a pending patch
      to allow sepgsql-enable sessions to make dynamic label transitions.
      But this commit doesn't involve any functional change: it just puts
      some bits of code in more logical places.
      
      KaiGai Kohei
      d44a3fb5
  4. Jan 02, 2012
  5. Dec 21, 2011
  6. Sep 28, 2011
    • Tom Lane's avatar
      Take sepgsql regression tests out of the regular regression test mechanism. · cc4ff874
      Tom Lane authored
      Because these tests require root privileges, not to mention invasive
      changes to the security configuration of the host system, it's not
      reasonable for them to be invoked by a regular "make check" or "make
      installcheck".  Instead, dike out the Makefile's knowledge of the tests,
      and change chkselinuxenv (now renamed "test_sepgsql") into a script that
      verifies the environment is workable and then runs the tests.  It's
      expected that test_sepgsql will only be run manually.
      
      While at it, do some cleanup in the error checking in the script, and
      do some wordsmithing in the documentation.
      cc4ff874
  7. Sep 27, 2011
  8. Sep 23, 2011
  9. Sep 01, 2011
  10. Aug 24, 2011
    • Tom Lane's avatar
      Fix pgxs.mk to always add --dbname=$(CONTRIB_TESTDB) to REGRESS_OPTS. · d1d38860
      Tom Lane authored
      The previous coding resulted in contrib modules unintentionally overriding
      the use of CONTRIB_TESTDB.  There seems no particularly good reason to
      allow that (after all, the makefile can set CONTRIB_TESTDB if that's really
      what it intends).
      
      In passing, document REGRESS_OPTS where the other pgxs.mk options are
      documented.
      
      Back-patch to 9.1 --- in prior versions, there were no cases of contrib
      modules setting REGRESS_OPTS without including the --dbname switch, so
      while the coding was fragile there was no actual bug.
      d1d38860
  11. Aug 19, 2011
    • Robert Haas's avatar
      Clean up 'chkselinuxenv' script. · a4b3feeb
      Robert Haas authored
      Eliminate dependencies on "which", as we don't really need that to be
      installed for proper testing.  Don't number the tests, as that increases
      the footprint of every patch that wants to add or remove tests.  Make
      the test output more informative, so that it's a bit easier to see what
      went right (or wrong).  Spelling and grammar improvements.
      a4b3feeb
    • Robert Haas's avatar
      Fix contrib/sepgsql and contrib/xml2 to always link required libraries. · 10c378f2
      Robert Haas authored
      contrib/xml2 can get by without libxslt; the relevant features just
      won't work.  But if doesn't have libxml2, or if sepgsql doesn't have
      libselinux, the link succeeds but the module then fails to work at load
      time.  To avoid that, link the require libraries unconditionally, so
      that it will be clear at link-time that there is a problem.
      
      Per discussion with Tom Lane and KaiGai Kohei.
      10c378f2
    • Robert Haas's avatar
      Allow sepgsql regression tests to be run from a user homedir. · a64bdf5f
      Robert Haas authored
      KaiGai Kohei, with some changes by me.
      a64bdf5f
  12. Aug 18, 2011
  13. Jul 25, 2011
  14. Apr 10, 2011
  15. Apr 07, 2011
    • Tom Lane's avatar
      Revise the API for GUC variable assign hooks. · 2594cf0e
      Tom Lane authored
      The previous functions of assign hooks are now split between check hooks
      and assign hooks, where the former can fail but the latter shouldn't.
      Aside from being conceptually clearer, this approach exposes the
      "canonicalized" form of the variable value to guc.c without having to do
      an actual assignment.  And that lets us fix the problem recently noted by
      Bernd Helmle that the auto-tune patch for wal_buffers resulted in bogus
      log messages about "parameter "wal_buffers" cannot be changed without
      restarting the server".  There may be some speed advantage too, because
      this design lets hook functions avoid re-parsing variable values when
      restoring a previous state after a rollback (they can store a pre-parsed
      representation of the value instead).  This patch also resolves a
      longstanding annoyance about custom error messages from variable assign
      hooks: they should modify, not appear separately from, guc.c's own message
      about "invalid parameter value".
      2594cf0e
  16. Apr 04, 2011
  17. Mar 28, 2011
  18. Feb 17, 2011
  19. Feb 03, 2011
  20. Jan 24, 2011
Loading