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



--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@;redhat.com?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/video4linux-list

Reply via email to