The inheritable set is used only for calculating the new capability sets after exec().
可继承集只用于在执行 exec() 之后计算新的能力集。
Until now, we have asserted the desired capabilities in the permitted set but not the inheritable set.
到目前为止,我们已经在允许集中设置了所需的能力,但是还没有在可继承集中设置。
The file inheritable set specifies which of the process's inheritable capabilities can be in the process's new permitted set.
文件可继承集决定进程的哪些可继承能力可以放在新的进程允许集中。
For a process to keep any capabilities after executing a file, the capabilities must be in the file's permitted or inheritable set.
如果进程要在执行一个文件之后保留任何能力,那么这些能力必须被包含在文件的允许集或可继承集中。
If a non-root user runs this program while running with full capabilities, its inheritable set pI is first masked against fI so it is reduced to just cap_sys_admin.
如果一个非根用户在拥有所有能力的情况下运行这个程序,首先计算它的可继承集(pI)和fI 的交集,所以缩减到只包含 cap_sys_admin。
If a non-root user runs this program while running with full capabilities, its inheritable set pI is first masked against fI so it is reduced to just cap_sys_admin.
如果一个非根用户在拥有所有能力的情况下运行这个程序,首先计算它的可继承集(pI)和fI 的交集,所以缩减到只包含 cap_sys_admin。
应用推荐