class ExecId

Class for setting the execution ID when running the command. More...

 
LOGO
 Annotated List  Files  Globals  Hierarchy  Index  Top

Public Methods


Detailed Description

 ExecId ()

ExecId

Default constructor.

 ExecId (uid_t uid)

ExecId

Constructor for a given user ID.

Parameters:

uidthe user ID.
 ExecId (uid_t uid, gid_t gid)

ExecId

Constructor for a given user ID and group ID.

Parameters:

uidthe user ID.
gidthe group ID.
void  save_current_exec_id ()

save_current_exec_id

Save the current execution ID.

int  restore_saved_exec_id (string& error_msg)

restore_saved_exec_id

[const]

Restore the previously saved execution ID.

Parameters:

error_msgthe error message (if error).

Returns: XORP_OK on success, otherwise XORP_ERROR.

int  set_effective_exec_id (string& error_msg)

set_effective_exec_id

Set the effective execution ID.

Parameters:

error_msgthe error message (if error).

Returns: XORP_OK on success, otherwise XORP_ERROR.

bool  is_set ()

is_set

[const]

Test if the execution ID is set.

Returns: true if the execution ID is set, otherwise false.

uid_t  uid ()

uid

[const]

Get the user ID.

Returns: the user ID.

gid_t  gid ()

gid

[const]

Get the group ID.

Returns: the group ID.

void  set_uid (uid_t v)

set_uid

Set the user ID.

Parameters:

vthe user ID.
void  set_gid (gid_t v)

set_gid

Set the group ID.

Parameters:

vthe group ID.
bool  is_uid_set ()

is_uid_set

[const]

Test if the user ID was assigned.

Returns: true if the user ID was assigned, otherwise false.

bool  is_gid_set ()

is_gid_set

[const]

Test if the group ID was assigned.

Returns: true if the group ID was assigned, otherwise false.

void  reset ()

reset

Reset the assigned user ID and group ID.


Generated by: pavlin on possum.icir.org on Thu Mar 9 04:41:55 2006, using kdoc $.