|
| ||||||||||||||||
| ExecId ()
| ExecId |
| ExecId (uid_t uid)
| ExecId |
Constructor for a given user ID.
Parameters:
| uid | the user ID. |
| ExecId (uid_t uid, gid_t gid)
| ExecId |
Constructor for a given user ID and group ID.
Parameters:
| uid | the user ID. |
| gid | the 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_msg | the 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_msg | the 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:
| v | the user ID. |
| void set_gid (gid_t v)
| set_gid |
Set the group ID.
Parameters:
| v | the 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.