Return AUTH_* flags from check_user() instead of 1/0/-1.

This commit is contained in:
Todd C. Miller
2023-09-09 14:59:46 -06:00
parent 2fdb4db339
commit c54bdd799b
6 changed files with 15 additions and 21 deletions

View File

@@ -19,12 +19,9 @@
#ifndef SUDO_AUTH_H
#define SUDO_AUTH_H
/* Auth function return values (rowhammer resistent). */
#define AUTH_SUCCESS 0x52a2925 /* 0101001010100010100100100101 */
#define AUTH_FAILURE 0xad5d6da /* 1010110101011101011011011010 */
/* Private auth function return values (rowhammer resistent). */
#define AUTH_INTR 0x69d61fc8 /* 1101001110101100001111111001000 */
#define AUTH_ERROR 0x1629e037 /* 0010110001010011110000000110111 */
#define AUTH_NONINTERACTIVE 0x1fc8d3ac /* 11111110010001101001110101100 */
#define AUTH_NONINTERACTIVE 0x1629e037 /* 0010110001010011110000000110111 */
struct sudoers_context;
typedef struct sudo_auth {