Re: saa7134 and tvtime

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



> > 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)





[Index of Archives]     [Linux DVB]     [Video Disk Recorder]     [Asterisk]     [Photo]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Free Photo Albums]     [Fedora Users]     [Fedora Women]     [ALSA Users]     [ALSA Devel]     [Linux USB]

Powered by Linux