Bug#964819: rsyncd fails to access some directories

2020-07-11 Thread Samuel Henrique
> Could you please check if the same issue happens with rsync 3.2.2-2 ?
> This package is currently in unstable and it will reach testing in
> about 24 hours.

I just noticed that 3.2.2-1 is on testing already, this is the first
package version to contain the fix, please update your system and
check if the issue persists.

Thanks,

-- 
Samuel Henrique 



Bug#964819: rsyncd fails to access some directories

2020-07-11 Thread Samuel Henrique
Hello Winfried,

Thank you for reporting this issue,

Could you please check if the same issue happens with rsync 3.2.2-2 ?
This package is currently in unstable and it will reach testing in
about 24 hours.

Alternatively, you can do the following to test:
comment out (or remove) the following line from
/lib/systemd/system/rsync.service:
"ProtectHome=on"

Then restart the service and see if the issue persists.

This is upstream's changelog entry for 3.2.2:
"The default systemd config was changed to remove the ProtectHome=on
setting since rsync is often used to serve files in /home and /root
and this seemed a bit too strict. Feel free to use systemctl edit
rsync to add that restriction (or maybe ProtectHome=read-only), if you
like. See the 3.2.0 NEWS for the other restrictions that were added
compared to 3.1.3."

Regards,

-- 
Samuel Henrique 



Bug#964819: rsyncd fails to access some directories

2020-07-10 Thread Winfried Boxleitner
Package: rsync
Version: 3.2.1-1
Severity: grave
Justification: renders package unusable

Dear Maintainer,

after upgrade of rsync from 3.1.3-6 to 3.2.1-1 backuppc stopped working:
error message:
>> 2020-07-05 07:38:32 Got fatal error during xfer (unexpected response: '')
>> 2020-07-05 07:38:37 Backup aborted (unexpected response: '')

to track down the problem, I issued rsync on the commandline as user "backuppc"

symptom:

1) mounted filesystem /usr/local/ NOT accessible;
  timestamp shows date of first mounting this filesystem
  sideeffect: the exclude file located under this mounpoint
  was not accessible to rsync.

  backuppc@host:~$ rsync  user@host::home_at_host
  d- 40 2020/07/07 11:33:27 .

2) home of root NOT accessible, although on same filesystem

  backuppc@host:~$ rsync -v user@host::root_at_host
  receiving file list ... done
  drwxr-xr-x  4,096 2020/07/07 11:22:46 .
  lrwxrwxrwx  7 2018/11/09 17:44:26 bin
  lrwxrwxrwx 14 2018/11/12 22:47:14 home
  lrwxrwxrwx 29 2020/07/07 11:22:46 initrd.img
  lrwxrwxrwx 35 2020/07/07 11:22:46 initrd.img.old
  lrwxrwxrwx  7 2018/11/09 17:44:26 lib
  lrwxrwxrwx  9 2018/11/09 17:44:26 lib64
  lrwxrwxrwx 14 2019/01/15 17:13:18 opt
  lrwxrwxrwx  8 2018/11/09 17:44:26 sbin
  lrwxrwxrwx 26 2020/07/07 11:22:46 vmlinuz
  lrwxrwxrwx 32 2020/07/07 11:22:46 vmlinuz.old
  drwxr-xr-x  4,096 2020/07/07 11:23:28 boot
  drwxr-xr-x400 2020/07/07 11:34:59 dev
  drwxr-xr-x 12,288 2020/07/07 23:04:52 etc
  drwxr-xr-x  4,096 2020/05/06 17:59:38 media
  drwxr-xr-x176 2019/09/10 15:19:18 mnt
  dr-xr-xr-x  0 2020/07/07 11:32:34 proc
  d- 40 2020/07/07 11:33:27 root
  drwxr-xr-x  1,240 2020/07/10 09:10:21 run
  dr-xr-xr-x  0 2020/07/07 11:32:34 sys
  drwxrwxrwt  4,096 2020/07/10 19:04:01 tmp
  drwxr-xr-x160 2019/07/26 20:43:40 usr
  drwxr-xr-x223 2019/08/14 20:45:11 var

downgrade to previous version (3.1.3-6) removed error:

  backuppc@host:~$ rsync  user@host::home_at_host
  drwxr-xr-x  4,096 2020/02/18 10:01:21 .
  drwxr-xr-x 38 2017/11/06 15:24:20 .backuppc
  drwxr-x--- 32,768 2020/07/10 19:40:02 user
  ...


  backuppc@host:~$ rsync  user@host::root_at_host
  drwxr-xr-x  4,096 2020/07/07 11:22:46 .
  lrwxrwxrwx  7 2018/11/09 17:44:26 bin
  lrwxrwxrwx 14 2018/11/12 22:47:14 home
  lrwxrwxrwx 29 2020/07/07 11:22:46 initrd.img
  lrwxrwxrwx 35 2020/07/07 11:22:46 initrd.img.old
  lrwxrwxrwx  7 2018/11/09 17:44:26 lib
  lrwxrwxrwx  9 2018/11/09 17:44:26 lib64
  lrwxrwxrwx 14 2019/01/15 17:13:18 opt
  lrwxrwxrwx  8 2018/11/09 17:44:26 sbin
  lrwxrwxrwx 26 2020/07/07 11:22:46 vmlinuz
  lrwxrwxrwx 32 2020/07/07 11:22:46 vmlinuz.old
  drwxr-xr-x  4,096 2020/07/07 11:23:28 boot
  drwxr-xr-x  4,840 2020/07/07 22:25:46 dev
  drwxr-xr-x 12,288 2020/07/07 23:04:52 etc
  drwxr-xr-x  4,096 2020/05/06 17:59:38 media
  drwxr-xr-x176 2019/09/10 15:19:18 mnt
  dr-xr-xr-x  0 2020/07/07 11:32:34 proc
  drwxrwx---  4,096 2020/07/10 19:31:19 root
  drwxr-xr-x  1,240 2020/07/10 19:18:03 run
  drwxr-xr-x  6 2018/11/09 17:44:40 srv
  dr-xr-xr-x  0 2020/07/07 11:32:34 sys
  drwxrwxrwt  4,096 2020/07/10 19:38:40 tmp
  drwxr-xr-x160 2019/07/26 20:43:40 usr
  drwxr-xr-x223 2019/08/14 20:45:11 var

backuppc is working again


-- System Information:
Debian Release: bullseye/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'stable-updates'), (500, 
'proposed-updates'), (500, 'oldstable-updates'), (500, 
'oldstable-proposed-updates'), (500, 'oldoldstable'), (500, 'unstable'), (500, 
'stable'), (500, 'oldstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.7.0-1-amd64 (SMP w/16 CPU cores)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8), 
LANGUAGE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages rsync depends on:
ii  base-files   11
ii  init-system-helpers  1.58
ii  libacl1  2.2.53-8
ii  libattr1 1:2.4.48-5
ii  libc62.30-8
ii  libpopt0 1.18-1
ii  lsb-base 11.1.0

rsync recommends no packages.

Versions of packages rsync suggests:
ii  openssh-client  1:8.3p1-1
ii  openssh-server  1:8.3p1-1

-- no debconf information