Fix log file permissions patch with our selinux

Resolves: #1309421
This commit is contained in:
Robbie Harwood 2016-02-22 22:06:55 +00:00
parent 96d71f74f7
commit 8bddc884ac
2 changed files with 7 additions and 3 deletions

View File

@ -10,7 +10,7 @@ allows them.
[ghudson@mit.edu: wrote commit message, de-indented post-open setup [ghudson@mit.edu: wrote commit message, de-indented post-open setup
code] code]
[rharwood@redhat.com: backport not clean for some reason?] [rharwood@redhat.com: backport not clean due to SELinux patching]
ticket: 8344 (new) ticket: 8344 (new)
--- ---
@ -45,7 +45,7 @@ index 19c4355..f4a9387 100644
- } else { - } else {
+ append = (cp[4] == ':') ? O_APPEND : 0; + append = (cp[4] == ':') ? O_APPEND : 0;
+ if (append || cp[4] == '=') { + if (append || cp[4] == '=') {
+ fd = open(&cp[5], O_CREAT | O_WRONLY | append, + fd = THREEPARAMOPEN(&cp[5], O_CREAT | O_WRONLY | append,
+ S_IRUSR | S_IWUSR | S_IRGRP); + S_IRUSR | S_IWUSR | S_IRGRP);
+ if (fd != -1) + if (fd != -1)
+ f = fdopen(fd, append ? "a" : "w"); + f = fdopen(fd, append ? "a" : "w");

View File

@ -13,7 +13,7 @@
Summary: The Kerberos network authentication system Summary: The Kerberos network authentication system
Name: krb5 Name: krb5
Version: 1.14 Version: 1.14
Release: 22%{?dist} Release: 23%{?dist}
# - Maybe we should explode from the now-available-to-everybody tarball instead? # - Maybe we should explode from the now-available-to-everybody tarball instead?
# http://web.mit.edu/kerberos/dist/krb5/1.13/krb5-1.13.2-signed.tar # http://web.mit.edu/kerberos/dist/krb5/1.13/krb5-1.13.2-signed.tar
# - The sources below are stored in a lookaside cache. Upload with # - The sources below are stored in a lookaside cache. Upload with
@ -777,6 +777,10 @@ exit 0
%changelog %changelog
* Mon Feb 22 2016 Robbie Harwood <rharwood@redhat.com> - 1.14-23
- Fix log file permissions patch with our selinux
- Resolves: #1309421
* Fri Feb 19 2016 Robbie Harwood <rharwood@redhat.com> - 1.14-22 * Fri Feb 19 2016 Robbie Harwood <rharwood@redhat.com> - 1.14-22
- Backport my interposer fixes from upstream - Backport my interposer fixes from upstream
- Supersedes krb5-mechglue_inqure_attrs.patch - Supersedes krb5-mechglue_inqure_attrs.patch