问题描述
用vfork()创建的进程是否具有与创建者进程(即父进程)相同级别的特权?
Does the process created with vfork() has same the same level of privileges that of a creator process i.e parent process ?
例如:如果我运行一个过程作为根确实的vfork()子具有相同的执行特权?
example : If I run a process as root does vfork() child possess the same execution privileges?
推荐答案
表示:
由于该文本下方未提及UID/GID,因此您可以推断出这些属性是继承的.
As there is no mention of UIDs/GIDs below that text, you can deduce that these properties are inherited.
这些性质最终通过改变函数的调用来适当属性改变(等)或
These properties are eventually changed by calls to appropriate property changing functions (setuid
, etc) or exec
.
在旧(POSIX 2004或更早)的 规范一>是相似的:
The old (POSIX 2004 or earlier) specification of vfork()
is similar:
的规格从2008 POSIX除去(又名POSIX 2016).
The specification of vfork()
was removed from POSIX 2008 (aka POSIX 2016).
这篇关于没有了vfork()的孩子拥有什么权限?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!