version 1.24, 2009/04/11 11:48:06 |
version 1.25, 2009/06/21 14:48:42 |
|
|
/* |
/* |
* Copyright (c) 1993-1996, 1998-2005, 2007-2008 |
* Copyright (c) 1993-1996, 1998-2005, 2007-2009 |
* Todd C. Miller <Todd.Miller@courtesan.com> |
* Todd C. Miller <Todd.Miller@courtesan.com> |
* |
* |
* Permission to use, copy, modify, and distribute this software for any |
* Permission to use, copy, modify, and distribute this software for any |
|
|
* Agency (DARPA) and Air Force Research Laboratory, Air Force |
* Agency (DARPA) and Air Force Research Laboratory, Air Force |
* Materiel Command, USAF, under agreement number F39502-99-1-0512. |
* Materiel Command, USAF, under agreement number F39502-99-1-0512. |
* |
* |
* $Sudo: sudo.h,v 1.270 2009/03/01 00:58:40 millert Exp $ |
* $Sudo: sudo.h,v 1.273 2009/05/25 12:02:41 millert Exp $ |
*/ |
*/ |
|
|
#ifndef _SUDO_SUDO_H |
#ifndef _SUDO_SUDO_H |
|
|
#define PERM_RUNAS 0x04 |
#define PERM_RUNAS 0x04 |
#define PERM_FULL_RUNAS 0x05 |
#define PERM_FULL_RUNAS 0x05 |
#define PERM_TIMESTAMP 0x06 |
#define PERM_TIMESTAMP 0x06 |
|
#define PERM_NOEXIT 0x10 /* flag */ |
|
#define PERM_MASK 0xf0 |
|
|
/* |
/* |
* Shortcuts for sudo_user contents. |
* Shortcuts for sudo_user contents. |
|
|
int sudo_file_display_defaults __P((struct sudo_nss *, struct passwd *, struct lbuf *)); |
int sudo_file_display_defaults __P((struct sudo_nss *, struct passwd *, struct lbuf *)); |
int sudo_file_display_bound_defaults __P((struct sudo_nss *, struct passwd *, struct lbuf *)); |
int sudo_file_display_bound_defaults __P((struct sudo_nss *, struct passwd *, struct lbuf *)); |
int sudo_file_display_privs __P((struct sudo_nss *, struct passwd *, struct lbuf *)); |
int sudo_file_display_privs __P((struct sudo_nss *, struct passwd *, struct lbuf *)); |
void set_perms __P((int)); |
int set_perms __P((int)); |
void remove_timestamp __P((int)); |
void remove_timestamp __P((int)); |
int check_secureware __P((char *)); |
int check_secureware __P((char *)); |
void sia_attempt_auth __P((void)); |
void sia_attempt_auth __P((void)); |
|
|
int pam_prep_user __P((struct passwd *)); |
int pam_prep_user __P((struct passwd *)); |
void zero_bytes __P((volatile void *, size_t)); |
void zero_bytes __P((volatile void *, size_t)); |
int gettime __P((struct timespec *)); |
int gettime __P((struct timespec *)); |
FILE *open_sudoers __P((const char *, int *)); |
FILE *open_sudoers __P((const char *, int, int *)); |
void display_privs __P((struct sudo_nss_list *, struct passwd *)); |
void display_privs __P((struct sudo_nss_list *, struct passwd *)); |
int display_cmnd __P((struct sudo_nss_list *, struct passwd *)); |
int display_cmnd __P((struct sudo_nss_list *, struct passwd *)); |
int get_ttycols __P((void)); |
int get_ttycols __P((void)); |