Fix that pgpool_pgctl can be executed only when the login user is super user in backe...
authorNozomi Anzai <anzai@sraoss.co.jp>
Wed, 25 Dec 2013 10:43:33 +0000 (19:43 +0900)
committerNozomi Anzai <anzai@sraoss.co.jp>
Wed, 25 Dec 2013 10:43:33 +0000 (19:43 +0900)
commit9cf159246892e3388b36f4b43cccc0c62e54a29f
tree38e0b3b8c9183ed9de979cd9d28f4a66a0bd55ba
parent07ec00b1be4fa5cebb5f17da8b85cac965bfd3db
Fix that pgpool_pgctl can be executed only when the login user is super user in backend nodes.
Previously, any login user was able to try to execute pgpool_pgctl()
which could stop/restart/reload a backend node even if he was not a super user.
Also pgpool_pgctl() was executed by sr_check_user or health_check_user, but it wasn't reasonable.
This update is that buttons of stop/restart/reload are disabled when the login user isn't a super user
and that pgpool_pg_ctl() is executed by login user instead of sr_check_user or health_check_user
who don't have to be non-superuser.
Per [pgpool-general: 2338].
common.php
status.php
templates/elements/status_pgsql_buttons.tpl