supervisor icon indicating copy to clipboard operation
supervisor copied to clipboard

Backups open and read /etc/passwd and /etc/group for each file that is added

Open bdraco opened this issue 1 year ago • 4 comments

Describe the issue you are experiencing

strace sample:

[pid   108] newfstatat(AT_FDCWD, "/data/homeassistant/yalexs-ble/.git/refs/tags/v1.9.7", {st_mode=S_IFREG|0644, st_size=41, ...}, 0) = 0
[pid   108] newfstatat(AT_FDCWD, "/data/homeassistant/yalexs-ble/.git/refs/tags/v1.9.7", {st_mode=S_IFREG|0644, st_size=41, ...}, AT_SYMLINK_NOFOLLOW) = 0
[pid   108] openat(AT_FDCWD, "/etc/passwd", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 39
[pid   108] fcntl(39, F_SETFD, FD_CLOEXEC) = 0
[pid   108] fcntl(39, F_SETFD, FD_CLOEXEC) = 0
[pid   108] read(39, "root:x:0:0:root:/root:/bin/ash\nb"..., 1024) = 1024
[pid   108] lseek(39, -993, SEEK_CUR)   = 31
[pid   108] close(39)                   = 0
[pid   108] openat(AT_FDCWD, "/etc/group", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 39
[pid   108] fcntl(39, F_SETFD, FD_CLOEXEC) = 0
[pid   108] fcntl(39, F_SETFD, FD_CLOEXEC) = 0
[pid   108] read(39, "root:x:0:root\nbin:x:1:root,bin,d"..., 1024) = 697
[pid   108] lseek(39, -683, SEEK_CUR)   = 14
[pid   108] close(39)                   = 0
[pid   108] openat(AT_FDCWD, "/data/homeassistant/yalexs-ble/.git/refs/tags/v1.9.7", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 39
[pid   108] fcntl(39, F_SETFD, FD_CLOEXEC) = 0
[pid   108] fstat(39, {st_mode=S_IFREG|0644, st_size=41, ...}) = 0
[pid   108] ioctl(39, TIOCGWINSZ, 0xffff87b3a5a8) = -1 ENOTTY (Not a tty)
[pid   108] lseek(39, 0, SEEK_CUR)      = 0
[pid   108] read(39, "7c7682ec8049bac41e02e62a041f6ba7"..., 4096) = 41
[pid   108] close(39)                   = 0
[pid   108] newfstatat(AT_FDCWD, "/data/homeassistant/yalexs-ble/.git/refs/tags/v2.1.11", {st_mode=S_IFREG|0644, st_size=41, ...}, 0) = 0
[pid   108] newfstatat(AT_FDCWD, "/data/homeassistant/yalexs-ble/.git/refs/tags/v2.1.11", {st_mode=S_IFREG|0644, st_size=41, ...}, AT_SYMLINK_NOFOLLOW) = 0
[pid   108] openat(AT_FDCWD, "/etc/passwd", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 39
[pid   108] fcntl(39, F_SETFD, FD_CLOEXEC) = 0
[pid   108] fcntl(39, F_SETFD, FD_CLOEXEC) = 0
[pid   108] read(39, "root:x:0:0:root:/root:/bin/ash\nb"..., 1024) = 1024
[pid   108] lseek(39, -993, SEEK_CUR)   = 31
[pid   108] close(39)                   = 0
[pid   108] openat(AT_FDCWD, "/etc/group", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 39
[pid   108] fcntl(39, F_SETFD, FD_CLOEXEC) = 0
[pid   108] fcntl(39, F_SETFD, FD_CLOEXEC) = 0
[pid   108] read(39, "root:x:0:root\nbin:x:1:root,bin,d"..., 1024) = 697
[pid   108] lseek(39, -683, SEEK_CUR)   = 14
[pid   108] close(39)                   = 0
[pid   108] openat(AT_FDCWD, "/data/homeassistant/yalexs-ble/.git/refs/tags/v2.1.11", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 39
[pid   108] fcntl(39, F_SETFD, FD_CLOEXEC) = 0
[pid   108] fstat(39, {st_mode=S_IFREG|0644, st_size=41, ...}) = 0
[pid   108] ioctl(39, TIOCGWINSZ, 0xffff87b3a5a8) = -1 ENOTTY (Not a tty)
[pid   108] lseek(39, 0, SEEK_CUR)      = 0
[pid   108] read(39, "a7897b0faf087779b377d351f03ddb5a"..., 4096) = 41
[pid   108] close(39)                   = 0
[pid   108] newfstatat(AT_FDCWD, "/data/homeassistant/yalexs-ble/.git/refs/tags/v1.9.3", {st_mode=S_IFREG|0644, st_size=41, ...}, 0) = 0
[pid   108] newfstatat(AT_FDCWD, "/data/homeassistant/yalexs-ble/.git/refs/tags/v1.9.3", {st_mode=S_IFREG|0644, st_size=41, ...}, AT_SYMLINK_NOFOLLOW) = 0

What type of installation are you running?

Home Assistant OS

Which operating system are you running on?

Home Assistant Operating System

Steps to reproduce the issue

Do a back, strace the supervisor python process

Anything in the Supervisor logs that might be useful for us?

n/a

System Health information

n/a

Supervisor diagnostics

No response

Additional information

No response

bdraco avatar Apr 21 '23 00:04 bdraco