Fix SELinux labels on $errfile (fixes bug# 530419)

This commit is contained in:
Matej Cepl 2009-11-10 20:20:57 +00:00
parent 2bf2a23804
commit 57bed23049
2 changed files with 5 additions and 1 deletions

View File

@ -14,6 +14,7 @@ if [ -z "$GDMSESSION" ]; then
errfile="$HOME/.xsession-errors"
if ( umask 077 && cp /dev/null "$errfile" 2> /dev/null ); then
chmod 600 "$errfile"
[ -x /sbin/restorecon ] && /sbin/restorecon $errfile
exec > "$errfile" 2>&1
else
errfile=$(mktemp -q /tmp/xses-$USER.XXXXXX)

View File

@ -3,7 +3,7 @@
Summary: X.Org X11 X Window System xinit startup scripts
Name: xorg-x11-%{pkgname}
Version: 1.0.9
Release: 12%{?dist}
Release: 13%{?dist}
License: MIT
Group: User Interface/X
URL: http://www.x.org
@ -131,6 +131,9 @@ rm -rf $RPM_BUILD_ROOT
%{_datadir}/xsessions/xinit-compat.desktop
%changelog
* Tue Nov 10 2009 Matěj Cepl <mcepl@redhat.com> - 1.0.9-13
- Fix SELinux labels on $errfile (fixes bug# 530419)
* Mon Jul 27 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.9-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild