diff options
author | Nick Kralevich <nnk@google.com> | 2016-01-19 10:18:22 -0800 |
---|---|---|
committer | Nick Kralevich <nnk@google.com> | 2016-01-19 10:18:22 -0800 |
commit | 7d7a26d9fad78eb2c9f9b36b43e53a1a59a57b47 (patch) | |
tree | b85e152f1bab4c779fe83df062bb6643d4bca4e5 /ext4_utils | |
parent | 759656c09532f1932f3d8be8f56d2eda1c9573d5 (diff) | |
download | extras-7d7a26d9fad78eb2c9f9b36b43e53a1a59a57b47.tar.gz |
key_control.cpp: Use linux/keyctl.h
Use linux/keyctl.h instead of copying the header definitions.
Change-Id: Ic3804d49671e4951d1d8869411f665e9f5eef674
Diffstat (limited to 'ext4_utils')
-rw-r--r-- | ext4_utils/key_control.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/ext4_utils/key_control.cpp b/ext4_utils/key_control.cpp index 39bd1401..64f230a2 100644 --- a/ext4_utils/key_control.cpp +++ b/ext4_utils/key_control.cpp @@ -3,11 +3,7 @@ #include <stdarg.h> #include <unistd.h> #include <sys/syscall.h> - -/* keyring keyctl commands */ -#define KEYCTL_REVOKE 3 /* revoke a key */ -#define KEYCTL_SETPERM 5 /* set permissions for a key in a keyring */ -#define KEYCTL_SEARCH 10 /* search for a key in a keyring */ +#include <linux/keyctl.h> static long keyctl(int cmd, ...) { |