-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sys/linux: move {i,fa}notify into own files
- Loading branch information
Showing
29 changed files
with
1,051 additions
and
346 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Copyright 2015 syzkaller project authors. All rights reserved. | ||
# Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. | ||
|
||
include <linux/fcntl.h> | ||
include <linux/fanotify.h> | ||
|
||
resource fd_fanotify[fd] | ||
|
||
fanotify_init(flags flags[fanotify_flags], events flags[fanotify_events]) fd_fanotify | ||
fanotify_mark(fd fd_fanotify, flags flags[fanotify_mark], mask flags[fanotify_mask], fddir fd_dir, path ptr[in, filename]) | ||
|
||
fanotify_flags = FAN_CLASS_PRE_CONTENT, FAN_CLASS_CONTENT, FAN_CLASS_NOTIF, FAN_CLOEXEC, FAN_NONBLOCK, FAN_UNLIMITED_QUEUE, FAN_UNLIMITED_MARKS, FAN_ENABLE_AUDIT | ||
fanotify_events = O_RDONLY, O_WRONLY, O_RDWR, O_LARGEFILE, O_CLOEXEC, O_APPEND, O_DSYNC, O_NOATIME, O_NONBLOCK, O_SYNC | ||
fanotify_mark = FAN_MARK_ADD, FAN_MARK_REMOVE, FAN_MARK_FLUSH, FAN_MARK_DONT_FOLLOW, FAN_MARK_ONLYDIR, FAN_MARK_MOUNT, FAN_MARK_IGNORED_MASK, FAN_MARK_IGNORED_SURV_MODIFY | ||
fanotify_mask = FAN_ACCESS, FAN_MODIFY, FAN_CLOSE_WRITE, FAN_CLOSE_NOWRITE, FAN_OPEN, FAN_OPEN_EXEC, FAN_ONDIR, FAN_EVENT_ON_CHILD | ||
_ = FAN_OPEN_PERM, FAN_ACCESS_PERM, FAN_OPEN_EXEC_PERM |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# AUTOGENERATED FILE | ||
FAN_ACCESS = 1 | ||
FAN_ACCESS_PERM = 131072 | ||
FAN_CLASS_CONTENT = 4 | ||
FAN_CLASS_NOTIF = 0 | ||
FAN_CLASS_PRE_CONTENT = 8 | ||
FAN_CLOEXEC = 1 | ||
FAN_CLOSE_NOWRITE = 16 | ||
FAN_CLOSE_WRITE = 8 | ||
FAN_ENABLE_AUDIT = 64 | ||
FAN_EVENT_ON_CHILD = 134217728 | ||
FAN_MARK_ADD = 1 | ||
FAN_MARK_DONT_FOLLOW = 4 | ||
FAN_MARK_FLUSH = 128 | ||
FAN_MARK_IGNORED_MASK = 32 | ||
FAN_MARK_IGNORED_SURV_MODIFY = 64 | ||
FAN_MARK_MOUNT = 16 | ||
FAN_MARK_ONLYDIR = 8 | ||
FAN_MARK_REMOVE = 2 | ||
FAN_MODIFY = 2 | ||
FAN_NONBLOCK = 2 | ||
FAN_ONDIR = 1073741824 | ||
FAN_OPEN = 32 | ||
FAN_OPEN_EXEC = 4096 | ||
FAN_OPEN_EXEC_PERM = 262144 | ||
FAN_OPEN_PERM = 65536 | ||
FAN_UNLIMITED_MARKS = 32 | ||
FAN_UNLIMITED_QUEUE = 16 | ||
O_APPEND = 1024 | ||
O_CLOEXEC = 524288 | ||
O_DSYNC = 4096 | ||
O_LARGEFILE = 32768 | ||
O_NOATIME = 262144 | ||
O_NONBLOCK = 2048 | ||
O_RDONLY = 0 | ||
O_RDWR = 2 | ||
O_SYNC = 1052672 | ||
O_WRONLY = 1 | ||
__NR_fanotify_init = 338 | ||
__NR_fanotify_mark = 339 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# AUTOGENERATED FILE | ||
FAN_ACCESS = 1 | ||
FAN_ACCESS_PERM = 131072 | ||
FAN_CLASS_CONTENT = 4 | ||
FAN_CLASS_NOTIF = 0 | ||
FAN_CLASS_PRE_CONTENT = 8 | ||
FAN_CLOEXEC = 1 | ||
FAN_CLOSE_NOWRITE = 16 | ||
FAN_CLOSE_WRITE = 8 | ||
FAN_ENABLE_AUDIT = 64 | ||
FAN_EVENT_ON_CHILD = 134217728 | ||
FAN_MARK_ADD = 1 | ||
FAN_MARK_DONT_FOLLOW = 4 | ||
FAN_MARK_FLUSH = 128 | ||
FAN_MARK_IGNORED_MASK = 32 | ||
FAN_MARK_IGNORED_SURV_MODIFY = 64 | ||
FAN_MARK_MOUNT = 16 | ||
FAN_MARK_ONLYDIR = 8 | ||
FAN_MARK_REMOVE = 2 | ||
FAN_MODIFY = 2 | ||
FAN_NONBLOCK = 2 | ||
FAN_ONDIR = 1073741824 | ||
FAN_OPEN = 32 | ||
FAN_OPEN_EXEC = 4096 | ||
FAN_OPEN_EXEC_PERM = 262144 | ||
FAN_OPEN_PERM = 65536 | ||
FAN_UNLIMITED_MARKS = 32 | ||
FAN_UNLIMITED_QUEUE = 16 | ||
O_APPEND = 1024 | ||
O_CLOEXEC = 524288 | ||
O_DSYNC = 4096 | ||
O_LARGEFILE = 32768 | ||
O_NOATIME = 262144 | ||
O_NONBLOCK = 2048 | ||
O_RDONLY = 0 | ||
O_RDWR = 2 | ||
O_SYNC = 1052672 | ||
O_WRONLY = 1 | ||
__NR_fanotify_init = 300 | ||
__NR_fanotify_mark = 301 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# AUTOGENERATED FILE | ||
FAN_ACCESS = 1 | ||
FAN_ACCESS_PERM = 131072 | ||
FAN_CLASS_CONTENT = 4 | ||
FAN_CLASS_NOTIF = 0 | ||
FAN_CLASS_PRE_CONTENT = 8 | ||
FAN_CLOEXEC = 1 | ||
FAN_CLOSE_NOWRITE = 16 | ||
FAN_CLOSE_WRITE = 8 | ||
FAN_ENABLE_AUDIT = 64 | ||
FAN_EVENT_ON_CHILD = 134217728 | ||
FAN_MARK_ADD = 1 | ||
FAN_MARK_DONT_FOLLOW = 4 | ||
FAN_MARK_FLUSH = 128 | ||
FAN_MARK_IGNORED_MASK = 32 | ||
FAN_MARK_IGNORED_SURV_MODIFY = 64 | ||
FAN_MARK_MOUNT = 16 | ||
FAN_MARK_ONLYDIR = 8 | ||
FAN_MARK_REMOVE = 2 | ||
FAN_MODIFY = 2 | ||
FAN_NONBLOCK = 2 | ||
FAN_ONDIR = 1073741824 | ||
FAN_OPEN = 32 | ||
FAN_OPEN_EXEC = 4096 | ||
FAN_OPEN_EXEC_PERM = 262144 | ||
FAN_OPEN_PERM = 65536 | ||
FAN_UNLIMITED_MARKS = 32 | ||
FAN_UNLIMITED_QUEUE = 16 | ||
O_APPEND = 1024 | ||
O_CLOEXEC = 524288 | ||
O_DSYNC = 4096 | ||
O_LARGEFILE = 131072 | ||
O_NOATIME = 262144 | ||
O_NONBLOCK = 2048 | ||
O_RDONLY = 0 | ||
O_RDWR = 2 | ||
O_SYNC = 1052672 | ||
O_WRONLY = 1 | ||
__NR_fanotify_init = 367 | ||
__NR_fanotify_mark = 368 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# AUTOGENERATED FILE | ||
FAN_ACCESS = 1 | ||
FAN_ACCESS_PERM = 131072 | ||
FAN_CLASS_CONTENT = 4 | ||
FAN_CLASS_NOTIF = 0 | ||
FAN_CLASS_PRE_CONTENT = 8 | ||
FAN_CLOEXEC = 1 | ||
FAN_CLOSE_NOWRITE = 16 | ||
FAN_CLOSE_WRITE = 8 | ||
FAN_ENABLE_AUDIT = 64 | ||
FAN_EVENT_ON_CHILD = 134217728 | ||
FAN_MARK_ADD = 1 | ||
FAN_MARK_DONT_FOLLOW = 4 | ||
FAN_MARK_FLUSH = 128 | ||
FAN_MARK_IGNORED_MASK = 32 | ||
FAN_MARK_IGNORED_SURV_MODIFY = 64 | ||
FAN_MARK_MOUNT = 16 | ||
FAN_MARK_ONLYDIR = 8 | ||
FAN_MARK_REMOVE = 2 | ||
FAN_MODIFY = 2 | ||
FAN_NONBLOCK = 2 | ||
FAN_ONDIR = 1073741824 | ||
FAN_OPEN = 32 | ||
FAN_OPEN_EXEC = 4096 | ||
FAN_OPEN_EXEC_PERM = 262144 | ||
FAN_OPEN_PERM = 65536 | ||
FAN_UNLIMITED_MARKS = 32 | ||
FAN_UNLIMITED_QUEUE = 16 | ||
O_APPEND = 1024 | ||
O_CLOEXEC = 524288 | ||
O_DSYNC = 4096 | ||
O_LARGEFILE = 131072 | ||
O_NOATIME = 262144 | ||
O_NONBLOCK = 2048 | ||
O_RDONLY = 0 | ||
O_RDWR = 2 | ||
O_SYNC = 1052672 | ||
O_WRONLY = 1 | ||
__NR_fanotify_init = 262 | ||
__NR_fanotify_mark = 263 |
Oops, something went wrong.