diff options
| author | Arun Raghavan <[email protected]> | 2008-04-29 08:01:28 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2008-04-29 15:06:16 +0000 |
| commit | 6b79ccb5144f9ffb4d4596c23e7570238dd12abc (patch) | |
| tree | e674339e9f86c3607304496792b417b0ed66de6f /security/selinux/hooks.c | |
| parent | keys: switch to proc_create() (diff) | |
| download | kernel-6b79ccb5144f9ffb4d4596c23e7570238dd12abc.tar.gz kernel-6b79ccb5144f9ffb4d4596c23e7570238dd12abc.zip | |
keys: allow clients to set key perms in key_create_or_update()
The key_create_or_update() function provided by the keyring code has a default
set of permissions that are always applied to the key when created. This
might not be desirable to all clients.
Here's a patch that adds a "perm" parameter to the function to address this,
which can be set to KEY_PERM_UNDEF to revert to the current behaviour.
Signed-off-by: Arun Raghavan <[email protected]>
Signed-off-by: David Howells <[email protected]>
Cc: Satyam Sharma <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'security/selinux/hooks.c')
0 files changed, 0 insertions, 0 deletions
