Skip to content

[cherry-pick to master] Use a new log directory for upgrade logs to avoid ACL issues#843

Merged
wilbaker merged 1 commit into
microsoft:masterfrom
wilbaker:new_upgrade_log_directory_port_to_master
Feb 25, 2019
Merged

[cherry-pick to master] Use a new log directory for upgrade logs to avoid ACL issues#843
wilbaker merged 1 commit into
microsoft:masterfrom
wilbaker:new_upgrade_log_directory_port_to_master

Conversation

@wilbaker
Copy link
Copy Markdown
Member

Cherry-pick of the changes in #840 to master


Fixes #837

This address the issue in #837 by switching to a new directory for upgrader logs. GVFS.Service will create the directory if it does not exist (with the proper ACLs) and prevent the directory from inheriting ACLs (when GVFS.Service updates them on C:\ProgramData\GVFS).

Additionally, gvfs upgrade will use the correct ACLs when creating the logs directory if for some reason the service has not already created it.

Note: There is no automatic healing if someone manually adjusts the ACLs on the directory.

Copy link
Copy Markdown
Member

@jrbriggs jrbriggs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

ownership.

In previous versions of VFS4G `gvfs upgrade` could create directories
with regular users as owners, and this ownership setting left GVFS.Service
unable to update the ACLs on the directory. Rather trying to take ownership
of the old logs directory and update the ACLs, this commit updates VFS4G
to using a new directory (`UpgraderLogs`) that is explicitly created with the
correct ACLs.

Old log files will not be migrated to the new folder.
@wilbaker wilbaker force-pushed the new_upgrade_log_directory_port_to_master branch from 920567e to 04c4b93 Compare February 25, 2019 22:08
@wilbaker wilbaker added this to the M149 milestone Feb 25, 2019
@wilbaker wilbaker merged commit 688d815 into microsoft:master Feb 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants