Package: cron
Version: 3.0pl1-87.1sel
Severity: wishlist
Tags: patch

Hi,

        Please consider turning on SELinux support to cron. This has
 been tested on non-SELinux machines to ensure that there is no
 problem in the general case. I am attaching a patch below, that also
 fixes important bug 279429.

        manoj

diff -uBbwr cron-3.0pl1/debian/control cron-3.0pl1.selinux/debian/control
--- cron-3.0pl1/debian/control	2005-06-23 00:32:58.000000000 -0500
+++ cron-3.0pl1.selinux/debian/control	2005-06-23 00:47:38.000000000 -0500
@@ -3,7 +3,7 @@
 Priority: important
 Maintainer: Steve Greenland <[EMAIL PROTECTED]>
 Standards-Version: 3.6.1
-Build-Depends: debhelper, libpam0g-dev, libselinux1-dev
+Build-Depends: debhelper, libpam0g-dev, libselinux1-dev [!hurd-i386]
 
 Package: cron
 Architecture: any
diff -uBbwr cron-3.0pl1/debian/rules cron-3.0pl1.selinux/debian/rules
--- cron-3.0pl1/debian/rules	2005-06-23 00:32:58.000000000 -0500
+++ cron-3.0pl1.selinux/debian/rules	2005-06-23 01:09:31.000000000 -0500
@@ -18,13 +18,6 @@
   DEB_INSTALL += -s
 endif
 
-# SELinux
-ifeq (yes,$(SELINUX))
-  SELINUX_DEFS = -DWITH_SELINUX
-  SELINUX_LIBS = -lselinux
-endif
-
-export SELINUX_DEFS SELINUX_LIBS
 
 # Set system type (Linux, HURD, etc.)
 DEB_HOST_GNU_SYSTEM = $(shell dpkg-architecture -qDEB_HOST_GNU_SYSTEM)
@@ -36,11 +29,19 @@
   PAM_DEFS = -DUSE_PAM
   PAM_LIBS = -lpam
   CONFFILES = conffiles.pam
+  SELINUX = yes
 endif
 
 export PAM_DEFS
 export PAM_LIBS
 
+# SELinux
+ifeq (yes,$(SELINUX))
+  SELINUX_DEFS = -DWITH_SELINUX
+  SELINUX_LIBS = -lselinux
+endif
+
+export SELINUX_DEFS SELINUX_LIBS
 
 build: build-cron build-cron-se
 


-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.11.2-skas3-v8-rc2
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=ANSI_X3.4-1968) 
(ignored: LC_ALL set to C)

Versions of packages cron depends on:
ii  adduser                     3.64         Add and remove users and groups
ii  debianutils                 2.13.2       Miscellaneous utilities specific t
ii  libc6                       2.3.2.ds1-22 GNU C Library: Shared libraries an
ii  libpam0g                    0.77-0.se5   Pluggable Authentication Modules l
ii  libselinux1                 1.22-1       SELinux shared libraries

Versions of packages cron recommends:
ii  sendmail-bin [mail-transport- 8.13.4-3   powerful, efficient, and scalable 

-- debconf information:
* cron/checksecurity:

-- 
Q: Why are Unix emulators like your right hand? A: They're just pussy
substitutes!
Manoj Srivastava   <[EMAIL PROTECTED]>  <http://www.debian.org/%7Esrivasta/>
1024D/BF24424C print 4966 F272 D093 B493 410B  924B 21BA DABB BF24 424C

Reply via email to