Details
-
User Story
-
Resolution: Done
-
P2: Important
-
None
-
None
-
-
13
-
Team 1 Foundation_Sprint 44, Team 1 Foundation_Sprint 45, Team 2 Foundation_Sprint 46, Team 2 Foundation_Sprint 47, Team 2 Foundation_Sprint 48
-
83f2f27bb6cac0b85cdb47365347493d8dc5feb2 (qt/qtbase/dev)
Description
When we create a directory, we should enable the code creating it to stipulate its mode at the time of creation so that native APIs that support this can do so directly or we do so as soon as possible thereafter if native APIs don't. The default should be conservative (only present user can access, with full access), or determined by a system-specific default (where one exists) such as umask.
The present API requires one to create the directory, then set its permissions as a separate action; that introduces a potential race condition where it has some default set of permissions which may allow another process to do things in it before the code creating the directory sets the permissions it actually intends. In any case, specifying the mode at creation time is Good Practice and nicely convenient for the client code.
Attachments
Issue Links
- relates to
-
QTBUG-91128 QTemporaryDir does not have a way to create secure direrctories
- Closed
- resulted in
-
QTBUG-104200 QTemporaryDir creates a directory without permission.
- Closed
-
QTBUG-132633 QDir::mkpath() is missing an overload with permissions
- In Review
- split from
-
QTBUG-71036 Qt Core Changes in Qt 6
- Closed