Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

process-keyring(7) [linux man page]

PROCESS-KEYRING(7)					     Linux Programmer's Manual						PROCESS-KEYRING(7)

NAME
process-keyring - per-process shared keyring DESCRIPTION
The process keyring is a keyring used to anchor keys on behalf of a process. It is created only when a process requests it. The process keyring has the name (description) _pid. A special serial number value, KEY_SPEC_PROCESS_KEYRING, is defined that can be used in lieu of the actual serial number of the calling process's process keyring. From the keyctl(1) utility, '@p' can be used instead of a numeric key ID in much the same way, but since keyctl(1) is a program run after forking, this is of no utility. A thread created using the clone(2) CLONE_THREAD flag has the same process keyring as the caller of clone(2). When a new process is cre- ated using fork() it initially has no process keyring. A process's process keyring is cleared on execve(2). The process keyring is destroyed when the last thread that refers to it terminates. If a process doesn't have a process keyring when it is accessed, then the process keyring will be created if the keyring is to be modified; otherwise, the error ENOKEY results. SEE ALSO
keyctl(1), keyctl(3), keyrings(7), persistent-keyring(7), session-keyring(7), thread-keyring(7), user-keyring(7), user-session-keyring(7) Linux 2017-03-13 PROCESS-KEYRING(7)

Check Out this Related Man Page

KEYCTL_JOIN_SESSION_KEYRING(3)                              Linux Key Management Calls                              KEYCTL_JOIN_SESSION_KEYRING(3)

NAME
keyctl_join_session_keyring - Join a different session keyring SYNOPSIS
#include <keyutils.h> key_serial_t keyctl_join_session_keyring(const char *name); DESCRIPTION
keyctl_join_session_keyring() changes the session keyring to which a process is subscribed. If name is NULL then a new anonymous keyring will be created, and the process will be subscribed to that. If name points to a string, then if a keyring of that name is available, the process will attempt to subscribe to that keyring, giving an error if that is not permitted; otherwise a new keyring of that name is created and attached as the session keyring. To attach to an extant named keyring, the keyring must have search permission available to the calling process. RETURN VALUE
On success keyctl_join_session_keyring() returns the serial number of the key it found or created. On error, the value -1 will be returned and errno will have been set to an appropriate error. ERRORS
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. EACCES The named keyring exists, but is not searchable by the calling process. LINKING
This is a library function that can be found in libkeyutils. When linking, -lkeyutils should be specified to the linker. SEE ALSO
keyctl(1), add_key(2), keyctl(2), request_key(2), keyctl_get_keyring_ID(3), keyctl_update(3), keyctl_revoke(3), keyctl_chown(3), keyctl_setperm(3), keyctl_describe(3), keyctl_clear(3), keyctl_link(3), keyctl_unlink(3), keyctl_search(3), keyctl_read(3), keyctl_instantiate(3), keyctl_negate(3), keyctl_set_reqkey_keyring(3), keyctl_set_timeout(3), keyctl_assume_authority(3), keyctl_describe_alloc(3), keyctl_read_alloc(3), request-key(8) Linux 4 May 2006 KEYCTL_JOIN_SESSION_KEYRING(3)
Man Page

15 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

fork error

hi i am having unix 5.05.with compaq ml330 serevr it works in single mode ok but afetr installing specialix 30 port serial card driver it gives following message on server FORK ERROR TOO MANY PROCESS (1 Reply)
Discussion started by: santoshsonawane
1 Replies

2. Shell Programming and Scripting

number of process?

how i know number of process are currently run on my user area (2 Replies)
Discussion started by: piyush_movadiya
2 Replies

3. Programming

How to get process name from process id in all Unix platforms?

Hi, i need to find the process name using the process id in C. This has to be done in HP, AIX, Solaris & Linux?? How can this be done? Is there any common solution to all platforms? On linux i have heard that /proc/<pid>/cmdline can be used. Is there a structure available to read this? ... (3 Replies)
Discussion started by: molu
3 Replies

4. UNIX for Dummies Questions & Answers

process id

hi folks, how do you find a process id if you are given a port number? (3 Replies)
Discussion started by: kirpond
3 Replies

5. Programming

forking a new process

Hi I'm currently working with C on UNIX (HPUX) and need to be able to fork a seperate Java process from within a running C process. I can run the following code from the command line via a script but am having difficulty getting it to work from within the code. I am trying to use execl. Is... (4 Replies)
Discussion started by: themezzaman
4 Replies

6. AIX

process the old file first

hello i have direcotry in which i will be getting a number of input files with different names and i need to write a script where i need to process the older file first and then come out of the loop. can any one throw some light appreciate (2 Replies)
Discussion started by: dsdev_123
2 Replies

7. UNIX for Dummies Questions & Answers

which process writes to file

Some process rewrites a file ( i'm hacked :) Can I somehow monitor which process does that? (2 Replies)
Discussion started by: hachik
2 Replies

8. IP Networking

Port that a process opens up

Hi all, I have a process with PID as 12456. Could you please let me know how do i find out what is the port that process listens upon in Linux? Thanks in Advance, Pankajakshan (2 Replies)
Discussion started by: Pankajakshan
2 Replies

9. Solaris

How to know about a hanged process

Hi, My process is visible in 'ps' command but actually it is not working or it got hanged. This process is not generating any log. Now How can I know that my process got hanged. Please help. (2 Replies)
Discussion started by: sanjay1979
2 Replies

10. Solaris

how to troubleshooting if one process is down unexpectly

I have one process which is supposed to run 24 x7, However, it was down a couple of times since yesterday. Can anyone please tell me how to investigate this issue? (I have changed the box and process name.) root@mybox:pwd /etc/init.d root@mybox:./abcd start eTrust Audit r8.0 (102.5)... (2 Replies)
Discussion started by: uuontario
2 Replies

11. AIX

Need explanation of 'who -d' output

Can someone tell me what the output of 'who -d' is ? What's causing the process in the list to be there ? What can be done to get rid of / fix those process ? Are those process simple problems, important or urgent onces ? I am asking because while looking for another 'who' option, I... (2 Replies)
Discussion started by: Browser_ice
2 Replies

12. UNIX for Dummies Questions & Answers

process and thread

i want to know a difference between process and thread,give a program to tell the difference (2 Replies)
Discussion started by: annapurna konga
2 Replies

13. UNIX for Advanced & Expert Users

Which process has created a file ?

Hi All, We have a multi-threaded application. During the course of action, each process creates some files. Is there any way to know which process has created a particular file ? Ex: Suppose we have 3 process running A, B and C in the application and some files FILE1 FILE2 FILE3 and... (4 Replies)
Discussion started by: 14341
4 Replies

14. AIX

AIX6.1 Remove file descriptor from specified process

Hi, How to release file description area from specified process. Problem is that process started - open one file ( ~2GB ) - file has been removed - process still shown that file is used by process and can't release space on filesystem. It is not allowable to kill process !!! Regs,... (3 Replies)
Discussion started by: KrzysiekPi
3 Replies

15. UNIX for Beginners Questions & Answers

Sleep command did not worked

Hi All, We have a process which is running for last 2 years well and good in production. But suddenly yesterday there was issue we faced in the process. The actual process is what it does like below. 1. Receive the files in NAS directory(N/w attached storage). 2. Trigger the... (11 Replies)
Discussion started by: mad man
11 Replies