atd
Subsystems (2)
The atd in CentOS 5.2 doesn't call getseuserbyname(), which has the potential to do some undesirable things. I presume that the same code is in RHEL 5.2, and it may be in recent Fedora's (I haven't checked).
I've attached the patch that I have submitted for Debian to fix this.
Signature · 3 lines
[email protected] http://etbe.coker.com.au/ My Main Blog http://doc.coker.com.au/ My Documents Blog
Makefile.in +2 -1
@@ -27,6 +27,7 @@ YACC = @YACC@ LEX = @LEX@ LEXLIB = @LEXLIB@ +SELINUXLIB = @SELINUXLIB@ CC = @CC@ CFLAGS = @CFLAGS@
@@ -73,7 +74,7 @@ $(LN_S) -f at atrm atd: $(RUNOBJECTS) - $(CC) $(CFLAGS) -o atd $(RUNOBJECTS) $(LIBS) $(PAMLIB) + $(CC) $(CFLAGS) -o atd $(RUNOBJECTS) $(LIBS) $(PAMLIB) $(SELINUXLIB) y.tab.c y.tab.h: parsetime.y $(YACC) -d parsetime.y
atd.c +81 -0
99 lines not on this page · raw message
config.h.in +3 -0
@@ -82,6 +82,9 @@ #undef HAVE_ATTRIBUTE_NORETURN +/* Define if you are building with_selinux */ +#undef WITH_SELINUX + /* Define if you have the getcwd function. */ #undef HAVE_GETCWD
configure.in +8 -0
@@ -316,4 +316,12 @@ ) AC_SUBST(DAEMON_GROUPNAME) +AC_ARG_WITH(selinux, +[ --with-selinux Define to run with selinux], +AC_DEFINE(WITH_SELINUX), +) +AC_CHECK_LIB(selinux, is_selinux_enabled, SELINUXLIB=-lselinux) +AC_SUBST(SELINUXLIB) +AC_SUBST(WITH_SELINUX) + AC_OUTPUT(Makefile atrun atd.8 atrun.8 at.1 batch)
debian/control +1 -1
@@ -3,7 +3,7 @@ Priority: important Maintainer: Ryan Murray <[email protected]> Standards-Version: 3.6.2 -Build-Depends: bison, flex, libpam0g-dev, ssmtp | mail-transport-agent +Build-Depends: bison, flex, libpam0g-dev, ssmtp | mail-transport-agent, libselinux1-dev Package: at Architecture: any
debian/rules +1 -1
@@ -30,7 +30,7 @@ -test -f config.cache || PATH=/usr/sbin:$${PATH} ./configure --prefix=/usr \ --with-loadavg_mx=1.5 \ --with-jobdir=/var/spool/cron/atjobs \ - --with-atspool=/var/spool/cron/atspool + --with-atspool=/var/spool/cron/atspool --with-selinux sed 's,/usr/lib/sendmail,/usr/sbin/sendmail,g' \ < config.h > config.h.new mv -f config.h.new config.h