有效组id值为-1有什么特别的意思吗?
setregid (getegid(), -1);
这一句执行后,对程序有什么影响?
问题点数:50、回复次数:1Top
1 楼quil(晕)回复于 2005-01-03 20:48:58 得分 50
setregid( ) is used to set the real and effective group IDs of
the calling process. If rgid is -1, the real group ID is not
changed; if egid is -1, the effective group ID is not changed.
The real and effective group IDs may be set to different values
in the same call.
If the effective user ID of the calling process is root, the real
group ID and the effective group ID can be set to any legal
value.
If the effective user ID of the calling process is not root, the
real group ID can be set to the saved set-group ID from
execve(S), or the effective group ID can be set to either the
saved set-group ID or the real group ID. If a set-GID process
sets its effective group ID to its real group ID, it can still
set its effective group ID back to the saved set-group ID.
If the real group ID is changed (rgid is not -1), the saved
set-group ID is set to that same value.
Top
相关问题
- N'DECLARE @ID DECIMAL;SET @ID=-1; 什么意思?
- 请问“右值”是什么意思?
- "Resource id #1"是什么意思??
- Warning: no message line prompt for ID 0x8014.是何意思。
- request("id"&j)是什么意思?
- details.aspx?id{0}中{0}是什么意思?
- ID=Request.QueryString("ID")和ID=Request("ID")是一个意思吗?
- <img src="" id="asp">这里的ID是什么意思?
- idl 中的id[DISPID_VALUE] id[DISPID_NEWENUM] 代表什么意思?
- s.ticket_id*=c.ticket_id其中的*什么意思?




