Skip to content

Commit

Permalink
Update notify.c to not remove previous patch for linux-application-wh…
Browse files Browse the repository at this point in the history
  • Loading branch information
wjhunter3 authored Aug 11, 2023
1 parent a5d88c3 commit f39c2ad
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions src/daemon/notify.c
Original file line number Diff line number Diff line change
Expand Up @@ -120,21 +120,20 @@ int init_fanotify(const conf_t *conf, mlist *m)
deadmans_switch_thread_main, NULL);

mask = FAN_OPEN_PERM | FAN_OPEN_EXEC_PERM;

// Iterate through the mount points and add a mark
path = mlist_first(m);
while (path) {
#if defined HAVE_DECL_FAN_MARK_FILESYSTEM && HAVE_DECL_FAN_MARK_FILESYSTEM != 0
if (conf->allow_filesystem_mark)
mark_flag = FAN_MARK_FILESYSTEM;
else
mark_flag = FAN_MARK_MOUNT;
if (conf->allow_filesystem_mark)
mark_flag = FAN_MARK_FILESYSTEM;
else
mark_flag = FAN_MARK_MOUNT;
#else
if (conf->allow_filesystem_mark)
msg(LOG_ERR,
if (conf->allow_filesystem_mark)
msg(LOG_ERR,
"allow_filesystem_mark is unsupported for this kernel - ignoring");
mark_flag = FAN_MARK_MOUNT;
mark_flag = FAN_MARK_MOUNT;
#endif
// Iterate through the mount points and add a mark
path = mlist_first(m);
while (path) {
retry_mark:
if (fanotify_mark(fd, FAN_MARK_ADD | mark_flag,
mask, -1, path) == -1) {
Expand Down

0 comments on commit f39c2ad

Please sign in to comment.