Skip to content
This repository has been archived by the owner on Feb 24, 2022. It is now read-only.

Commit

Permalink
Add DServer::EventConfirmSubscription command ... (#13)
Browse files Browse the repository at this point in the history
... to the default list of commands always allowed by TangoAccessControl
Thanks @egorbe for reporting this tango-controls/cppTango#507 issue and for proposing this solution.
  • Loading branch information
bourtemb authored Jan 24, 2019
1 parent fd1fb05 commit 0a0ca9c
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions create_db.sql.in
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ INSERT INTO property_class VALUES('DServer','AllowedAccessCmd',7,'QueryWizardDev
INSERT INTO property_class VALUES('DServer','AllowedAccessCmd',8,'QueryWizardClassProperty',NOW(),NOW(),NULL);
INSERT INTO property_class VALUES('DServer','AllowedAccessCmd',9,'QuerySubDevice',NOW(),NOW(),NULL);
INSERT INTO property_class VALUES('DServer','AllowedAccessCmd',10,'ZMQEventSubscriptionChange',NOW(),NOW(),NULL);
INSERT INTO property_class VALUES('DServer','AllowedAccessCmd',11,'EventConfirmSubscription',NOW(),NOW(),NULL);

#
#
Expand Down
1 change: 1 addition & 0 deletions update_db5.sql.in
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ INSERT INTO property_class VALUES('DServer','AllowedAccessCmd',7,'QueryWizardDev
INSERT INTO property_class VALUES('DServer','AllowedAccessCmd',8,'QueryWizardClassProperty',NULL,NULL,NULL);
INSERT INTO property_class VALUES('DServer','AllowedAccessCmd',9,'QuerySubDevice',NULL,NULL,NULL);
INSERT INTO property_class VALUES('DServer','AllowedAccessCmd',10,'ZMQEventSubscriptionChange',NULL,NULL,NULL);
INSERT INTO property_class VALUES('DServer','AllowedAccessCmd',11,'EventConfirmSubscription',NULL,NULL,NULL);

#
#
Expand Down
1 change: 1 addition & 0 deletions update_db6.sql.in
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ INSERT INTO property_class VALUES('Database','AllowedAccessCmd',34,'DbGetCSDbSer

INSERT INTO property_class VALUES('DServer','AllowedAccessCmd',9,'QuerySubDevice',NULL,NULL,NULL);
INSERT INTO property_class VALUES('DServer','AllowedAccessCmd',10,'ZMQEventSubscriptionChange',NULL,NULL,NULL);
INSERT INTO property_class VALUES('DServer','AllowedAccessCmd',11,'EventConfirmSubscription',NULL,NULL,NULL);

#
#
Expand Down
1 change: 1 addition & 0 deletions update_db7.sql.in
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ INSERT INTO property_class VALUES('Database','AllowedAccessCmd',45,'DbGetForward

DELETE FROM property_class WHERE class='DServer' AND count >= 10;
INSERT INTO property_class VALUES('DServer','AllowedAccessCmd',10,'ZMQEventSubscriptionChange',NOW(),NOW(),NULL);
INSERT INTO property_class VALUES('DServer','AllowedAccessCmd',11,'EventConfirmSubscription',NOW(),NOW(),NULL);

DELETE FROM property_class WHERE class='Starter' AND count >= 5;
INSERT INTO property_class VALUES('Starter','AllowedAccessCmd',5,'UpdateServerList',NOW(),NOW(),NULL);
Expand Down
5 changes: 4 additions & 1 deletion update_db8.sql.in
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ ALTER TABLE device_history_id MODIFY id bigint unsigned NOT NULL default '0';
ALTER TABLE object_history_id MODIFY id bigint unsigned NOT NULL default '0';

#
# Update entries in the property_class tables for database
# Update entries in the property_class tables for controlled access service
#

DELETE FROM property_class WHERE class='Database' AND count >= 35;
Expand All @@ -122,6 +122,9 @@ INSERT INTO property_class VALUES('Database','AllowedAccessCmd',43,'DbGetDeviceP
INSERT INTO property_class VALUES('Database','AllowedAccessCmd',44,'DbGetAttributeAliasList',NOW(),NOW(),NULL);
INSERT INTO property_class VALUES('Database','AllowedAccessCmd',45,'DbGetForwardedAttributeListForDevice',NOW(),NOW(),NULL);

DELETE FROM property_class WHERE class='DServer' AND count >= 11;
INSERT INTO property_class VALUES('DServer','AllowedAccessCmd',11,'EventConfirmSubscription',NOW(),NOW(),NULL);

#
# Remove history entries for the property used by memorized attribute
#
Expand Down

0 comments on commit 0a0ca9c

Please sign in to comment.