KEYS: Document making the keyring quotas controllable through /proc/sys
PATCH 1/2 KEYS: Document making the keyring quotas controllable through /proc/sys
Alter the key management documentation to include information on keyring quota controls as added in a previous patch.
Signed-off-by David Howells <[email protected]>
---
Documentation/keys.txt | 24 +++++++++++++++++++++++- 1 files changed, 23 insertions(+), 1 deletions(-)
Documentation/keys.txt +23 -1
@@ -170,7 +170,8 @@ The key service provides a number of features besides keys: amount of description and payload space that can be consumed. The user can view information on this and other statistics through procfs - files. + files. The root user may also alter the quota limits through sysctl files + (see the section "New procfs files"). Process-specific and thread-specific keyrings are not counted towards a user's quota.
@@ -329,6 +330,27 @@ about the status of the key service: <bytes>/<max> Key size quota +Four new sysctl files have been added also for the purpose of controlling the +quota limits on keys: + + (*) /proc/sys/kernel/keys/root_maxkeys + /proc/sys/kernel/keys/root_maxbytes + + These files hold the maximum number of keys that root may have and the + maximum total number of bytes of data that root may have stored in those + keys. + + (*) /proc/sys/kernel/keys/maxkeys + /proc/sys/kernel/keys/maxbytes + + These files hold the maximum number of keys that each non-root user may + have and the maximum total number of bytes of data that each of those + users may have stored in their keys. + +Root may alter these by writing each new limit as a decimal number string to +the appropriate file. + + =============================== USERSPACE SYSTEM CALL INTERFACE ===============================
PATCH 2/2 KEYS: Make key_serial() a function if CONFIG_KEYS=y
Make key_serial() an inline function rather than a macro if CONFIG_KEYS=y. This prevents double evaluation of the key pointer and also provides better type checking.
Signed-off-by David Howells <[email protected]>
---
0 files changed, 0 insertions(+), 0 deletions(-)
Re: [PATCH 2/2] KEYS: Make key_serial() a function if CONFIG_KEYS=y
Quoted 1 line · David Howells
0 files changed, 0 insertions(+), 0 deletions(-)
Oops. I really should commit the patch first.
David