summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKyle McMartin <kyle@mcmartin.ca>2010-11-17 00:37:01 -0500
committerKyle McMartin <kyle@mcmartin.ca>2010-11-17 12:32:20 -0500
commitd287769cc9dbdad68eb0123b149e8c8edae4632f (patch)
treee98e33deae04eb3f6f3e76569cf74f53e98b145d
parentccb40e674588f671092435079c2e503325d3ce34 (diff)
downloadkernel-d287769cc9dbdad68eb0123b149e8c8edae4632f.tar.gz
kernel-d287769cc9dbdad68eb0123b149e8c8edae4632f.tar.xz
kernel-d287769cc9dbdad68eb0123b149e8c8edae4632f.zip
make vmlinuz/System.map root-only by default
-rw-r--r--kernel.spec8
1 files changed, 6 insertions, 2 deletions
diff --git a/kernel.spec b/kernel.spec
index 6a5c2a2ee..2850a528c 100644
--- a/kernel.spec
+++ b/kernel.spec
@@ -1840,8 +1840,8 @@ fi
%if %{1}\
%{expand:%%files %{?2}}\
%defattr(-,root,root)\
-/%{image_install_path}/%{?-k:%{-k*}}%{!?-k:vmlinuz}-%{KVERREL}%{?2:.%{2}}\
-/boot/System.map-%{KVERREL}%{?2:.%{2}}\
+%attr(600,root,root) /%{image_install_path}/%{?-k:%{-k*}}%{!?-k:vmlinuz}-%{KVERREL}%{?2:.%{2}}\
+%attr(600,root,root) /boot/System.map-%{KVERREL}%{?2:.%{2}}\
/boot/config-%{KVERREL}%{?2:.%{2}}\
%dir /lib/modules/%{KVERREL}%{?2:.%{2}}\
/lib/modules/%{KVERREL}%{?2:.%{2}}/kernel\
@@ -1899,6 +1899,10 @@ fi
# || ||
%changelog
+* Wed Nov 17 2010 Kyle McMartin <kyle@redhat.com>
+- Make vmlinuz/System.map root read-write only by default. You can just
+ chmod 644 them later if you (unlikely) need them without root.
+
* Mon Nov 15 2010 Kyle McMartin <kyle@redhat.com> 2.6.37-0.1.rc2.git0
- Linux 2.6.37-rc2