These rules were accidentally introduced in commit f733b8b5 (PR #1832).
Ignoring all *.md files prevents tracking README, documentation, and
other essential markdown files in the repository.
Signed-off-by: longjin <longjin@dragonos.org>
* Refactor skill-creator scripts: remove init_skill.py, enhance packaging and validation
- Deleted init_skill.py as it was redundant.
- Updated package_skill.py to exclude unnecessary files and directories during packaging.
- Enhanced quick_validate.py to include compatibility field validation and improved error messages.
- Added run_eval.py to evaluate skill descriptions against queries and output results in JSON format.
- Introduced run_loop.py to facilitate an iterative evaluation and improvement process for skill descriptions.
- Created utils.py for shared utility functions, including SKILL.md parsing.
Signed-off-by: xboHodx <xbohodx2024@gmail.com>
* feat(procfs): 新增proc挂载导出接口实现
- 实现/proc/[pid]/mounts、/proc/[pid]/mountinfo、/proc/[pid]/mountstats接口
- 新增mount_view模块统一处理挂载视图渲染逻辑
- 支持按目标进程视角导出挂载信息
- 文档添加procfs相关章节
Signed-off-by: xboHodx <xbohodx2024@gmail.com>
* fmt
Signed-off-by: xboHodx <xbohodx2024@gmail.com>
* Revert "Refactor skill-creator scripts: remove init_skill.py, enhance packaging and validation"
This reverts commit 250dc9bd36.
* fix(procfs): update process handling in mount file operations
Signed-off-by: xboHodx <xbohodx2024@gmail.com>
* fmt
* Enhance procfs mount handling and add tests for mount exports
- Updated `/proc/mounts`, `/proc/[pid]/mounts`, and related files to improve rendering and caching behavior.
- Refactored mount entry collection and rendering functions for better clarity and performance.
- Adjusted permissions in `MountStatsFileOps` to allow read access for group users.
- Introduced new test suite `proc_mount_exports` to validate mount information consistency across different procfs entries.
- Added entries to `.gitignore` for markdown files and cursor files.
* fix(mount): rename
* feat(procfs): add proc mount export interfaces
Signed-off-by: longjin <longjin@dragonos.org>
* refactor(procfs): consolidate mount handling into a dedicated module
- Removed the deprecated `mount_view` and `mounts` files, centralizing mount-related functionality into a new `mount` module.
- Updated references in the `procfs` root and other related files to utilize the new structure.
- Introduced new helper functions for rendering and collecting mount information, improving code organization and maintainability.
- Added symlink support for `/proc/mounts` pointing to `self/mounts`.
This refactor enhances clarity and performance in handling mount information within the proc filesystem.
* refactor(procfs): remove mount_exports_review_plan.md and update mounts documentation
- Deleted the `mount_exports_review_plan.md` file as it is no longer needed.
- Revised the `mounts.md` documentation to clarify the procfs mount export interfaces, including detailed descriptions of `/proc/mounts`, `/proc/[pid]/mounts`, `/proc/[pid]/mountinfo`, and `/proc/[pid]/mountstats`.
- Enhanced the structure and readability of the documentation, ensuring it aligns with the current implementation and usage scenarios.
This update improves the clarity of the procfs mount interfaces and removes outdated content.
* fmt
* refactor(procfs): adjust inode mode for mount stats
- Updated the inode mode handling in `pid_mount.rs` to ensure that `/proc/[pid]/mountstats` is owner-readable only, while other mount-related files remain world-readable.
- This change aligns with Linux's permissions model for procfs mount information, enhancing security and consistency.
This update improves the clarity of permission settings for procfs mount files.
* update(monitor_test_results): extend TEST_TIMEOUT from 30 to 35 minutes
* fix(procfs): set mountstats owner from target process
Signed-off-by: longjin <longjin@dragonos.org>
---------
Signed-off-by: xboHodx <xbohodx2024@gmail.com>
Signed-off-by: longjin <longjin@dragonos.org>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: longjin <longjin@dragonos.org>
* feat(vfs): implement pivot_root for mount namespaces
Add pivot_root(2) support for mount namespaces, including mount list
path rewrites, namespace-root handling, and rebinding of process fs root
and cwd after namespace switches.
Also fix mount-root path resolution and umount path lookup for moved
mount trees, and add C unit tests covering pivot_root behavior.
Signed-off-by: sparkzky <sparkhhhhhhhhhh@outlook.com>
* refactor: move pivot-test to dunitest
Signed-off-by: sparkzky <sparkhhhhhhhhhh@outlook.com>
* test(dunitest): add pivot_root case
* fix(vfs): 修复挂载传播和命名空间复制中的同步问题
- 修复挂载传播时未同步更新目标命名空间的mount_list,导致copy_mnt_ns时mountpoints
与mount_list不同步
- 修复clone(CLONE_NEWNS)后子进程的root/pwd未切换到新命名空间的根inode
- 移除umount2中的调试日志
- 添加pivot_root的完整测试套件,包括共享挂载拒绝、命名空间隔离和双重pivot测试
Signed-off-by: longjin <longjin@DragonOS.org>
---------
Signed-off-by: sparkzky <sparkhhhhhhhhhh@outlook.com>
Signed-off-by: longjin <longjin@DragonOS.org>
Co-authored-by: longjin <longjin@DragonOS.org>
- Upgrade Docker image version from v1.21 to v1.22 across dev container and CI
workflows
- Add .nix-gc-root to .gitignore
- Enhance nix configuration with Chinese mirrors, auto GC root, and system QEMU
support
- Update bootstrap script with improved nix installation and configuration
options
- Update DADK dependency to v0.6.1
Signed-off-by: longjin <longjin@DragonOS.org>
Implement
- userland build in nix, with cross platform support and
non-previleged disk gen
- qemu start command in nix
- nix develop envrionment for make kernel
- document build environment defined by nix
Next Steps
- 减小rootfs占用nix store的体积
- deb包的打包兼容用的函数
- 更加灵活的构建依赖注入
- 保留先前系统内修改的内容
- nix rootfs build与qemu启动适配 vnc模式
- 适配 riscv64 构建
- Arm MacOS上的开发兼容