]> granicus.if.org Git - sudo/commitdiff
added FAST_MATCH
authorTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 2 May 1995 03:33:10 +0000 (03:33 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 2 May 1995 03:33:10 +0000 (03:33 +0000)
OPTIONS
options.h

diff --git a/OPTIONS b/OPTIONS
index 7a241188038cc39391ff047d571d8aa0c64da278..a5005ca02fb2d7927c942edacbab31bc72b50fd2 100644 (file)
--- a/OPTIONS
+++ b/OPTIONS
@@ -138,3 +138,10 @@ USE_EXECV
     you define this you lose the ability to exec scripts that are missing the
     '#!/bin/sh' cookie (like /bin/kill on sunos and /etc/fastboot on 4.3BSD).
     This is off by default.
+
+FAST_MATCH
+    When matching a given command to a path listed in the sudoers file,
+    only check the inodes for a match if the basenames match.
+    If you want links to a command to be allowed then you should turn
+    this off, but it will make things take a little longer.
+    This is on by default.
index 9ca3fbdc0fd12c442a9eeb526b0d4ca71633ae5b..f89100abf69bcb35579c44a1b94d1aa9e2c6de41 100644 (file)
--- a/options.h
+++ b/options.h
@@ -55,6 +55,7 @@
 #define MAILSUBJECT "*** SECURITY information ***" /* subject of mail sent */
 /*#define SECURE_PATH  "/bin:/usr/ucb:/usr/bin:/usr/etc:/etc" /* secure path */
 /*#define USE_EXECV            /* use execv() instead of execvp() */
+#define FAST_MATCH             /* command check fails if basenames not same */
 
 /**********  You probably don't want to modify anything below here  ***********/