登录
注册
开源
企业版
高校版
搜索
帮助中心
使用条款
关于我们
开源
企业版
高校版
私有云
模力方舟
AI 队友
登录
注册
2025 Gitee 年度开源项目评选投票进行中,快为你的心仪项目助力!
代码拉取完成,页面将自动刷新
仓库状态说明
捐赠
捐赠前请先登录
取消
前往登录
扫描微信二维码支付
取消
支付完成
支付提示
将跳转至支付宝完成支付
确定
取消
Watch
不关注
关注所有动态
仅关注版本发行动态
关注但不提醒动态
10
Star
3
Fork
22
src-openEuler
/
libselinux
关闭
代码
Issues
2
Pull Requests
1
Wiki
统计
流水线
服务
JavaDoc
PHPDoc
质量分析
Jenkins for Gitee
腾讯云托管
腾讯云 Serverless
悬镜安全
阿里云 SAE
Codeblitz
SBOM
我知道了,不再自动展开
更新失败,请稍后重试!
移除标识
内容风险标识
本任务被
标识为内容中包含有代码安全 Bug 、隐私泄露等敏感信息,仓库外成员不可访问
回合上游社区补丁
已完成
#I7D5EH
缺陷
peulerosci
创建于
2023-06-13 16:28
<p>回合社区补丁</p><table ><tr><td colSpan="1" rowSpan="1">软件包</td><td colSpan="1" rowSpan="1">CommitId</td><td colSpan="1" rowSpan="1">描述</td></tr><tr><td colSpan="1" rowSpan="1">libselinux</td><td colSpan="1" rowSpan="1">1609b9fdfddc1f6baa1b38b57018b16af9c5471a</td><td colSpan="1" rowSpan="1">libselinux: restore: use fixed sized integer for hash index<br/><br/>The hash mask is set to 2^16 - 1, which does not fit into a signed 16<br/>bit integer. Use uint32_t to be on the safe side. Also use size_t for<br/>counting in debug function.<br/><br/>Signed-off-by: Christian Göttsche <br/>Acked-by: Jason Zaman </td></tr><tr><td colSpan="1" rowSpan="1">libselinux</td><td colSpan="1" rowSpan="1">4c47f92758df0ad266e8306bbec7b2798a4be3ea</td><td colSpan="1" rowSpan="1">libselinux:add check for malloc<br/><br/>Add return check for regex_data_create() to avoid NULL reference of regex_data<br/><br/>(gdb) bt<br/>#0 0x00007fbde5caec14 in pthread_mutex_init () from /usr/lib64/libc.so.6<br/>#1 0x00007fbde5e3a489 in regex_data_create () at regex.c:260<br/>#2 0x00007fbde5e3a4af in regex_prepare_data (regex=regex@entry=0x7fbde4613770, pattern_string=pattern_string@entry=0x563c6799a820 ^/home$, errordata=errordata@entry=0x7ffeb83fa950) at regex.c:76<br/>#3 0x00007fbde5e32fe6 in compile_regex (errbuf=0x0, spec=0x7fbde4613748) at label_file.h:407<br/>#4 lookup_all (key=0x563c679974e5 /var/log/kadmind.log, type=, partial=partial@entry=false, match_count=match_count@entry=0x0, rec=, rec=)<br/>at label_file.c:949<br/>#5 0x00007fbde5e33350 in lookup (rec=, key=, type=) at label_file.c:1092<br/>#6 0x00007fbde5e31878 in selabel_lookup_common (rec=0x563c67998cc0, translating=1, key=, type=) at label.c:167<br/><br/>Signed-off-by: Jie Lu <br/>Acked-by: James Carter </td></tr><tr><td colSpan="1" rowSpan="1">libselinux</td><td colSpan="1" rowSpan="1">001af27a6d32e5b3d1f7410f0007687d7e3c07f5</td><td colSpan="1" rowSpan="1">libselinux: fix some memory issues in db_init<br/><br/>1. check the return of strdup to avoid a potential NULL reference.<br/>2. make sure line_buf is freed.<br/><br/>Signed-off-by: Jie Lu <br/>Acked-by: James Carter </td></tr><tr><td colSpan="1" rowSpan="1">libselinux</td><td colSpan="1" rowSpan="1">d31280c26e066d68c3061fc24f5951829f641e81</td><td colSpan="1" rowSpan="1">libselinux: filter arguments with path separators<br/><br/>Boolean names, taken by security_get_boolean_pending(3),<br/>security_get_boolean_active(3) and security_set_boolean(3), as well as<br/>user names, taken by security_get_initial_context(3), are used in path<br/>constructions. Ensure they do not contain path separators to avoid<br/>unwanted path traversal.<br/><br/>Signed-off-by: Christian Göttsche <br/>Acked-by: James Carter </td></tr><tr><td colSpan="1" rowSpan="1">libselinux</td><td colSpan="1" rowSpan="1">d97c34efa5b95d8ec7c0445aa4f87eacf980bab6</td><td colSpan="1" rowSpan="1">libselinux: bail out on path truncations<br/><br/>Bail out if computed paths based on user input are being truncated, to<br/>avoid wrong files to be opened.<br/><br/>Signed-off-by: Christian Göttsche <br/>Acked-by: James Carter </td></tr><tr><td colSpan="1" rowSpan="1">libselinux</td><td colSpan="1" rowSpan="1">42f7f2fdcf1a38b6018933132ea6a35dc41bdeff</td><td colSpan="1" rowSpan="1">libselinux: fix memory leaks on the audit2why module init<br/><br/>Signed-off-by: Jie Lu <br/>Acked-by: James Carter </td></tr><tr><td colSpan="1" rowSpan="1">libselinux</td><td colSpan="1" rowSpan="1">f56a72ac9e86ddfbefedc41080f33fb06639f96b</td><td colSpan="1" rowSpan="1">libselinux: ignore invalid class name lookup<br/><br/>selinux_check_access relies on string_to_security_class to resolve the<br/>class index from its char* argument. There is no input validation done<br/>on the string provided. It is possible to supply an argument containing<br/>trailing backslashes (i.e., sock_file//////) so that the paths built<br/>in discover_class get truncated. The processing will then reference the<br/>same permission file multiple time (e.g., perms/watch_reads will be<br/>truncated to perms/watch). This will leak the memory allocated when<br/>strdup'ing the permission name. The discover_class_cache will end up in<br/>an invalid state (but not corrupted).<br/><br/>Ensure that the class provided does not contain any path separator.<br/><br/>Signed-off-by: Thiébaud Weksteen <br/>Acked-by: James Carter </td></tr><tr><td colSpan="1" rowSpan="1">libselinux</td><td colSpan="1" rowSpan="1">2f71384f233aa544cf0cf50be7e83c7762ad1c15</td><td colSpan="1" rowSpan="1">libselinux: Ignore missing directories when -i is used<br/><br/>Currently -i only ignores a file whose parent directory exists. Start also<br/>ignoring paths with missing components.<br/><br/>Fixes:<br/># restorecon -i -v -R /var/log/missingdir/missingfile; echo $?<br/>255<br/>restorecon: SELinux: Could not get canonical path for /var/log/missingdir/missingfile restorecon: No such file or directory.<br/><br/>Signed-off-by: Vit Mojzis <br/>Acked-by: James Carter </td></tr></table><p></p>
<p>回合社区补丁</p><table ><tr><td colSpan="1" rowSpan="1">软件包</td><td colSpan="1" rowSpan="1">CommitId</td><td colSpan="1" rowSpan="1">描述</td></tr><tr><td colSpan="1" rowSpan="1">libselinux</td><td colSpan="1" rowSpan="1">1609b9fdfddc1f6baa1b38b57018b16af9c5471a</td><td colSpan="1" rowSpan="1">libselinux: restore: use fixed sized integer for hash index<br/><br/>The hash mask is set to 2^16 - 1, which does not fit into a signed 16<br/>bit integer. Use uint32_t to be on the safe side. Also use size_t for<br/>counting in debug function.<br/><br/>Signed-off-by: Christian Göttsche <br/>Acked-by: Jason Zaman </td></tr><tr><td colSpan="1" rowSpan="1">libselinux</td><td colSpan="1" rowSpan="1">4c47f92758df0ad266e8306bbec7b2798a4be3ea</td><td colSpan="1" rowSpan="1">libselinux:add check for malloc<br/><br/>Add return check for regex_data_create() to avoid NULL reference of regex_data<br/><br/>(gdb) bt<br/>#0 0x00007fbde5caec14 in pthread_mutex_init () from /usr/lib64/libc.so.6<br/>#1 0x00007fbde5e3a489 in regex_data_create () at regex.c:260<br/>#2 0x00007fbde5e3a4af in regex_prepare_data (regex=regex@entry=0x7fbde4613770, pattern_string=pattern_string@entry=0x563c6799a820 ^/home$, errordata=errordata@entry=0x7ffeb83fa950) at regex.c:76<br/>#3 0x00007fbde5e32fe6 in compile_regex (errbuf=0x0, spec=0x7fbde4613748) at label_file.h:407<br/>#4 lookup_all (key=0x563c679974e5 /var/log/kadmind.log, type=, partial=partial@entry=false, match_count=match_count@entry=0x0, rec=, rec=)<br/>at label_file.c:949<br/>#5 0x00007fbde5e33350 in lookup (rec=, key=, type=) at label_file.c:1092<br/>#6 0x00007fbde5e31878 in selabel_lookup_common (rec=0x563c67998cc0, translating=1, key=, type=) at label.c:167<br/><br/>Signed-off-by: Jie Lu <br/>Acked-by: James Carter </td></tr><tr><td colSpan="1" rowSpan="1">libselinux</td><td colSpan="1" rowSpan="1">001af27a6d32e5b3d1f7410f0007687d7e3c07f5</td><td colSpan="1" rowSpan="1">libselinux: fix some memory issues in db_init<br/><br/>1. check the return of strdup to avoid a potential NULL reference.<br/>2. make sure line_buf is freed.<br/><br/>Signed-off-by: Jie Lu <br/>Acked-by: James Carter </td></tr><tr><td colSpan="1" rowSpan="1">libselinux</td><td colSpan="1" rowSpan="1">d31280c26e066d68c3061fc24f5951829f641e81</td><td colSpan="1" rowSpan="1">libselinux: filter arguments with path separators<br/><br/>Boolean names, taken by security_get_boolean_pending(3),<br/>security_get_boolean_active(3) and security_set_boolean(3), as well as<br/>user names, taken by security_get_initial_context(3), are used in path<br/>constructions. Ensure they do not contain path separators to avoid<br/>unwanted path traversal.<br/><br/>Signed-off-by: Christian Göttsche <br/>Acked-by: James Carter </td></tr><tr><td colSpan="1" rowSpan="1">libselinux</td><td colSpan="1" rowSpan="1">d97c34efa5b95d8ec7c0445aa4f87eacf980bab6</td><td colSpan="1" rowSpan="1">libselinux: bail out on path truncations<br/><br/>Bail out if computed paths based on user input are being truncated, to<br/>avoid wrong files to be opened.<br/><br/>Signed-off-by: Christian Göttsche <br/>Acked-by: James Carter </td></tr><tr><td colSpan="1" rowSpan="1">libselinux</td><td colSpan="1" rowSpan="1">42f7f2fdcf1a38b6018933132ea6a35dc41bdeff</td><td colSpan="1" rowSpan="1">libselinux: fix memory leaks on the audit2why module init<br/><br/>Signed-off-by: Jie Lu <br/>Acked-by: James Carter </td></tr><tr><td colSpan="1" rowSpan="1">libselinux</td><td colSpan="1" rowSpan="1">f56a72ac9e86ddfbefedc41080f33fb06639f96b</td><td colSpan="1" rowSpan="1">libselinux: ignore invalid class name lookup<br/><br/>selinux_check_access relies on string_to_security_class to resolve the<br/>class index from its char* argument. There is no input validation done<br/>on the string provided. It is possible to supply an argument containing<br/>trailing backslashes (i.e., sock_file//////) so that the paths built<br/>in discover_class get truncated. The processing will then reference the<br/>same permission file multiple time (e.g., perms/watch_reads will be<br/>truncated to perms/watch). This will leak the memory allocated when<br/>strdup'ing the permission name. The discover_class_cache will end up in<br/>an invalid state (but not corrupted).<br/><br/>Ensure that the class provided does not contain any path separator.<br/><br/>Signed-off-by: Thiébaud Weksteen <br/>Acked-by: James Carter </td></tr><tr><td colSpan="1" rowSpan="1">libselinux</td><td colSpan="1" rowSpan="1">2f71384f233aa544cf0cf50be7e83c7762ad1c15</td><td colSpan="1" rowSpan="1">libselinux: Ignore missing directories when -i is used<br/><br/>Currently -i only ignores a file whose parent directory exists. Start also<br/>ignoring paths with missing components.<br/><br/>Fixes:<br/># restorecon -i -v -R /var/log/missingdir/missingfile; echo $?<br/>255<br/>restorecon: SELinux: Could not get canonical path for /var/log/missingdir/missingfile restorecon: No such file or directory.<br/><br/>Signed-off-by: Vit Mojzis <br/>Acked-by: James Carter </td></tr></table><p></p>
评论 (
2
)
登录
后才可以发表评论
状态
已完成
待办的
已挂起
修复中
已确认
已完成
已验收
已取消
负责人
未设置
标签
sig/sig-security-fac
未设置
项目
未立项任务
未立项任务
里程碑
未关联里程碑
未关联里程碑
Pull Requests
未关联
未关联
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
未关联
分支 (30)
标签 (24)
master
openEuler-25.09
openEuler-24.03-LTS-SP1
openEuler-24.03-LTS-Next
openEuler-24.03-LTS-SP3
openEuler-24.03-LTS
openEuler-24.03-LTS-SP2
openEuler-22.03-LTS-SP4
openEuler-22.03-LTS-SP3
openEuler-20.03-LTS-SP4
openEuler-25.03
openEuler-24.09
openEuler-22.03-LTS-Next
openEuler-22.03-LTS-SP1
openEuler-22.03-LTS-SP2
openEuler-22.03-LTS
openEuler-23.09
openEuler-20.03-LTS-SP3
openEuler-20.03-LTS-SP1
openEuler-23.03
openEuler-22.09
openEuler-22.03-LTS-LoongArch
openEuler-20.03-LTS-Next
openEuler-20.03-LTS-SP2
openEuler-21.09
openEuler-21.03
openEuler-20.03-LTS
openEuler-20.09
openEuler1.0
openEuler1.0-base
openEuler-25.09-release
openEuler-24.03-LTS-SP2-release
openEuler-25.03-release
openEuler-24.03-LTS-SP1-release
openEuler-22.03-LTS-SP4-release
openEuler-24.09-release
openEuler-24.03-LTS-release
openEuler-22.03-LTS-SP3-release
openEuler-23.09-rc5
openEuler-22.03-LTS-SP1-release
openEuler-22.09-release
openEuler-22.09-rc5
openEuler-22.09-20220829
openEuler-22.03-LTS-20220331
openEuler-22.03-LTS-round5
openEuler-22.03-LTS-round3
openEuler-22.03-LTS-round2
openEuler-22.03-LTS-round1
openEuler-20.03-LTS-SP3-release
openEuler-20.03-LTS-SP2-20210624
openEuler-21.03-20210330
openEuler-20.09-20200929
openEuler-20.03-LTS-20200606
openEuler-20.03-LTS-tag
开始日期   -   截止日期
-
置顶选项
不置顶
置顶等级:高
置顶等级:中
置顶等级:低
优先级
不指定
严重
主要
次要
不重要
预计工期
(小时)
参与者(1)
1
https://gitee.com/src-openeuler/libselinux.git
git@gitee.com:src-openeuler/libselinux.git
src-openeuler
libselinux
libselinux
点此查找更多帮助
搜索帮助
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
评论
仓库举报
回到顶部
登录提示
该操作需登录 Gitee 帐号,请先登录后再操作。
立即登录
没有帐号,去注册