VirtualBox

Changeset 104286 in vbox for trunk/src/VBox/Main/include


Ignore:
Timestamp:
Apr 11, 2024 1:56:27 AM (12 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
162757
Message:

IPRT/log,Main: Open the parent directory of the log file on Windows before we opening the log file and do any log rotating to prevent reparse hacks. bugref:10632

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/ConsoleImpl.h

    r101477 r104286  
    10131013    /** @name Encrypted log interface
    10141014     * @{ */
    1015     static DECLCALLBACK(int)    i_logEncryptedOpen(PCRTLOGOUTPUTIF pIf, void *pvUser, const char *pszFilename, uint32_t fFlags);
     1015    static DECLCALLBACK(int)    i_logEncryptedDirCtxOpen(PCRTLOGOUTPUTIF pIf, void *pvUser, const char *pszFilename, void **pvDirCtx);
     1016    static DECLCALLBACK(int)    i_logEncryptedDirCtxClose(PCRTLOGOUTPUTIF pIf, void *pvUser, void *pvDirCtx);
     1017    static DECLCALLBACK(int)    i_logEncryptedDelete(PCRTLOGOUTPUTIF pIf, void *pvUser, void *pvDirCtx, const char *pszFilename);
     1018    static DECLCALLBACK(int)    i_logEncryptedRename(PCRTLOGOUTPUTIF pIf, void *pvUser, void *pvDirCtx,
     1019                                                     const char *pszFilenameOld, const char *pszFilenameNew, uint32_t fFlags);
     1020    static DECLCALLBACK(int)    i_logEncryptedOpen(PCRTLOGOUTPUTIF pIf, void *pvUser, void *pvDirCtx, const char *pszFilename, uint32_t fFlags);
    10161021    static DECLCALLBACK(int)    i_logEncryptedClose(PCRTLOGOUTPUTIF pIf, void *pvUser);
    1017     static DECLCALLBACK(int)    i_logEncryptedDelete(PCRTLOGOUTPUTIF pIf, void *pvUser, const char *pszFilename);
    1018     static DECLCALLBACK(int)    i_logEncryptedRename(PCRTLOGOUTPUTIF pIf, void *pvUser, const char *pszFilenameOld,
    1019                                                      const char *pszFilenameNew, uint32_t fFlags);
    10201022    static DECLCALLBACK(int)    i_logEncryptedQuerySize(PCRTLOGOUTPUTIF pIf, void *pvUser, uint64_t *pcbSize);
    10211023    static DECLCALLBACK(int)    i_logEncryptedWrite(PCRTLOGOUTPUTIF pIf, void *pvUser, const void *pvBuf,
    10221024                                                    size_t cbWrite, size_t *pcbWritten);
    10231025    static DECLCALLBACK(int)    i_logEncryptedFlush(PCRTLOGOUTPUTIF pIf, void *pvUser);
     1026    /** The logging output interface for encrypted logs. */
     1027    static RTLOGOUTPUTIF const  s_ConsoleEncryptedLogOutputIf;
    10241028    /** @} */
    10251029#endif
     
    12151219    /** The file handle of the encrypted log. */
    12161220    RTVFSFILE                           m_hVfsFileLog;
    1217     /** The logging output interface for encrypted logs. */
    1218     RTLOGOUTPUTIF                       m_LogOutputIf;
    12191221    /** The log file key ID. */
    12201222    Utf8Str                             m_strLogKeyId;
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette