Modify

Opened 18 years ago

Closed 17 years ago

#810 closed defect (fixed)

setgid() in run_email2trac doesn't work because it happens after setuid() call

Reported by: anonymous Owned by: anonymous
Priority: high Component: EmailtoTracScript
Severity: major Keywords:
Cc: Trac Release: 0.9

Description

Switch the order of the two calls. Per the documentation (on freebsd at least) for setgid():

The setgid() function is permitted if the specified ID is equal to the real group ID
or the effective group ID of the process, or if the effective user ID is that of the super user.

So if you call setgid() first, the uid of the proc is still root and it will work. I noticed this b/c I own my project dir, but have it group www-data writeable and that wasn't working.

Attachments (0)

Change History (2)

comment:1 Changed 18 years ago by anonymous

Owner: changed from Bas van der Vlies to anonymous
Status: newassigned

Thanks it is fixed in the trunk version

comment:2 Changed 17 years ago by Bas van der Vlies

Resolution: fixed
Status: assignedclosed

Fixed in 0.8.2 version. Hope i can close it now ;-)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain anonymous.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.