Set the value of an SOS attribute.
Arguments:
attr: The attribute being modified.
newvalue: The desired new value of the attribute.