summaryrefslogtreecommitdiff
path: root/version.lds
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2019-08-20 15:37:10 +0100
committerDavid Howells <dhowells@redhat.com>2020-07-06 17:27:20 +0100
commit1aafbdcf1d60c5c9eb34fe404f9a9195c8ea415e (patch)
tree94a6ac5291a3751c58e121df4df73849acfeb00f /version.lds
parent7846c7a9a7ecbd45648b1e4487fcddd05fa26c84 (diff)
downloadkeyutils-1aafbdcf1d60c5c9eb34fe404f9a9195c8ea415e.tar.gz
Add a notification facility for watching for key changes
Add keyctl commands and library functions to handle the setting and removal of watches on keys for notifications of change events. Five keyctl commands are defined: (1) keyctl watch <key> Watch the specified key for changes, logging notifications to stdout. (2) keyctl watch_session [-n <name>] <notifylog> <gclog> <fd> prog [<arg>...] Create a new session keyring and attach a watch to it that an auxiliary logging process monitors. The nominated program is run with the session program with the arguments given. The session keyring can be given a name. The logging process will log synchronous events to file notifylog and asynchronous events to file gclog. The specified file descriptor will be attached to the watch_queue and left open across the exec. This can be made use of by the next few commands. (3) keyctl watch_add <fd> <key> (4) keyctl watch_rm <fd> <key> Add/remove a watch on the specified key to/from the given watch_queue derived from watch_session. (5) keyctl watch_sync <fd> Wait for the logging process that's watching the given watch_queue to synchronise. Commands (2) to (5) are primarily provided for the testsuite's purposes. Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'version.lds')
-rw-r--r--version.lds2
1 files changed, 2 insertions, 0 deletions
diff --git a/version.lds b/version.lds
index 2a6e142..6c34adf 100644
--- a/version.lds
+++ b/version.lds
@@ -100,5 +100,7 @@ KEYUTILS_1.9 {
} KEYUTILS_1.8;
KEYUTILS_1.10 {
+ /* Management functions */
+ keyctl_watch_key;
} KEYUTILS_1.9;