@@ -3568,20 +3568,33 @@ pub const UINPUT_MAX_NAME_SIZE: usize = 80;
35683568// uapi/linux/fanotify.h
35693569pub const FAN_ACCESS : u64 = 0x0000_0001 ;
35703570pub const FAN_MODIFY : u64 = 0x0000_0002 ;
3571+ pub const FAN_ATTRIB : u64 = 0x0000_0004 ;
35713572pub const FAN_CLOSE_WRITE : u64 = 0x0000_0008 ;
35723573pub const FAN_CLOSE_NOWRITE : u64 = 0x0000_0010 ;
35733574pub 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 ;
35743582
35753583pub const FAN_Q_OVERFLOW : u64 = 0x0000_4000 ;
3584+ pub const FAN_FS_ERROR : u64 = 0x0000_8000 ;
35763585
35773586pub const FAN_OPEN_PERM : u64 = 0x0001_0000 ;
35783587pub 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 ;
35813589
35823590pub const FAN_EVENT_ON_CHILD : u64 = 0x0800_0000 ;
35833591
3592+ pub const FAN_RENAME : u64 = 0x1000_0000 ;
3593+
3594+ pub const FAN_ONDIR : u64 = 0x4000_0000 ;
3595+
35843596pub const FAN_CLOSE : u64 = FAN_CLOSE_WRITE | FAN_CLOSE_NOWRITE ;
3597+ pub const FAN_MOVE : u64 = FAN_MOVED_FROM | FAN_MOVED_TO ;
35853598
35863599pub const FAN_CLOEXEC : :: c_uint = 0x0000_0001 ;
35873600pub const FAN_NONBLOCK : :: c_uint = 0x0000_0002 ;
@@ -3592,6 +3605,18 @@ pub const FAN_CLASS_PRE_CONTENT: ::c_uint = 0x0000_0008;
35923605
35933606pub const FAN_UNLIMITED_QUEUE : :: c_uint = 0x0000_0010 ;
35943607pub 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 ;
35953620
35963621pub const FAN_MARK_ADD : :: c_uint = 0x0000_0001 ;
35973622pub const FAN_MARK_REMOVE : :: c_uint = 0x0000_0002 ;
@@ -3600,13 +3625,37 @@ pub const FAN_MARK_ONLYDIR: ::c_uint = 0x0000_0008;
36003625pub const FAN_MARK_IGNORED_MASK : :: c_uint = 0x0000_0020 ;
36013626pub const FAN_MARK_IGNORED_SURV_MODIFY : :: c_uint = 0x0000_0040 ;
36023627pub 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 ;
36033636
36043637pub const FANOTIFY_METADATA_VERSION : u8 = 3 ;
36053638
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+
36063651pub const FAN_ALLOW : u32 = 0x01 ;
36073652pub const FAN_DENY : u32 = 0x02 ;
3653+ pub const FAN_AUDIT : u32 = 0x10 ;
3654+ pub const FAN_INFO : u32 = 0x20 ;
36083655
36093656pub const FAN_NOFD : :: c_int = -1 ;
3657+ pub const FAN_NOPIDFD : :: c_int = FAN_NOFD ;
3658+ pub const FAN_EPIDFD : :: c_int = -2 ;
36103659
36113660pub const FUTEX_WAIT : :: c_int = 0 ;
36123661pub const FUTEX_WAKE : :: c_int = 1 ;
0 commit comments