> > Have you made tvtime suid aware? Let it run SUID root, request > > real-time priority and open RTC and video devices, and then drop > > privileges. > > We now call: > > setuid( getuid() ); Be careful opening devices that way. Admins set permissions on rtc and video and expect them to be honoured Also you want to do if(setresuid(getuid(), getuid(), getuid())==-1) exit(1); [clear real effective and saved user id]. Its basically the same thing but using stronger washing powder 8)