feat(process): 新增进程资源限制(rlimit)管理功能及相关系统调用#1300
Merged
fslongjin merged 1 commit intoDragonOS-Community:masterfrom Sep 27, 2025
Merged
feat(process): 新增进程资源限制(rlimit)管理功能及相关系统调用#1300fslongjin merged 1 commit intoDragonOS-Community:masterfrom
fslongjin merged 1 commit intoDragonOS-Community:masterfrom
Conversation
sparkzky
reviewed
Sep 26, 2025
6a20f9a to
b67a1ee
Compare
- 为ProcessControlBlock添加rlimits字段,存储进程资源限制,默认初始化典型值(如nofi le软限制1024、硬限制65536) - 实现进程rlimit的获取、设置及继承机制(inherit_rlimits_from) - 在dup2、fcntl等函数中添加RLIMIT_NOFILE检查,确保文件描述符不超过软限制 - 实现sys_prlimit64和sys_setrlimit系统调用,支持查询和设置进程资源限制 - 调整测试用例,添加dup_test到gvisor白名单,忽略未支持的测试 Signed-off-by: longjin <longjin@DragonOS.org>
b67a1ee to
739ecb1
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.