+static const char _update_[] = "update";
+
+/*
+ * the permissions
+ */
+static const struct afb_auth
+ auth_perm_widget = {
+ .type = afb_auth_Permission,
+ .text = FWK_PREFIX"permission:afm:system:widget"
+ },
+ auth_perm_widget_install = {
+ .type = afb_auth_Permission,
+ .text = FWK_PREFIX"permission:afm:system:widget:install"
+ },
+ auth_perm_widget_uninstall = {
+ .type = afb_auth_Permission,
+ .text = FWK_PREFIX"permission:afm:system:widget:uninstall"
+ },
+ auth_perm_widget_preinstall = {
+ .type = afb_auth_Permission,
+ .text = FWK_PREFIX"permission:afm:system:widget:preinstall"
+ },
+ auth_perm_widget_detail = {
+ .type = afb_auth_Permission,
+ .text = FWK_PREFIX"permission:afm:system:widget:detail"
+ },
+ auth_perm_widget_start = {
+ .type = afb_auth_Permission,
+ .text = FWK_PREFIX"permission:afm:system:widget:start"
+ },
+ auth_perm_widget_view_all = {
+ .type = afb_auth_Permission,
+ .text = FWK_PREFIX"permission:afm:system:widget:view-all"
+ },
+ auth_perm_runner = {
+ .type = afb_auth_Permission,
+ .text = FWK_PREFIX"permission:afm:system:runner"
+ },
+ auth_perm_runner_state = {
+ .type = afb_auth_Permission,
+ .text = FWK_PREFIX"permission:afm:system:runner:state"
+ },
+ auth_perm_runner_kill = {
+ .type = afb_auth_Permission,
+ .text = FWK_PREFIX"permission:afm:system:runner:kill"
+ },
+
+ auth_install = {
+ .type = afb_auth_Or,
+ .first = &auth_perm_widget,
+ .next = &auth_perm_widget_install
+ },
+ auth_uninstall = {
+ .type = afb_auth_Or,
+ .first = &auth_perm_widget,
+ .next = &auth_perm_widget_uninstall
+ },
+ auth_preinstall = {
+ .type = afb_auth_Or,
+ .first = &auth_perm_widget,
+ .next = &auth_perm_widget_preinstall
+ },
+ auth_detail = {
+ .type = afb_auth_Or,
+ .first = &auth_perm_widget,
+ .next = &auth_perm_widget_detail
+ },
+ auth_start = {
+ .type = afb_auth_Or,
+ .first = &auth_perm_widget,
+ .next = &auth_perm_widget_start
+ },
+ auth_view_all = {
+ .type = afb_auth_Or,
+ .first = &auth_perm_widget,
+ .next = &auth_perm_widget_view_all
+ },
+ auth_state = {
+ .type = afb_auth_Or,
+ .first = &auth_perm_runner,
+ .next = &auth_perm_runner_state
+ },
+ auth_kill = {
+ .type = afb_auth_Or,
+ .first = &auth_perm_runner,
+ .next = &auth_perm_runner_kill
+ }
+;