Run-time security and safety management in adaptive smart work environments