def security_group_rule_update(context, rule, **kwargs):
rule.update(kwargs)<EOL>context.session.add(rule)<EOL>return rule<EOL>
Updates a security group rule.

    NOTE(alexm) this is non-standard functionality.