syncthing/lib/config
Jakob Borg 75dcff0a0e
all: Copy owner/group from parent (fixes #5445) (#5479)
This adds a folder option "CopyOwnershipFromParent" which, when set,
makes Syncthing attempt to retain the owner/group information when
syncing files. Specifically, at the finisher stage we look at the parent
dir to get owner/group and then attempt a Lchown call on the temp file.
For this to succeed Syncthing must be running with the appropriate
permissions. On Linux this is CAP_FOWNER, which can be granted by the
service manager on startup or set on the binary in the filesystem. Other
operating systems do other things, but often it's not required to run as
full "root". On Windows this patch does nothing - ownership works
differently there and is generally less of a deal, as permissions are
inherited as ACLs anyway.

There are unit tests on the Lchown functionality, which requires the
above permissions to run. There is also a unit test on the folder which
uses the fake filesystem and hence does not need special permissions.
2019-01-25 09:52:21 +01:00
..
testdata lib/config: Rewrite pending notifications (fixes #2291) 2018-08-25 11:36:10 +01:00
authmode.go cmd/syncthing: Add LDAP authentication for GUI (fixes #5163) (#5169) 2018-09-11 23:25:24 +02:00
commit_test.go gui, lib/config, lib/model: Support auto-accepting folders (fixes #2299) 2017-12-07 07:08:24 +00:00
config.go cmd/syncthing: Add LDAP authentication for GUI (fixes #5163) (#5169) 2018-09-11 23:25:24 +02:00
config_test.go gui: Add arrays for pending/ignored folders (fixes #5190) (#5192) 2018-09-13 22:52:16 +02:00
debug.go all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
deviceconfiguration.go lib/model, lib/protocol: Handle request concurrency in model (#5216) 2018-11-13 08:53:55 +01:00
folderconfiguration.go all: Copy owner/group from parent (fixes #5445) (#5479) 2019-01-25 09:52:21 +01:00
foldertype.go all: Add receive only folder type (#5027) 2018-07-12 11:15:57 +03:00
guiconfiguration.go cmd/syncthing: Listen on UNIX socket (fixes #3616) (#5210) 2018-09-21 14:28:57 +02:00
ldapconfiguration.go cmd/syncthing: Add LDAP authentication for GUI (fixes #5163) (#5169) 2018-09-11 23:25:24 +02:00
ldaptransport.go cmd/syncthing: Add LDAP authentication for GUI (fixes #5163) (#5169) 2018-09-11 23:25:24 +02:00
observed.go lib/config: Rewrite pending notifications (fixes #2291) 2018-08-25 11:36:10 +01:00
optionsconfiguration.go lib/model: Allow limiting number of concurrent scans (fixes #2760) (#4888) 2018-12-05 08:40:05 +01:00
pullorder.go all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
size.go lib/config: Revert #5415 (#5417) 2018-12-30 21:57:41 +01:00
size_test.go gui, lib/config, lib/model: Allow absolute values for minimum disk free space (fixes #3307) 2017-04-12 09:01:19 +00:00
versioningconfiguration.go all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
wrapper.go lib/config: Add context to the home disk out of space error (#5241) 2018-10-05 08:21:39 +02:00