public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: sys-process/vixie-cron/files/
@ 2017-02-14 21:37 David Seifert
  0 siblings, 0 replies; 2+ messages in thread
From: David Seifert @ 2017-02-14 21:37 UTC (permalink / raw
  To: gentoo-commits

commit:     6a3a73f8485460576648ae9c5499d4defcd2576c
Author:     Michael Mair-Keimberger (asterix) <m.mairkeimberger <AT> gmail <DOT> com>
AuthorDate: Sun Feb 12 16:03:45 2017 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Tue Feb 14 21:35:37 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6a3a73f8

sys-process/vixie-cron: remove unused files

Closes: https://github.com/gentoo/gentoo/pull/3934

 sys-process/vixie-cron/files/cron.pam.d     |  7 -------
 sys-process/vixie-cron/files/vixie-cron.rc6 | 22 ----------------------
 2 files changed, 29 deletions(-)

diff --git a/sys-process/vixie-cron/files/cron.pam.d b/sys-process/vixie-cron/files/cron.pam.d
deleted file mode 100644
index e09d6f8d83..0000000000
--- a/sys-process/vixie-cron/files/cron.pam.d
+++ /dev/null
@@ -1,7 +0,0 @@
-#%PAM-1.0
-
-account required        pam_unix.so
-
-auth    required        pam_unix.so
-
-session required        pam_limits.so

diff --git a/sys-process/vixie-cron/files/vixie-cron.rc6 b/sys-process/vixie-cron/files/vixie-cron.rc6
deleted file mode 100644
index 9dfa7dc60b..0000000000
--- a/sys-process/vixie-cron/files/vixie-cron.rc6
+++ /dev/null
@@ -1,22 +0,0 @@
-#!/sbin/openrc-run
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-depend() {
-	use clock logger
-	need localmount
-	provide cron	
-}
-
-start() {
-	ebegin "Starting vixie-cron"
-	start-stop-daemon --start --quiet --exec /usr/sbin/cron
-	eend $?
-}
-
-stop() {
-	ebegin "Stopping vixie-cron"
-	start-stop-daemon --stop --quiet --pidfile /var/run/cron.pid
-	eend $?
-}


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: sys-process/vixie-cron/files/
@ 2017-11-04  7:18 Michael Palimaka
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Palimaka @ 2017-11-04  7:18 UTC (permalink / raw
  To: gentoo-commits

commit:     ad671b1fe2adfcedcb518c2c0b7abdba9e3ff158
Author:     Michael Mair-Keimberger <m.mairkeimberger <AT> gmail <DOT> com>
AuthorDate: Wed Oct 25 08:32:38 2017 +0000
Commit:     Michael Palimaka <kensington <AT> gentoo <DOT> org>
CommitDate: Sat Nov  4 07:18:33 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ad671b1f

sys-process/vixie-cron: remove unused patch

 .../vixie-cron/files/vixie-cron-4.1-selinux.diff   | 117 ---------------------
 1 file changed, 117 deletions(-)

diff --git a/sys-process/vixie-cron/files/vixie-cron-4.1-selinux.diff b/sys-process/vixie-cron/files/vixie-cron-4.1-selinux.diff
deleted file mode 100644
index a4621e2530d..00000000000
--- a/sys-process/vixie-cron/files/vixie-cron-4.1-selinux.diff
+++ /dev/null
@@ -1,117 +0,0 @@
---- vixie-cron-3.0.1/Makefile.selinux	2003-05-20 14:52:06.000000000 -0400
-+++ vixie-cron-3.0.1/Makefile	2003-05-20 14:52:21.000000000 -0400
-@@ -71,7 +71,8 @@ LINTFLAGS	=	-hbxa $(INCLUDE) $(COMPAT) $
- #<<want to use a nonstandard CC?>>
- #CC		=	vcc
- #<<manifest defines>>
--DEFS		=
-+DEFS		= -s -DWITH_SELINUX
-+LIBS		+= 	-lselinux
- #(SGI IRIX systems need this)
- #DEFS		=	-D_BSD_SIGNALS -Dconst=
- #<<the name of the BSD-like install program>>
---- vixie-cron-3.0.1/database.c.selinux	2003-05-20 14:52:56.000000000 -0400
-+++ vixie-cron-3.0.1/database.c	2003-05-23 13:27:24.898020960 -0400
-@@ -28,6 +28,15 @@
- 
- #include "cron.h"
- 
-+#ifdef WITH_SELINUX
-+#include <selinux/selinux.h>
-+#include <selinux/flask.h>
-+#include <selinux/av_permissions.h>
-+#define SYSUSERNAME "system_u"
-+#else
-+#define SYSUSERNAME "*system*"
-+#endif
-+
- #define TMAX(a,b) ((a)>(b)?(a):(b))
- 
- static	void		process_crontab(const char *, const char *,
-@@ -217,7 +226,7 @@
- 	if (fname == NULL) {
- 		/* must be set to something for logging purposes.
- 		 */
--		fname = "*system*";
-+		fname = SYSUSERNAME;
- 	} else if ((pw = getpwnam(uname)) == NULL) {
- 		/* file doesn't have a user in passwd file.
- 		 */
-@@ -279,6 +288,43 @@
- 		free_user(u);
- 		log_it(fname, getpid(), "RELOAD", tabname);
- 	}
-+#ifdef WITH_SELINUX
-+	if (is_selinux_enabled())	{
-+	  security_context_t  file_context=NULL;
-+	  security_context_t   user_context=NULL;
-+	  struct av_decision avd;
-+	  int retval=0;
-+
-+	  if (fgetfilecon(crontab_fd, &file_context) < OK) {
-+	    log_it(fname, getpid(), "getfilecon FAILED", tabname);
-+	    goto next_crontab;
-+	  }
-+
-+	  /*
-+	   * Since crontab files are not directly executed,
-+	   * crond must ensure that the crontab file has
-+	   * a context that is appropriate for the context of
-+	   * the user cron job.  It performs an entrypoint
-+	   * permission check for this purpose.
-+	   */
-+	  if (get_default_context(fname, NULL, &user_context)) {
-+	    log_it(fname, getpid(), "NO CONTEXT", tabname);
-+	    freecon(file_context);
-+	    goto next_crontab;
-+	  }
-+	  retval = security_compute_av(user_context,
-+				       file_context,
-+				       SECCLASS_FILE,
-+				       FILE__ENTRYPOINT,
-+				       &avd);
-+	  freecon(user_context);
-+	  freecon(file_context);
-+	  if (retval || ((FILE__ENTRYPOINT & avd.allowed) != FILE__ENTRYPOINT)) {
-+	    log_it(fname, getpid(), "ENTRYPOINT FAILED", tabname);
-+	    goto next_crontab;
-+	  }
-+	}
-+#endif
- 	u = load_user(crontab_fd, pw, fname);
- 	if (u != NULL) {
- 		u->mtime = statbuf->st_mtime;
---- vixie-cron-3.0.1/do_command.c.selinux	2003-05-20 14:53:12.000000000 -0400
-+++ vixie-cron-3.0.1/do_command.c	2003-05-20 14:58:06.000000000 -0400
-@@ -25,6 +25,10 @@
- 
- #include "cron.h"
- 
-+#ifdef WITH_SELINUX
-+#include <selinux/selinux.h>
-+#endif
-+
- static void		child_process(entry *, user *);
- static int		safe_p(const char *, const char *);
- 
-@@ -265,6 +269,20 @@
- 				_exit(OK_EXIT);
- 			}
- # endif /*DEBUGGING*/
-+#ifdef WITH_SELINUX
-+			if (is_selinux_enabled()) {
-+			  security_context_t scontext;
-+			  if (get_default_context(u->name, NULL, &scontext)) {
-+			    fprintf(stderr, "execle_secure: couldn't get security context for user %s\n", u->name); 
-+			    _exit(ERROR_EXIT);
-+			  }
-+			  if (setexeccon(scontext) < 0) {
-+			    fprintf(stderr, "Could not set exec context to %s for user  %s\n", scontext,u->name);
-+			    _exit(ERROR_EXIT);
-+			  }
-+			  freecon(scontext);
-+			}
-+#endif
- 			execle(shell, shell, "-c", e->cmd, (char *)0, e->envp);
- 			fprintf(stderr, "execl: couldn't exec `%s'\n", shell);
- 			perror("execl");


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-11-04  7:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-04  7:18 [gentoo-commits] repo/gentoo:master commit in: sys-process/vixie-cron/files/ Michael Palimaka
  -- strict thread matches above, loose matches on Subject: below --
2017-02-14 21:37 David Seifert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox