Changes the session keyring to which a process is subscribed.
Arguments
ecx |
A pointer to a null-terminated string specifying a keyring name. If a keyring of that name is available, the process will attempt to subscribe to that keyring. Otherwise a new keyring of that name is created and attached as the session keyring.
If ecx is null then a new anonymous keyring will be created, and the process will be subscribed to that. |
Return values
If the system call succeeds the return value is serial number of the key it found or created.
If the system call fails the return value is one of the following errno values:
-EACCES |
The named keyring exists, but is not searchable by the calling process. |
-ENOMEM |
Insufficient memory to create a key. |
-EDQUOT |
The key quota for this user would be exceeded by creating this key or linking it to the keyring. |
|
Remarks
To attach to an extant named keyring, the keyring must have search permission available to the calling process.
|