This matches The Last of Sheila (1973).
Shirley MacLaine plays a wealthy socialite who hosts a week-long yacht party for Hollywood friends, secretly hiring a mysterious "butler"/bodyguard with a hidden agenda. The film is a complex, twist-laden whodunit where the bodyguard is central to the mystery.