Module: Keyutils::KeyPerm

Included in:
Keyutils
Defined in:
lib/keyutils/key_perm.rb

Overview

Key permission constants.

Constant Summary collapse

KEY_POS_VIEW =

possessor can view a key’s attributes

0x01000000
KEY_POS_READ =

possessor can read key payload / view keyring

0x02000000
KEY_POS_WRITE =

possessor can update key payload / add link to keyring

0x04000000
KEY_POS_SEARCH =

possessor can find a key in search / search a keyring

0x08000000
0x10000000
KEY_POS_SETATTR =

possessor can set key attributes

0x20000000
KEY_POS_ALL =
0x3f000000
KEY_USR_VIEW =

user permissions…

0x00010000
KEY_USR_READ =
0x00020000
KEY_USR_WRITE =
0x00040000
KEY_USR_SEARCH =
0x00080000
0x00100000
KEY_USR_SETATTR =
0x00200000
KEY_USR_ALL =
0x003f0000
KEY_GRP_VIEW =

group permissions…

0x00000100
KEY_GRP_READ =
0x00000200
KEY_GRP_WRITE =
0x00000400
KEY_GRP_SEARCH =
0x00000800
0x00001000
KEY_GRP_SETATTR =
0x00002000
KEY_GRP_ALL =
0x00003f00
KEY_OTH_VIEW =

third party permissions…

0x00000001
KEY_OTH_READ =
0x00000002
KEY_OTH_WRITE =
0x00000004
KEY_OTH_SEARCH =
0x00000008
0x00000010
KEY_OTH_SETATTR =
0x00000020
KEY_OTH_ALL =
0x0000003f