Skip to content

Commit 8fe62e0

Browse files
krisman-at-collaboradhowells
authored andcommitted
watch_queue: Drop references to /dev/watch_queue
The merged API doesn't use a watch_queue device, but instead relies on pipes, so let the documentation reflect that. Fixes: f7e4767 ("watch_queue: Add a key/keyring notification facility") Signed-off-by: Gabriel Krisman Bertazi <krisman@collabora.com> Signed-off-by: David Howells <dhowells@redhat.com> Acked-by: Jarkko Sakkinen <jarkko@kernel.org> Reviewed-by: Ben Boeckel <mathstuf@gmail.com>
1 parent 796e46f commit 8fe62e0

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

‎Documentation/security/keys/core.rst‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1040,8 +1040,8 @@ The keyctl syscall functions are:
10401040

10411041
"key" is the ID of the key to be watched.
10421042

1043-
"queue_fd" is a file descriptor referring to an open "/dev/watch_queue"
1044-
which manages the buffer into which notifications will be delivered.
1043+
"queue_fd" is a file descriptor referring to an open pipe which
1044+
manages the buffer into which notifications will be delivered.
10451045

10461046
"filter" is either NULL to remove a watch or a filter specification to
10471047
indicate what events are required from the key.

‎samples/Kconfig‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ config SAMPLE_WATCHDOG
210210
depends on CC_CAN_LINK
211211

212212
config SAMPLE_WATCH_QUEUE
213-
bool "Build example /dev/watch_queue notification consumer"
213+
bool "Build example watch_queue notification API consumer"
214214
depends on CC_CAN_LINK && HEADERS_INSTALL
215215
help
216216
Build example userspace program to use the new mount_notify(),

‎samples/watch_queue/watch_test.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// SPDX-License-Identifier: GPL-2.0
2-
/* Use /dev/watch_queue to watch for notifications.
2+
/* Use watch_queue API to watch for notifications.
33
*
44
* Copyright (C) 2020 Red Hat, Inc. All Rights Reserved.
55
* Written by David Howells (dhowells@redhat.com)

‎security/keys/Kconfig‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ config KEY_NOTIFICATIONS
119119
bool "Provide key/keyring change notifications"
120120
depends on KEYS && WATCH_QUEUE
121121
help
122-
This option provides support for getting change notifications on keys
123-
and keyrings on which the caller has View permission. This makes use
124-
of the /dev/watch_queue misc device to handle the notification
125-
buffer and provides KEYCTL_WATCH_KEY to enable/disable watches.
122+
This option provides support for getting change notifications
123+
on keys and keyrings on which the caller has View permission.
124+
This makes use of pipes to handle the notification buffer and
125+
provides KEYCTL_WATCH_KEY to enable/disable watches.

0 commit comments

Comments
 (0)