Data Structures | Enumerations | Functions

include/util.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  pam_netns_shm_t
 shm structure More...

Enumerations

enum  pam_netns_state_t {
  INITIAL, BEFORE_COMPLETE, UNSHARE_COMPLETE, AFTER_COMPLETE,
  SETUP_COMPLETE, SESSION_CLOSED
}
 

States of pam_netns.

More...

Functions

int wait_for_state (pam_netns_shm_t *mod_shm, pam_netns_state_t state)
 Wait for a state.
int wait_for_state_inf (pam_netns_shm_t *mod_shm, pam_netns_state_t state)
 Wait for a state (infinite).
int set_state (pam_netns_shm_t *mod_shm, pam_netns_state_t state)
 Set state.

Enumeration Type Documentation

States of pam_netns.

This enumeration type specifie different application types.

Enumerator:
INITIAL 

Initial state

BEFORE_COMPLETE 

Before script is successfully executed

UNSHARE_COMPLETE 

Unshare done

AFTER_COMPLETE 

After script is successfully executed

SETUP_COMPLETE 

Session successfully opened

SESSION_CLOSED 

Session successfully closed


Function Documentation

int set_state ( pam_netns_shm_t mod_shm,
pam_netns_state_t  state 
)

Set state.

This function is called to set a state.

Parameters:
mod_shm Pointer to shm structure
state State
Return values:
0 State reached
<0 Something went wrong
int wait_for_state ( pam_netns_shm_t mod_shm,
pam_netns_state_t  state 
)

Wait for a state.

This function blocks until the specified state is reached.

Parameters:
mod_shm Pointer to shm structure
state State
Return values:
0 State reached
<0 Something went wrong
int wait_for_state_inf ( pam_netns_shm_t mod_shm,
pam_netns_state_t  state 
)

Wait for a state (infinite).

This function blocks until the specified state is reached.

Parameters:
mod_shm Pointer to shm structure
state State
Return values:
0 State reached
<0 Something went wrong