update version to 3.5
This commit is contained in:
parent
b8a7a78130
commit
a8243a9af7
@ -1,32 +0,0 @@
|
|||||||
From 1d33c911f514449bbc8cab71332752c22561b911 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Vit Mojzis <vmojzis@redhat.com>
|
|
||||||
Date: Thu, 24 Nov 2022 17:31:52 +0100
|
|
||||||
Subject: [PATCH] checkpolicy: Improve error message for type bounds
|
|
||||||
|
|
||||||
Make the error message consistent with other occurrences of the
|
|
||||||
same issue:
|
|
||||||
https://github.com/SELinuxProject/selinux/blob/master/checkpolicy/module_compiler.c#L243
|
|
||||||
https://github.com/SELinuxProject/selinux/blob/master/checkpolicy/module_compiler.c#L488
|
|
||||||
|
|
||||||
Signed-off-by: Vit Mojzis <vmojzis@redhat.com>
|
|
||||||
Acked-by: James Carter <jwcart2@gmail.com>
|
|
||||||
---
|
|
||||||
policy_define.c | 2 +-
|
|
||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/policy_define.c b/policy_define.c
|
|
||||||
index 41e44631..86d57017 100644
|
|
||||||
--- a/policy_define.c
|
|
||||||
+++ b/policy_define.c
|
|
||||||
@@ -1416,7 +1416,7 @@ static int define_typebounds_helper(char *bounds_id, char *type_id)
|
|
||||||
if (!type->bounds)
|
|
||||||
type->bounds = bounds->s.value;
|
|
||||||
else if (type->bounds != bounds->s.value) {
|
|
||||||
- yyerror2("type %s has inconsistent master {%s,%s}",
|
|
||||||
+ yyerror2("type %s has inconsistent bounds %s/%s",
|
|
||||||
type_id,
|
|
||||||
policydbp->p_type_val_to_name[type->bounds - 1],
|
|
||||||
policydbp->p_type_val_to_name[bounds->s.value - 1]);
|
|
||||||
--
|
|
||||||
2.39.2.windows.1
|
|
||||||
|
|
||||||
@ -1,60 +0,0 @@
|
|||||||
From 27e1c7c8e90b98da53bfcce291b03d8f2f0f0b4d Mon Sep 17 00:00:00 2001
|
|
||||||
From: lujiev <572084868@qq.com>
|
|
||||||
Date: Thu, 27 Oct 2022 16:02:18 +0800
|
|
||||||
Subject: [PATCH] checkpolicy: delete invalid spaces
|
|
||||||
|
|
||||||
Closes: https://github.com/SELinuxProject/selinux/pull/372
|
|
||||||
Signed-off-by: lujiev <572084868@qq.com>
|
|
||||||
Acked-by: Jason Zaman <jason@perfinion.com>
|
|
||||||
---
|
|
||||||
policy_define.c | 10 +++++-----
|
|
||||||
1 file changed, 5 insertions(+), 5 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/policy_define.c b/policy_define.c
|
|
||||||
index 86d57017..c2ae7fe5 100644
|
|
||||||
--- a/policy_define.c
|
|
||||||
+++ b/policy_define.c
|
|
||||||
@@ -2208,7 +2208,7 @@ static int avrule_ioctl_partialdriver(struct av_ioctl_range_list *rangelist,
|
|
||||||
xperms = calloc(1, sizeof(av_extended_perms_t));
|
|
||||||
if (!xperms) {
|
|
||||||
yyerror("out of memory");
|
|
||||||
- return - 1;
|
|
||||||
+ return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
r = rangelist;
|
|
||||||
@@ -2245,7 +2245,7 @@ static int avrule_ioctl_completedriver(struct av_ioctl_range_list *rangelist,
|
|
||||||
xperms = calloc(1, sizeof(av_extended_perms_t));
|
|
||||||
if (!xperms) {
|
|
||||||
yyerror("out of memory");
|
|
||||||
- return - 1;
|
|
||||||
+ return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
r = rangelist;
|
|
||||||
@@ -2289,7 +2289,7 @@ static int avrule_ioctl_func(struct av_ioctl_range_list *rangelist,
|
|
||||||
xperms = calloc(1, sizeof(av_extended_perms_t));
|
|
||||||
if (!xperms) {
|
|
||||||
yyerror("out of memory");
|
|
||||||
- return - 1;
|
|
||||||
+ return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
r = rangelist;
|
|
||||||
@@ -2352,11 +2352,11 @@ static int avrule_cpy(avrule_t *dest, const avrule_t *src)
|
|
||||||
dest->flags = src->flags;
|
|
||||||
if (type_set_cpy(&dest->stypes, &src->stypes)) {
|
|
||||||
yyerror("out of memory");
|
|
||||||
- return - 1;
|
|
||||||
+ return -1;
|
|
||||||
}
|
|
||||||
if (type_set_cpy(&dest->ttypes, &src->ttypes)) {
|
|
||||||
yyerror("out of memory");
|
|
||||||
- return - 1;
|
|
||||||
+ return -1;
|
|
||||||
}
|
|
||||||
dest->line = src->line;
|
|
||||||
dest->source_filename = strdup(source_file);
|
|
||||||
--
|
|
||||||
2.39.2.windows.1
|
|
||||||
|
|
||||||
Binary file not shown.
BIN
checkpolicy-3.5.tar.gz
Normal file
BIN
checkpolicy-3.5.tar.gz
Normal file
Binary file not shown.
@ -1,14 +1,11 @@
|
|||||||
Name: checkpolicy
|
Name: checkpolicy
|
||||||
Version: 3.4
|
Version: 3.5
|
||||||
Release: 2
|
Release: 1
|
||||||
Summary: SELinux policy compiler
|
Summary: SELinux policy compiler
|
||||||
License: GPLv2
|
License: GPLv2
|
||||||
URL: https://github.com/SELinuxProject/selinux
|
URL: https://github.com/SELinuxProject/selinux
|
||||||
Source0: https://github.com/SELinuxProject/selinux/releases/download/%{version}/checkpolicy-%{version}.tar.gz
|
Source0: https://github.com/SELinuxProject/selinux/releases/download/%{version}/checkpolicy-%{version}.tar.gz
|
||||||
|
|
||||||
Patch0: backport-checkpolicy-Improve-error-message-for-type-bounds.patch
|
|
||||||
Patch1: backport-checkpolicy-delete-invalid-spaces.patch
|
|
||||||
|
|
||||||
BuildRequires: gcc byacc bison flex flex-static libsepol-static >= %{version} libselinux-devel >= %{version}
|
BuildRequires: gcc byacc bison flex flex-static libsepol-static >= %{version} libselinux-devel >= %{version}
|
||||||
|
|
||||||
Conflicts: selinux-policy-base < 3.13.1-138
|
Conflicts: selinux-policy-base < 3.13.1-138
|
||||||
@ -49,7 +46,7 @@ install test/dispol %{buildroot}%{_bindir}/sedispol
|
|||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%license COPYING
|
%license LICENSE
|
||||||
%{_bindir}/*
|
%{_bindir}/*
|
||||||
|
|
||||||
%files help
|
%files help
|
||||||
@ -57,6 +54,9 @@ install test/dispol %{buildroot}%{_bindir}/sedispol
|
|||||||
%{_mandir}/*/*
|
%{_mandir}/*/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Jul 17 2023 zhangguangzhi <zhangguangzhi3@huawei.com> - 3.5-1
|
||||||
|
- update version to 3.5
|
||||||
|
|
||||||
* Fri Mar 10 2023 zhangchenfeng <zhangchenfeng1@huawei.com> - 3.4-2
|
* Fri Mar 10 2023 zhangchenfeng <zhangchenfeng1@huawei.com> - 3.4-2
|
||||||
- backport upstrem bugfix
|
- backport upstrem bugfix
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user