已合并
DEC策略下发重构,单配置超限截断为前32条 #2938
DEC策略下发重构,单配置超限截断为前32条 #2938
已合并
soulrequiem创建于 8 天前
soulrequiem
soulrequiem
8 天前

相关的Issue: #2135

变更说明

  1. IoctlDecPolicyBatch类型与DecPolicyInfo解耦,ioctl ABI固定path[KERNEL_BATCH_SIZE]
  2. ioctl命令定义移到sandbox_dec.c内部,防止外部直接调用
  3. 所有ioctl路径按KERNEL_BATCH_SIZE分批下发
  4. SetDecPolicyInfos超限时保留已累积策略,不再destroy全部
  5. 单配置DEC路径数超MAX_CONFIG_POLICY_NUM(32)时截断保留前32条
  6. MAX_POLICY_NUM从64调整为256,测试用例全部参数化无硬编码

测试覆盖

  • sandbox_dec_test: 48个用例(含BatchPathNums精确验证)
  • app_spawn_sandbox_test: 190个用例(含dec_07~dec_14截断/边界/不超过测试)
  • 设备全量48套件通过
likedislike
Pull Request已成功合入, 合并人@openharmony_ci
(感谢 soulrequiem 的贡献)
soulrequiemsoulrequiem
8 天前 关联了issue:DEC策略下发重构,单配置超限截断为前32条
openharmony_ciopenharmony_ci成员
8 天前 添加了label:waiting_on_author
soulrequiem
soulrequiem
8 天前 评论:

start build

likedislike
openharmony_ci
openharmony_ci成员
8 天前 评论:

感谢提交 Pull Requests!如果您提交的PR已经开发完毕,请评论 "start build" 触发门禁,更多交互操作,请访问OpenHarmony社区支持命令清单。如果需要调整订阅PR、Issue的变更状态,请访问订阅链接


Thanks for submitting the pull request. If your Pull Request has already been developed, you can leave a "start build" comment to trigger the gated system. For more commands, please visit OpenHarmony Command List. If you need to change the subscription of a Pull Request or Issue, please visit the link.

likedislike
openharmony_ciopenharmony_ci成员
8 天前 添加了label:dco检查成功
此处折叠了104条消息 查看更多
Wwangfenging成员
6 天前 通过审查
openharmony_ciopenharmony_ci成员
6 天前 关闭了关联的issue
openharmony_ciopenharmony_ci成员
6 天前 合入了pull request,合并节点 SHA:2c00d066c7597e759364cab7492e1328c983442b
openharmony_ciopenharmony_ci成员
6 天前 删除了label:waiting_for_review
openharmony_ciopenharmony_ci成员
6 天前 添加了label:merged