Legal and technical BYOD pitfalls highlighted at RSA security conference