feat: 实现 UTS 命名空间支持并添加 hostname/domainname 系统调用#1268
Merged
fslongjin merged 3 commits intoDragonOS-Community:masterfrom Aug 24, 2025
Merged
feat: 实现 UTS 命名空间支持并添加 hostname/domainname 系统调用#1268fslongjin merged 3 commits intoDragonOS-Community:masterfrom
fslongjin merged 3 commits intoDragonOS-Community:masterfrom
Conversation
Member
fslongjin
commented
Aug 24, 2025
- 实现 UTS 命名空间支持,用于隔离系统标识信息(主机名和域名)
- 添加 sethostname 系统调用,允许用户空间程序设置系统主机名
- 添加 setdomainname 系统调用,允许用户空间程序设置系统域名
- 更新 uname 系统调用以使用当前进程的 UTS 命名空间
- 为新功能添加完整的单元测试
添加 UTS 命名空间实现,用于隔离系统标识信息如主机名和域名。 更新 uname 系统调用以使用当前进程的 UTS 命名空间。 改进 UserBufferWriter API 以支持 Clone 类型。 Signed-off-by: longjin <longjin@DragonOS.org>
实现 sethostname 系统调用,允许用户空间程序设置系统主机名。 包括 UTS 命名空间的修改、系统调用处理程序的实现以及相关配置文件的添加。 Signed-off-by: longjin <longjin@DragonOS.org>
- 在 UtsNamespace 中实现 set_domainname 方法 - 添加 sys_setdomainname 系统调用实现 - 修改 sys_sethostname 中的长度检查逻辑 - 添加 setdomainname 功能的单元测试 Signed-off-by: longjin <longjin@DragonOS.org>
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.