Skip to content

Commit

Permalink
Merge pull request #909 from arr2036/peercred_alt_autz
Browse files Browse the repository at this point in the history
Peercred alt autz
  • Loading branch information
arr2036 committed Feb 18, 2015
2 parents e2bc382 + 9b58cef commit 34792e0
Show file tree
Hide file tree
Showing 6 changed files with 504 additions and 38 deletions.
6 changes: 5 additions & 1 deletion configure
Expand Up @@ -9937,7 +9937,11 @@ for ac_func in \
getresuid \
strlcat \
strlcpy \
kqueue
kqueue \
openat \
mkdirat \
unlinkat \
bindat
do :
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
Expand Down
6 changes: 5 additions & 1 deletion configure.ac
Expand Up @@ -1442,7 +1442,11 @@ AC_CHECK_FUNCS( \
getresuid \
strlcat \
strlcpy \
kqueue
kqueue \
openat \
mkdirat \
unlinkat \
bindat
)

AC_TYPE_SIGNAL
Expand Down
12 changes: 12 additions & 0 deletions src/include/autoconf.h.in
Expand Up @@ -24,6 +24,9 @@
/* Define to 1 if you have the <arpa/inet.h> header file. */
#undef HAVE_ARPA_INET_H

/* Define to 1 if you have the `bindat' function. */
#undef HAVE_BINDAT

/* Define if we have a binary safe regular expression library */
#undef HAVE_BINSAFE_REGEX

Expand Down Expand Up @@ -200,6 +203,9 @@
/* Define to 1 if you have the <memory.h> header file. */
#undef HAVE_MEMORY_H

/* Define to 1 if you have the `mkdirat' function. */
#undef HAVE_MKDIRAT

/* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */
#undef HAVE_NDIR_H

Expand All @@ -212,6 +218,9 @@
/* Define to 1 if you have the <net/if.h> header file. */
#undef HAVE_NET_IF_H

/* Define to 1 if you have the `openat' function. */
#undef HAVE_OPENAT

/* Define to 1 if you have the <openssl/crypto.h> header file. */
#undef HAVE_OPENSSL_CRYPTO_H

Expand Down Expand Up @@ -445,6 +454,9 @@
/* Define to 1 if you have the <unistd.h> header file. */
#undef HAVE_UNISTD_H

/* Define to 1 if you have the `unlinkat' function. */
#undef HAVE_UNLINKAT

/* Define to 1 if you have the <utime.h> header file. */
#undef HAVE_UTIME_H

Expand Down
4 changes: 4 additions & 0 deletions src/include/radiusd.h
Expand Up @@ -563,13 +563,17 @@ char const *rad_default_sbin_dir(void);
char const *rad_radacct_dir(void);

void verify_request(char const *file, int line, REQUEST *request); /* only for special debug builds */
void rad_mode_to_str(char out[10], mode_t mode);
void rad_mode_to_oct(char out[5], mode_t mode);
int rad_getpwuid(TALLOC_CTX *ctx, struct passwd **out, uid_t uid);
int rad_getpwnam(TALLOC_CTX *ctx, struct passwd **out, char const *name);
int rad_getgrgid(TALLOC_CTX *ctx, struct group **out, gid_t gid);
int rad_getgrnam(TALLOC_CTX *ctx, struct group **out, char const *name);
int rad_getgid(TALLOC_CTX *ctx, gid_t *out, char const *name);
int rad_prints_uid(TALLOC_CTX *ctx, char *out, size_t outlen, uid_t uid);
int rad_prints_gid(TALLOC_CTX *ctx, char *out, size_t outlen, gid_t gid);
int rad_seuid(uid_t uid);
int rad_segid(gid_t gid);

void rad_suid_set_down_uid(uid_t uid);
void rad_suid_down(void);
Expand Down

0 comments on commit 34792e0

Please sign in to comment.