mirror of
https://github.com/systemd/systemd.git
synced 2026-08-03 22:50:29 +00:00
readahead-collect: ignore EACCES for fanotify
At the start of auditd, we are temporarily not able to read from the fanotify fd. Ignoring it, seems to work.
This commit is contained in:
committed by
Lennart Poettering
parent
235b28269a
commit
3afe3725fc
@@ -380,7 +380,7 @@ static int collect(const char *root) {
|
||||
|
||||
if ((n = read(fanotify_fd, &data, sizeof(data))) < 0) {
|
||||
|
||||
if (errno == EINTR || errno == EAGAIN)
|
||||
if (errno == EINTR || errno == EAGAIN || errno == EACCES)
|
||||
continue;
|
||||
|
||||
log_error("Failed to read event: %m");
|
||||
|
||||
Reference in New Issue
Block a user