Opened 16 years ago
Closed 16 years ago
Last modified 16 years ago
#5186 closed defect (fixed)
mkstemp() should be wrapped by umask
Reported by: | Owned by: | danielk | |
---|---|---|---|
Priority: | minor | Milestone: | unknown |
Component: | mythtv | Version: | head |
Severity: | low | Keywords: | |
Cc: | Ticket locked: | no |
Description
In programs/mythfilldatabase/filldata.cpp in the member function FillData::grabData() there is a call to mkstemp(). Which is the right function to use when making temporary files. But when using mkstemp() it is important to explicitly set the umask of the process before call. That way there is no doubt the the permissions on the temporary file are known to be safe.
Attachments (1)
Change History (6)
Changed 16 years ago by
comment:1 Changed 16 years ago by
Owner: | changed from Isaac Richards to danielk |
---|---|
Status: | new → assigned |
We should probably also be using the MythTV wrapper for mkstemp in util.{h,cpp} ...
comment:2 Changed 16 years ago by
(In [17226]) Refs #5186. Adds error checking to DataDirectProcessor?'s temporary file usage.
comment:3 Changed 16 years ago by
comment:4 Changed 16 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.
wrap mkstemp() in umask() calls to make sure file perms are safe