sepgsql: Adjust regression expected output
authorMichael Paquier <[email protected]>
Thu, 17 Aug 2023 01:51:26 +0000 (10:51 +0900)
committerMichael Paquier <[email protected]>
Thu, 17 Aug 2023 01:51:26 +0000 (10:51 +0900)
Oversight in 352ea3a, where support for these subcommands has been
added.

Per buildfarm member rhinoceros.

contrib/sepgsql/expected/alter.out
contrib/sepgsql/sql/alter.sql

index c604cc77682468193c892e03d07f8b341d115582..ae43537505296755097a24facfce6261380ba750 100644 (file)
@@ -207,11 +207,15 @@ LOG:  SELinux: allowed { execute } scontext=unconfined_u:unconfined_r:sepgsql_re
 ALTER TABLE regtest_table DROP CONSTRAINT test_ck;      -- not supported
 CREATE TRIGGER regtest_test_trig BEFORE UPDATE ON regtest_table
     FOR EACH ROW EXECUTE PROCEDURE suppress_redundant_updates_trigger();
-ALTER TABLE regtest_table DISABLE TRIGGER regtest_test_trig;    -- not supported
-ALTER TABLE regtest_table ENABLE  TRIGGER regtest_test_trig;    -- not supported
+ALTER TABLE regtest_table DISABLE TRIGGER regtest_test_trig;
+LOG:  SELinux: allowed { setattr } scontext=unconfined_u:unconfined_r:sepgsql_regtest_superuser_t:s0 tcontext=unconfined_u:object_r:sepgsql_table_t:s0 tclass=db_table name="regtest_schema_2.regtest_table" permissive=0
+ALTER TABLE regtest_table ENABLE  TRIGGER regtest_test_trig;
+LOG:  SELinux: allowed { setattr } scontext=unconfined_u:unconfined_r:sepgsql_regtest_superuser_t:s0 tcontext=unconfined_u:object_r:sepgsql_table_t:s0 tclass=db_table name="regtest_schema_2.regtest_table" permissive=0
 CREATE RULE regtest_test_rule AS ON INSERT TO regtest_table_3 DO ALSO NOTHING;
-ALTER TABLE regtest_table_3 DISABLE RULE regtest_test_rule;     -- not supported
-ALTER TABLE regtest_table_3 ENABLE RULE regtest_test_rule;      -- not supported
+ALTER TABLE regtest_table_3 DISABLE RULE regtest_test_rule;
+LOG:  SELinux: allowed { setattr } scontext=unconfined_u:unconfined_r:sepgsql_regtest_superuser_t:s0 tcontext=unconfined_u:object_r:sepgsql_table_t:s0 tclass=db_table name="regtest_schema.regtest_table_3" permissive=0
+ALTER TABLE regtest_table_3 ENABLE RULE regtest_test_rule;
+LOG:  SELinux: allowed { setattr } scontext=unconfined_u:unconfined_r:sepgsql_regtest_superuser_t:s0 tcontext=unconfined_u:object_r:sepgsql_table_t:s0 tclass=db_table name="regtest_schema.regtest_table_3" permissive=0
 ALTER TABLE regtest_table SET (fillfactor = 75);
 LOG:  SELinux: allowed { setattr } scontext=unconfined_u:unconfined_r:sepgsql_regtest_superuser_t:s0 tcontext=unconfined_u:object_r:sepgsql_table_t:s0 tclass=db_table name="regtest_schema_2.regtest_table" permissive=0
 ALTER TABLE regtest_table RESET (fillfactor);
@@ -281,8 +285,10 @@ LOG:  SELinux: allowed { execute } scontext=unconfined_u:unconfined_r:sepgsql_re
 ALTER TABLE regtest_table_part DROP CONSTRAINT test_ck;      -- not supported by sepgsql
 CREATE TRIGGER regtest_part_test_trig BEFORE UPDATE ON regtest_table_part
     FOR EACH ROW EXECUTE PROCEDURE suppress_redundant_updates_trigger();
-ALTER TABLE regtest_table_part DISABLE TRIGGER regtest_part_test_trig;    -- not supported by sepgsql
-ALTER TABLE regtest_table_part ENABLE  TRIGGER regtest_part_test_trig;    -- not supported by sepgsql
+ALTER TABLE regtest_table_part DISABLE TRIGGER regtest_part_test_trig;
+LOG:  SELinux: allowed { setattr } scontext=unconfined_u:unconfined_r:sepgsql_regtest_superuser_t:s0 tcontext=unconfined_u:object_r:sepgsql_table_t:s0 tclass=db_table name="regtest_schema_2.regtest_table_part" permissive=0
+ALTER TABLE regtest_table_part ENABLE  TRIGGER regtest_part_test_trig;
+LOG:  SELinux: allowed { setattr } scontext=unconfined_u:unconfined_r:sepgsql_regtest_superuser_t:s0 tcontext=unconfined_u:object_r:sepgsql_table_t:s0 tclass=db_table name="regtest_schema_2.regtest_table_part" permissive=0
 ALTER TABLE regtest_table_part SET (fillfactor = 75);
 LOG:  SELinux: allowed { setattr } scontext=unconfined_u:unconfined_r:sepgsql_regtest_superuser_t:s0 tcontext=unconfined_u:object_r:sepgsql_table_t:s0 tclass=db_table name="regtest_schema_2.regtest_table_part" permissive=0
 ALTER TABLE regtest_table_part RESET (fillfactor);
index f1144492329b3fb678092cf52380a27f9aa2e26d..fd711f3f7abb97d4494619835806e0d1be2e2a15 100644 (file)
@@ -127,12 +127,12 @@ ALTER TABLE regtest_table DROP CONSTRAINT test_ck;      -- not supported
 CREATE TRIGGER regtest_test_trig BEFORE UPDATE ON regtest_table
     FOR EACH ROW EXECUTE PROCEDURE suppress_redundant_updates_trigger();
 
-ALTER TABLE regtest_table DISABLE TRIGGER regtest_test_trig;    -- not supported
-ALTER TABLE regtest_table ENABLE  TRIGGER regtest_test_trig;    -- not supported
+ALTER TABLE regtest_table DISABLE TRIGGER regtest_test_trig;
+ALTER TABLE regtest_table ENABLE  TRIGGER regtest_test_trig;
 
 CREATE RULE regtest_test_rule AS ON INSERT TO regtest_table_3 DO ALSO NOTHING;
-ALTER TABLE regtest_table_3 DISABLE RULE regtest_test_rule;     -- not supported
-ALTER TABLE regtest_table_3 ENABLE RULE regtest_test_rule;      -- not supported
+ALTER TABLE regtest_table_3 DISABLE RULE regtest_test_rule;
+ALTER TABLE regtest_table_3 ENABLE RULE regtest_test_rule;
 
 ALTER TABLE regtest_table SET (fillfactor = 75);
 ALTER TABLE regtest_table RESET (fillfactor);
@@ -173,8 +173,8 @@ ALTER TABLE regtest_table_part DROP CONSTRAINT test_ck;      -- not supported by
 CREATE TRIGGER regtest_part_test_trig BEFORE UPDATE ON regtest_table_part
     FOR EACH ROW EXECUTE PROCEDURE suppress_redundant_updates_trigger();
 
-ALTER TABLE regtest_table_part DISABLE TRIGGER regtest_part_test_trig;    -- not supported by sepgsql
-ALTER TABLE regtest_table_part ENABLE  TRIGGER regtest_part_test_trig;    -- not supported by sepgsql
+ALTER TABLE regtest_table_part DISABLE TRIGGER regtest_part_test_trig;
+ALTER TABLE regtest_table_part ENABLE  TRIGGER regtest_part_test_trig;
 
 ALTER TABLE regtest_table_part SET (fillfactor = 75);
 ALTER TABLE regtest_table_part RESET (fillfactor);