• Victor Costan's avatar
    sqlite: Create all databases with restrictive permissions. · ce678e79
    Victor Costan authored
    Chrome's SQLite currently uses permissive (0644) POSIX access controls
    for newly created databases, and //sql offers a method for opting into
    restrictive (0600) permissions. This method is only used by the login
    database. However, all Chrome databases are likely to have private data.
    For example, the cookies database may contain long-lived OAuth tokens,
    and can be just as valuable as the login database. The same argument
    applies for the DOMStorage database.
    
    This CL configures SQLite to use restrictive permissions by default, and
    removes the method for opting into the restrictive permissions.
    
    Change-Id: I5f0ce9e7f038081fad515cfc30c45ccccf7ff1b6
    Reviewed-on: https://chromium-review.googlesource.com/1146295Reviewed-by: default avatarVaclav Brozek <vabr@chromium.org>
    Reviewed-by: default avatarChris Mumford <cmumford@chromium.org>
    Reviewed-by: default avatarRobert Sesek <rsesek@chromium.org>
    Commit-Queue: Victor Costan <pwnall@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#577476}
    ce678e79
connection.cc 65.1 KB