version 1.2, 1999/12/10 06:45:11 |
version 1.3, 2000/01/24 04:22:53 |
|
|
/* |
/* |
* Copyright (c) 1994-1996,1998-1999 Todd C. Miller <Todd.Miller@courtesan.com> |
* Copyright (c) 1994-1996,1998-2000 Todd C. Miller <Todd.Miller@courtesan.com> |
* All rights reserved. |
* All rights reserved. |
* |
* |
* Redistribution and use in source and binary forms, with or without |
* Redistribution and use in source and binary forms, with or without |
|
|
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF |
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF |
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
* |
* |
* $Sudo: sudo.h,v 1.164 1999/12/02 20:31:24 millert Exp $ |
* $Sudo: sudo.h,v 1.168 2000/01/17 23:46:26 millert Exp $ |
*/ |
*/ |
|
|
#ifndef _SUDO_SUDO_H |
#ifndef _SUDO_SUDO_H |
|
|
#define MODE_LISTDEFS 00200 |
#define MODE_LISTDEFS 00200 |
#define MODE_BACKGROUND 00400 |
#define MODE_BACKGROUND 00400 |
#define MODE_SHELL 01000 |
#define MODE_SHELL 01000 |
#define MODE_RESET_HOME 02000 |
#define MODE_IMPLIED_SHELL 02000 |
|
#define MODE_RESET_HOME 04000 |
|
|
/* |
/* |
* Used with set_perms() |
* Used with set_perms() |
|
|
#define SUDO_LOCK 1 /* lock a file */ |
#define SUDO_LOCK 1 /* lock a file */ |
#define SUDO_TLOCK 2 /* test & lock a file (non-blocking) */ |
#define SUDO_TLOCK 2 /* test & lock a file (non-blocking) */ |
#define SUDO_UNLOCK 4 /* unlock a file */ |
#define SUDO_UNLOCK 4 /* unlock a file */ |
|
|
|
/* |
|
* Flags for sudoers_lookup: |
|
* PASSWD_NEVER: user never has to give a passwd |
|
* PASSWD_ALL: no passwd needed if all entries for host have NOPASSWD flag |
|
* PASSWD_ANY: no passwd needed if any entry for host has a NOPASSWD flag |
|
* PASSWD_ALWAYS: passwd always needed |
|
*/ |
|
#define PWCHECK_NEVER 0x01 |
|
#define PWCHECK_ALL 0x02 |
|
#define PWCHECK_ANY 0x04 |
|
#define PWCHECK_ALWAYS 0x08 |
|
|
/* |
/* |
* Function prototypes |
* Function prototypes |