Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd3c25ca

Browse files
committed
sepgsql: Adjust regression expected output
Oversight in352ea3a, where support for these subcommands has beenadded.Per buildfarm member rhinoceros.
1 parent352ea3a commitd3c25ca

File tree

2 files changed

+18
-12
lines changed

2 files changed

+18
-12
lines changed

‎contrib/sepgsql/expected/alter.out

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -207,11 +207,15 @@ LOG: SELinux: allowed { execute } scontext=unconfined_u:unconfined_r:sepgsql_re
207207
ALTER TABLE regtest_table DROP CONSTRAINT test_ck; -- not supported
208208
CREATE TRIGGER regtest_test_trig BEFORE UPDATE ON regtest_table
209209
FOR EACH ROW EXECUTE PROCEDURE suppress_redundant_updates_trigger();
210-
ALTER TABLE regtest_table DISABLE TRIGGER regtest_test_trig; -- not supported
211-
ALTER TABLE regtest_table ENABLE TRIGGER regtest_test_trig; -- not supported
210+
ALTER TABLE regtest_table DISABLE TRIGGER regtest_test_trig;
211+
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
212+
ALTER TABLE regtest_table ENABLE TRIGGER regtest_test_trig;
213+
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
212214
CREATE RULE regtest_test_rule AS ON INSERT TO regtest_table_3 DO ALSO NOTHING;
213-
ALTER TABLE regtest_table_3 DISABLE RULE regtest_test_rule; -- not supported
214-
ALTER TABLE regtest_table_3 ENABLE RULE regtest_test_rule; -- not supported
215+
ALTER TABLE regtest_table_3 DISABLE RULE regtest_test_rule;
216+
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
217+
ALTER TABLE regtest_table_3 ENABLE RULE regtest_test_rule;
218+
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
215219
ALTER TABLE regtest_table SET (fillfactor = 75);
216220
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
217221
ALTER TABLE regtest_table RESET (fillfactor);
@@ -281,8 +285,10 @@ LOG: SELinux: allowed { execute } scontext=unconfined_u:unconfined_r:sepgsql_re
281285
ALTER TABLE regtest_table_part DROP CONSTRAINT test_ck; -- not supported by sepgsql
282286
CREATE TRIGGER regtest_part_test_trig BEFORE UPDATE ON regtest_table_part
283287
FOR EACH ROW EXECUTE PROCEDURE suppress_redundant_updates_trigger();
284-
ALTER TABLE regtest_table_part DISABLE TRIGGER regtest_part_test_trig; -- not supported by sepgsql
285-
ALTER TABLE regtest_table_part ENABLE TRIGGER regtest_part_test_trig; -- not supported by sepgsql
288+
ALTER TABLE regtest_table_part DISABLE TRIGGER regtest_part_test_trig;
289+
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
290+
ALTER TABLE regtest_table_part ENABLE TRIGGER regtest_part_test_trig;
291+
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
286292
ALTER TABLE regtest_table_part SET (fillfactor = 75);
287293
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
288294
ALTER TABLE regtest_table_part RESET (fillfactor);

‎contrib/sepgsql/sql/alter.sql

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -127,12 +127,12 @@ ALTER TABLE regtest_table DROP CONSTRAINT test_ck; -- not supported
127127
CREATETRIGGERregtest_test_trig BEFOREUPDATEON regtest_table
128128
FOR EACH ROW EXECUTE PROCEDURE suppress_redundant_updates_trigger();
129129

130-
ALTERTABLE regtest_table DISABLE TRIGGER regtest_test_trig;-- not supported
131-
ALTERTABLE regtest_table ENABLE TRIGGER regtest_test_trig;-- not supported
130+
ALTERTABLE regtest_table DISABLE TRIGGER regtest_test_trig;
131+
ALTERTABLE regtest_table ENABLE TRIGGER regtest_test_trig;
132132

133133
CREATERULEregtest_test_ruleASON INSERT TO regtest_table_3 DO ALSO NOTHING;
134-
ALTERTABLE regtest_table_3 DISABLE RULE regtest_test_rule;-- not supported
135-
ALTERTABLE regtest_table_3 ENABLE RULE regtest_test_rule;-- not supported
134+
ALTERTABLE regtest_table_3 DISABLE RULE regtest_test_rule;
135+
ALTERTABLE regtest_table_3 ENABLE RULE regtest_test_rule;
136136

137137
ALTERTABLE regtest_tableSET (fillfactor=75);
138138
ALTERTABLE regtest_table RESET (fillfactor);
@@ -173,8 +173,8 @@ ALTER TABLE regtest_table_part DROP CONSTRAINT test_ck; -- not supported by
173173
CREATETRIGGERregtest_part_test_trig BEFOREUPDATEON regtest_table_part
174174
FOR EACH ROW EXECUTE PROCEDURE suppress_redundant_updates_trigger();
175175

176-
ALTERTABLE regtest_table_part DISABLE TRIGGER regtest_part_test_trig;-- not supported by sepgsql
177-
ALTERTABLE regtest_table_part ENABLE TRIGGER regtest_part_test_trig;-- not supported by sepgsql
176+
ALTERTABLE regtest_table_part DISABLE TRIGGER regtest_part_test_trig;
177+
ALTERTABLE regtest_table_part ENABLE TRIGGER regtest_part_test_trig;
178178

179179
ALTERTABLE regtest_table_partSET (fillfactor=75);
180180
ALTERTABLE regtest_table_part RESET (fillfactor);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp