Skip to content

Commit

Permalink
Add FAN_REPORT_PIDFD and FAN_REPORT_TID fanotify init flags
Browse files Browse the repository at this point in the history
  • Loading branch information
ad0 committed Nov 20, 2023
1 parent fd0aa06 commit 399a2db
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/sys/fanotify.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ libc_bitflags! {
FAN_OPEN_PERM;
/// Permission to access file was requested.
FAN_ACCESS_PERM;
/// Permission to open file for execution was requested. Since Linux 5.0.
/// Permission to open file for execution was requested. Since Linux
/// 5.0.
FAN_OPEN_EXEC_PERM;

/// Interested in child events.
Expand Down Expand Up @@ -99,6 +100,11 @@ libc_bitflags! {
FAN_UNLIMITED_QUEUE;
/// Remove the limit of 8192 marks.
FAN_UNLIMITED_MARKS;

/// Make `FanotifyEvent::pid` return pidfd. Since Linux 5.15.
FAN_REPORT_PIDFD;
/// Make `FanotifyEvent::pid` return thread id. Since Linux 4.20.
FAN_REPORT_TID;
}
}

Expand Down

0 comments on commit 399a2db

Please sign in to comment.