Package: at
Version: 3.1.12-1
Severity: normal
Tags: patch
User: [email protected]
Usertags: origin-ubuntu maverick ubuntu-patch
Ubuntu has applied the attached patch to fix atd to work when running
with hardlink restrictions (Ubuntu's Yama, or with a grsecurity or
OpenWall kernel).
Thanks,
-Kees
--
Kees Cook @debian.org
--- at-3.1.12.orig/atd.c
+++ at-3.1.12/atd.c
@@ -252,7 +252,10 @@
* somebody else has already locked it (a second atd?); log the
* fact and return.
*/
- if (link(filename, newname) == -1) {
+ PRIV_START
+ rc = link(filename, newname);
+ PRIV_END
+ if (rc == -1) {
if (errno == EEXIST) {
free(mailname);
free(newname);