Your message dated Sat, 16 Nov 2019 10:08:47 +0000 with message-id <83c9ffab6f08361485f70dda4733a7a24aeec09b.camel@adam-barratt.org.uk> and subject line Closing bugs for 10.2 point release fixes has caused the Debian Bug report #942209, regarding buster-pu: package cron/3.0pl1-134 to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact owner@bugs.debian.org immediately.) -- 942209: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=942209 Debian Bug Tracking System Contact owner@bugs.debian.org with problems
--- Begin Message ---
- To: submit@bugs.debian.org
- Subject: buster-pu: package cron/3.0pl1-134
- From: Christian Kastner <ckk@debian.org>
- Date: Sat, 12 Oct 2019 13:10:55 +0200
- Message-id: <433fbe6b-21f3-252c-0434-f0455bd8cf1f@debian.org>
Package: release.debian.org User: release.debian.org@packages.debian.org Usertags: pu Tags: buster Severity: normal I'd like to fix #924716, an issue with cron's SELinux code using an obsolete API, in stable. I've already talked to the Security Team to check if this needs to go through security.d.o, but they are content with going by s-p-u. Christiandiff -u cron-3.0pl1/debian/changelog cron-3.0pl1/debian/changelog --- cron-3.0pl1/debian/changelog +++ cron-3.0pl1/debian/changelog @@ -1,3 +1,10 @@ +cron (3.0pl1-134+deb10u1) buster; urgency=medium + + [ Laurent Bigonville ] + * Stop using obsolete SELinux API (Closes: #924716) + + -- Christian Kastner <ckk@debian.org> Fri, 11 Oct 2019 09:58:52 +0200 + cron (3.0pl1-134) unstable; urgency=medium * Increase maximum crontab length to 10,000 lines. diff -u cron-3.0pl1/user.c cron-3.0pl1/user.c --- cron-3.0pl1/user.c +++ cron-3.0pl1/user.c @@ -31,8 +31,6 @@ #ifdef WITH_SELINUX #include <selinux/context.h> #include <selinux/selinux.h> -#include <selinux/flask.h> -#include <selinux/av_permissions.h> #include <selinux/get_context_list.h> static int get_security_context(char *name, int crontab_fd, security_context_t @@ -108,13 +106,35 @@ * permission check for this purpose. */ + security_class_t tclass = string_to_security_class("file"); + if (!tclass) { + log_it(name, getpid(), "Failed to translate security class file", tabname); + freeconary(context_list); + if (security_deny_unknown() == 0) { + return 0; + } else { + return -1; + } + } + + access_vector_t bit = string_to_av_perm(tclass, "entrypoint"); + if (!bit) { + log_it(name, getpid(), "Failed to translate av perm entrypoint", tabname); + freeconary(context_list); + if (security_deny_unknown() == 0) { + return 0; + } else { + return -1; + } + } + for (i = 0; i < list_count; i++) { retval = security_compute_av(context_list[i], file_context, - SECCLASS_FILE, - FILE__ENTRYPOINT, + tclass, + bit, &avd); - if (!retval && ((FILE__ENTRYPOINT & avd.allowed) == FILE__ENTRYPOINT)) { + if(!retval && ((bit & avd.allowed) == bit)) { *rcontext = strdup(context_list[i]); freecon(file_context); freeconary(context_list);
--- End Message ---
--- Begin Message ---
- To: 931766-done@bugs.debian.org, 932900-done@bugs.debian.org, 935250-done@bugs.debian.org, 935252-done@bugs.debian.org, 935392-done@bugs.debian.org, 939015-done@bugs.debian.org, 939166-done@bugs.debian.org, 939313-done@bugs.debian.org, 939354-done@bugs.debian.org, 939432-done@bugs.debian.org, 939446-done@bugs.debian.org, 939526-done@bugs.debian.org, 939738-done@bugs.debian.org, 939757-done@bugs.debian.org, 939831-done@bugs.debian.org, 939890-done@bugs.debian.org, 939965-done@bugs.debian.org, 940112-done@bugs.debian.org, 940170-done@bugs.debian.org, 940245-done@bugs.debian.org, 940476-done@bugs.debian.org, 940521-done@bugs.debian.org, 940548-done@bugs.debian.org, 940685-done@bugs.debian.org, 940686-done@bugs.debian.org, 940818-done@bugs.debian.org, 940943-done@bugs.debian.org, 941168-done@bugs.debian.org, 941227-done@bugs.debian.org, 941348-done@bugs.debian.org, 941451-done@bugs.debian.org, 941468-done@bugs.debian.org, 941683-done@bugs.debian.org, 941738-done@bugs.debian.org, 942044-done@bugs.debian.org, 942075-done@bugs.debian.org, 942177-done@bugs.debian.org, 942209-done@bugs.debian.org, 942253-done@bugs.debian.org, 942349-done@bugs.debian.org, 942356-done@bugs.debian.org, 942446-done@bugs.debian.org, 942486-done@bugs.debian.org, 942524-done@bugs.debian.org, 942827-done@bugs.debian.org, 943339-done@bugs.debian.org, 943364-done@bugs.debian.org, 943594-done@bugs.debian.org, 943605-done@bugs.debian.org, 943667-done@bugs.debian.org, 943766-done@bugs.debian.org, 943846-done@bugs.debian.org, 943882-done@bugs.debian.org, 944002-done@bugs.debian.org, 944009-done@bugs.debian.org, 944064-done@bugs.debian.org, 944119-done@bugs.debian.org, 944133-done@bugs.debian.org, 944238-done@bugs.debian.org, 944252-done@bugs.debian.org, 944374-done@bugs.debian.org, 944390-done@bugs.debian.org
- Subject: Closing bugs for 10.2 point release fixes
- From: "Adam D. Barratt" <adam@adam-barratt.org.uk>
- Date: Sat, 16 Nov 2019 10:08:47 +0000
- Message-id: <83c9ffab6f08361485f70dda4733a7a24aeec09b.camel@adam-barratt.org.uk>
Package: release.debian.org Version: 10.2 Hi, The fixes referenced by these bugs were included in today's 10.2 stable point release. Regards, Adam
--- End Message ---