| Summary: | strange rights in fcron | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Kandalincev Alexandre <exe> |
| Component: | Current packages | Assignee: | Wolfram Schlich (RETIRED) <wschlich> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | normal | CC: | cron-bugs+disabled, sharpshopter |
| Priority: | High | ||
| Version: | 2005.1 | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
|
Description
Kandalincev Alexandre
2006-04-26 14:25:09 UTC
Seems like this patch fixes the entire EDITOR problem:
Index: fcron-3.0.1-r2.ebuild
===================================================================
RCS file: /var/cvsroot/gentoo-x86/sys-process/fcron/fcron-3.0.1-r2.ebuild,v
retrieving revision 1.3
diff -u -B -r1.3 fcron-3.0.1-r2.ebuild
--- fcron-3.0.1-r2.ebuild 29 Sep 2006 19:19:03 -0000 1.3
+++ fcron-3.0.1-r2.ebuild 1 Oct 2006 17:40:06 -0000
@@ -74,7 +74,6 @@
--with-fifodir=/var/run \
--with-sendmail=/usr/sbin/sendmail \
--with-fcrondyn=yes \
- --with-editor=${EDITOR} \
--with-shell=/bin/sh \
${myconf} \
|| die "Configure problem"
Oops, wrong bug. They can do more than read other crontabs, they can delete the *.orig files (next edit, the user has to start with a blank crontab), slip in rogue commands (which unless the user notices and removes it next edit, will be run with their permissions), and delete crontab files (which will not be replaced if fcron exits uncleanly, eg. power outage). I think this borders on being a security bug. A quick fix to these problems is setting the sticky bit on /var/spool/cron/fcrontabs, but that still leaves your crontab leak. For some reason, I don't know why, a user needs to be able to write to the fcrontabs directory to edit their crontab (even though the fcrontab prog is SUID cron). *** This bug has been marked as a duplicate of bug 171393 *** |