@@ -3568,20 +3568,33 @@ pub const UINPUT_MAX_NAME_SIZE: usize = 80;
3568
3568
// uapi/linux/fanotify.h
3569
3569
pub const FAN_ACCESS : u64 = 0x0000_0001 ;
3570
3570
pub const FAN_MODIFY : u64 = 0x0000_0002 ;
3571
+ pub const FAN_ATTRIB : u64 = 0x0000_0004 ;
3571
3572
pub const FAN_CLOSE_WRITE : u64 = 0x0000_0008 ;
3572
3573
pub const FAN_CLOSE_NOWRITE : u64 = 0x0000_0010 ;
3573
3574
pub const FAN_OPEN : u64 = 0x0000_0020 ;
3575
+ pub const FAN_MOVED_FROM : u64 = 0x0000_0040 ;
3576
+ pub const FAN_MOVED_TO : u64 = 0x0000_0080 ;
3577
+ pub const FAN_CREATE : u64 = 0x0000_0100 ;
3578
+ pub const FAN_DELETE : u64 = 0x0000_0200 ;
3579
+ pub const FAN_DELETE_SELF : u64 = 0x0000_0400 ;
3580
+ pub const FAN_MOVE_SELF : u64 = 0x0000_0800 ;
3581
+ pub const FAN_OPEN_EXEC : u64 = 0x0000_1000 ;
3574
3582
3575
3583
pub const FAN_Q_OVERFLOW : u64 = 0x0000_4000 ;
3584
+ pub const FAN_FS_ERROR : u64 = 0x0000_8000 ;
3576
3585
3577
3586
pub const FAN_OPEN_PERM : u64 = 0x0001_0000 ;
3578
3587
pub const FAN_ACCESS_PERM : u64 = 0x0002_0000 ;
3579
-
3580
- pub const FAN_ONDIR : u64 = 0x4000_0000 ;
3588
+ pub const FAN_OPEN_EXEC_PERM : u64 = 0x0004_0000 ;
3581
3589
3582
3590
pub const FAN_EVENT_ON_CHILD : u64 = 0x0800_0000 ;
3583
3591
3592
+ pub const FAN_RENAME : u64 = 0x1000_0000 ;
3593
+
3594
+ pub const FAN_ONDIR : u64 = 0x4000_0000 ;
3595
+
3584
3596
pub const FAN_CLOSE : u64 = FAN_CLOSE_WRITE | FAN_CLOSE_NOWRITE ;
3597
+ pub const FAN_MOVE : u64 = FAN_MOVED_FROM | FAN_MOVED_TO ;
3585
3598
3586
3599
pub const FAN_CLOEXEC : :: c_uint = 0x0000_0001 ;
3587
3600
pub const FAN_NONBLOCK : :: c_uint = 0x0000_0002 ;
@@ -3592,6 +3605,18 @@ pub const FAN_CLASS_PRE_CONTENT: ::c_uint = 0x0000_0008;
3592
3605
3593
3606
pub const FAN_UNLIMITED_QUEUE : :: c_uint = 0x0000_0010 ;
3594
3607
pub const FAN_UNLIMITED_MARKS : :: c_uint = 0x0000_0020 ;
3608
+ pub const FAN_ENABLE_AUDIT : :: c_uint = 0x0000_0040 ;
3609
+
3610
+ pub const FAN_REPORT_PIDFD : :: c_uint = 0x0000_0080 ;
3611
+ pub const FAN_REPORT_TID : :: c_uint = 0x0000_0100 ;
3612
+ pub const FAN_REPORT_FID : :: c_uint = 0x0000_0200 ;
3613
+ pub const FAN_REPORT_DIR_FID : :: c_uint = 0x0000_0400 ;
3614
+ pub const FAN_REPORT_NAME : :: c_uint = 0x0000_0800 ;
3615
+ pub const FAN_REPORT_TARGET_FID : :: c_uint = 0x0000_1000 ;
3616
+
3617
+ pub const FAN_REPORT_DFID_NAME : :: c_uint = FAN_REPORT_DIR_FID | FAN_REPORT_NAME ;
3618
+ pub const FAN_REPORT_DFID_NAME_TARGET : :: c_uint =
3619
+ FAN_REPORT_DFID_NAME | FAN_REPORT_FID | FAN_REPORT_TARGET_FID ;
3595
3620
3596
3621
pub const FAN_MARK_ADD : :: c_uint = 0x0000_0001 ;
3597
3622
pub const FAN_MARK_REMOVE : :: c_uint = 0x0000_0002 ;
@@ -3600,13 +3625,37 @@ pub const FAN_MARK_ONLYDIR: ::c_uint = 0x0000_0008;
3600
3625
pub const FAN_MARK_IGNORED_MASK : :: c_uint = 0x0000_0020 ;
3601
3626
pub const FAN_MARK_IGNORED_SURV_MODIFY : :: c_uint = 0x0000_0040 ;
3602
3627
pub const FAN_MARK_FLUSH : :: c_uint = 0x0000_0080 ;
3628
+ pub const FAN_MARK_EVICTABLE : :: c_uint = 0x0000_0200 ;
3629
+ pub const FAN_MARK_IGNORE : :: c_uint = 0x0000_0100 ;
3630
+
3631
+ pub const FAN_MARK_INODE : :: c_uint = 0x0000_0000 ;
3632
+ pub const FAN_MARK_MOUNT : :: c_uint = 0x0000_0010 ;
3633
+ pub const FAN_MARK_FILESYSTEM : :: c_uint = 0x0000_0100 ;
3634
+
3635
+ pub const FAN_MARK_IGNORE_SURV : :: c_uint = FAN_MARK_IGNORE | FAN_MARK_IGNORED_SURV_MODIFY ;
3603
3636
3604
3637
pub const FANOTIFY_METADATA_VERSION : u8 = 3 ;
3605
3638
3639
+ pub const FAN_EVENT_INFO_TYPE_FID : u8 = 1 ;
3640
+ pub const FAN_EVENT_INFO_TYPE_DFID_NAME : u8 = 2 ;
3641
+ pub const FAN_EVENT_INFO_TYPE_DFID : u8 = 3 ;
3642
+ pub const FAN_EVENT_INFO_TYPE_PIDFD : u8 = 4 ;
3643
+ pub const FAN_EVENT_INFO_TYPE_ERROR : u8 = 5 ;
3644
+
3645
+ pub const FAN_EVENT_INFO_TYPE_OLD_DFID_NAME : u8 = 10 ;
3646
+ pub const FAN_EVENT_INFO_TYPE_NEW_DFID_NAME : u8 = 12 ;
3647
+
3648
+ pub const FAN_RESPONSE_INFO_NONE : u8 = 0 ;
3649
+ pub const FAN_RESPONSE_INFO_AUDIT_RULE : u8 = 1 ;
3650
+
3606
3651
pub const FAN_ALLOW : u32 = 0x01 ;
3607
3652
pub const FAN_DENY : u32 = 0x02 ;
3653
+ pub const FAN_AUDIT : u32 = 0x10 ;
3654
+ pub const FAN_INFO : u32 = 0x20 ;
3608
3655
3609
3656
pub const FAN_NOFD : :: c_int = -1 ;
3657
+ pub const FAN_NOPIDFD : :: c_int = FAN_NOFD ;
3658
+ pub const FAN_EPIDFD : :: c_int = -2 ;
3610
3659
3611
3660
pub const FUTEX_WAIT : :: c_int = 0 ;
3612
3661
pub const FUTEX_WAKE : :: c_int = 1 ;
0 commit comments