summaryrefslogtreecommitdiff
path: root/keyctl.c
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2019-10-31 13:22:23 +0000
committerDavid Howells <dhowells@redhat.com>2020-07-07 16:58:07 +0100
commit496a09a43713cfe09877fcba82db72ce5902f781 (patch)
treeb4caf269872728a5ca8cdc946ce7aaf845867d7d /keyctl.c
parent1570dce7a114e8b907e7b80c56bb798a888675c6 (diff)
downloadkeyutils-496a09a43713cfe09877fcba82db72ce5902f781.tar.gz
Add the ability to supply filters to watches set with keyctl
Add the ability to supply filters to watches set with "keyctl watch" and "keyctl watch_session". Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'keyctl.c')
-rw-r--r--keyctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/keyctl.c b/keyctl.c
index cc25ac0..b1e100e 100644
--- a/keyctl.c
+++ b/keyctl.c
@@ -139,10 +139,10 @@ static const struct command commands[] = {
{ act_keyctl_timeout, "timeout", "<key> <timeout>" },
{ act_keyctl_unlink, "unlink", "<key> [<keyring>]" },
{ act_keyctl_update, "update", "[-x] <key> <data>" },
- { act_keyctl_watch, "watch", "<key>" },
+ { act_keyctl_watch, "watch", "[-f<filters>] <key>" },
{ act_keyctl_watch_add, "watch_add", "<fd> <key>" },
{ act_keyctl_watch_rm, "watch_rm", "<fd> <key>" },
- { act_keyctl_watch_session, "watch_session", "[-n <name>] <notifylog> <gclog> <fd> <prog> [<arg1> <arg2> ...]" },
+ { act_keyctl_watch_session, "watch_session", "[-f<filters>] [-n <name>] <notifylog> <gclog> <fd> <prog> [<arg1> <arg2> ...]" },
{ act_keyctl_watch_sync, "watch_sync", "<fd>" },
{ act_keyctl_test, "--test", "..." },
{ NULL, NULL, NULL }