@@ -3566,20 +3566,33 @@ pub const UINPUT_MAX_NAME_SIZE: usize = 80;
35663566// uapi/linux/fanotify.h
35673567pub const FAN_ACCESS : u64 = 0x0000_0001 ;
35683568pub const FAN_MODIFY : u64 = 0x0000_0002 ;
3569+ pub const FAN_ATTRIB : u64 = 0x0000_0004 ;
35693570pub const FAN_CLOSE_WRITE : u64 = 0x0000_0008 ;
35703571pub const FAN_CLOSE_NOWRITE : u64 = 0x0000_0010 ;
35713572pub const FAN_OPEN : u64 = 0x0000_0020 ;
3573+ pub const FAN_MOVED_FROM : u64 = 0x0000_0040 ;
3574+ pub const FAN_MOVED_TO : u64 = 0x0000_0080 ;
3575+ pub const FAN_CREATE : u64 = 0x0000_0100 ;
3576+ pub const FAN_DELETE : u64 = 0x0000_0200 ;
3577+ pub const FAN_DELETE_SELF : u64 = 0x0000_0400 ;
3578+ pub const FAN_MOVE_SELF : u64 = 0x0000_0800 ;
3579+ pub const FAN_OPEN_EXEC : u64 = 0x0000_1000 ;
35723580
35733581pub const FAN_Q_OVERFLOW : u64 = 0x0000_4000 ;
3582+ pub const FAN_FS_ERROR : u64 = 0x0000_8000 ;
35743583
35753584pub const FAN_OPEN_PERM : u64 = 0x0001_0000 ;
35763585pub const FAN_ACCESS_PERM : u64 = 0x0002_0000 ;
3577-
3578- pub const FAN_ONDIR : u64 = 0x4000_0000 ;
3586+ pub const FAN_OPEN_EXEC_PERM : u64 = 0x0004_0000 ;
35793587
35803588pub const FAN_EVENT_ON_CHILD : u64 = 0x0800_0000 ;
35813589
3590+ pub const FAN_RENAME : u64 = 0x1000_0000 ;
3591+
3592+ pub const FAN_ONDIR : u64 = 0x4000_0000 ;
3593+
35823594pub const FAN_CLOSE : u64 = FAN_CLOSE_WRITE | FAN_CLOSE_NOWRITE ;
3595+ pub const FAN_MOVE : u64 = FAN_MOVED_FROM | FAN_MOVED_TO ;
35833596
35843597pub const FAN_CLOEXEC : :: c_uint = 0x0000_0001 ;
35853598pub const FAN_NONBLOCK : :: c_uint = 0x0000_0002 ;
@@ -3590,6 +3603,18 @@ pub const FAN_CLASS_PRE_CONTENT: ::c_uint = 0x0000_0008;
35903603
35913604pub const FAN_UNLIMITED_QUEUE : :: c_uint = 0x0000_0010 ;
35923605pub const FAN_UNLIMITED_MARKS : :: c_uint = 0x0000_0020 ;
3606+ pub const FAN_ENABLE_AUDIT : :: c_uint = 0x0000_0040 ;
3607+
3608+ pub const FAN_REPORT_PIDFD : :: c_uint = 0x0000_0080 ;
3609+ pub const FAN_REPORT_TID : :: c_uint = 0x0000_0100 ;
3610+ pub const FAN_REPORT_FID : :: c_uint = 0x0000_0200 ;
3611+ pub const FAN_REPORT_DIR_FID : :: c_uint = 0x0000_0400 ;
3612+ pub const FAN_REPORT_NAME : :: c_uint = 0x0000_0800 ;
3613+ pub const FAN_REPORT_TARGET_FID : :: c_uint = 0x0000_1000 ;
3614+
3615+ pub const FAN_REPORT_DFID_NAME : :: c_uint = FAN_REPORT_DIR_FID | FAN_REPORT_NAME ;
3616+ pub const FAN_REPORT_DFID_NAME_TARGET : :: c_uint =
3617+ FAN_REPORT_DFID_NAME | FAN_REPORT_FID | FAN_REPORT_TARGET_FID ;
35933618
35943619pub const FAN_MARK_ADD : :: c_uint = 0x0000_0001 ;
35953620pub const FAN_MARK_REMOVE : :: c_uint = 0x0000_0002 ;
@@ -3598,13 +3623,37 @@ pub const FAN_MARK_ONLYDIR: ::c_uint = 0x0000_0008;
35983623pub const FAN_MARK_IGNORED_MASK : :: c_uint = 0x0000_0020 ;
35993624pub const FAN_MARK_IGNORED_SURV_MODIFY : :: c_uint = 0x0000_0040 ;
36003625pub const FAN_MARK_FLUSH : :: c_uint = 0x0000_0080 ;
3626+ pub const FAN_MARK_EVICTABLE : :: c_uint = 0x0000_0200 ;
3627+ pub const FAN_MARK_IGNORE : :: c_uint = 0x0000_0100 ;
3628+
3629+ pub const FAN_MARK_INODE : :: c_uint = 0x0000_0000 ;
3630+ pub const FAN_MARK_MOUNT : :: c_uint = 0x0000_0010 ;
3631+ pub const FAN_MARK_FILESYSTEM : :: c_uint = 0x0000_0100 ;
3632+
3633+ pub const FAN_MARK_IGNORE_SURV : :: c_uint = FAN_MARK_IGNORE | FAN_MARK_IGNORED_SURV_MODIFY ;
36013634
36023635pub const FANOTIFY_METADATA_VERSION : u8 = 3 ;
36033636
3637+ pub const FAN_EVENT_INFO_TYPE_FID : u8 = 1 ;
3638+ pub const FAN_EVENT_INFO_TYPE_DFID_NAME : u8 = 2 ;
3639+ pub const FAN_EVENT_INFO_TYPE_DFID : u8 = 3 ;
3640+ pub const FAN_EVENT_INFO_TYPE_PIDFD : u8 = 4 ;
3641+ pub const FAN_EVENT_INFO_TYPE_ERROR : u8 = 5 ;
3642+
3643+ pub const FAN_EVENT_INFO_TYPE_OLD_DFID_NAME : u8 = 10 ;
3644+ pub const FAN_EVENT_INFO_TYPE_NEW_DFID_NAME : u8 = 12 ;
3645+
3646+ pub const FAN_RESPONSE_INFO_NONE : u8 = 0 ;
3647+ pub const FAN_RESPONSE_INFO_AUDIT_RULE : u8 = 1 ;
3648+
36043649pub const FAN_ALLOW : u32 = 0x01 ;
36053650pub const FAN_DENY : u32 = 0x02 ;
3651+ pub const FAN_AUDIT : u32 = 0x10 ;
3652+ pub const FAN_INFO : u32 = 0x20 ;
36063653
36073654pub const FAN_NOFD : :: c_int = -1 ;
3655+ pub const FAN_NOPIDFD : :: c_int = FAN_NOFD ;
3656+ pub const FAN_EPIDFD : :: c_int = -2 ;
36083657
36093658pub const FUTEX_WAIT : :: c_int = 0 ;
36103659pub const FUTEX_WAKE : :: c_int = 1 ;
0 commit comments