Re: [Quickfix-developers] [patch] Create directories with user-configurable permissions
Brought to you by:
orenmnero
|
From: Joerg T. <Joe...@ma...> - 2005-06-15 21:18:53
|
Caleb Epstein wrote: > QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/html/index.html > QuickFIX FAQ: http://www.quickfixengine.org/wikifix/index.php?QuickFixFAQ > QuickFIX Support: http://www.quickfixengine.org/services.html > > The following trivial patch allows the user of QuickFIX to control the > permissions of any directories created by the FileLog and FileStore > classes using their umask. This is standard behavior. The mode of a > directory created by mkdir(2) is calculated from mode & ~umask, so the > current value of 0700 makes it impossible to ever set any of the group > or other access rights. > > For example, we want our directories to have mode 0755 so that support > personnel can monitor logfiles without needing to become the user that > runs the FIX engine, which can be a security issue. See bugtracker bug #79: http://www.quickfixengine.org/bugtracker/bug.php?op=show&bugid=79 Fixed in CVS; I removed the mode argument from the file_mkdir() interface and used mkdir( dir, 0777 ) internally. Cheers, Jörg -- Joerg Thoennes http://macd.com Tel.: +49 (0)241 44597-24 Macdonald Associates GmbH Fax : +49 (0)241 44597-10 Lothringer Str. 52, D-52070 Aachen |