X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fshared%2Futil.h;h=57667ef895a4629164a05afe152d2fbc869a39d3;hp=338d79c7ac5822be36c0c1b312df422b1aeef1c6;hb=eff05270986a13e7de93ae16311f654d3f7c166f;hpb=96415cad2fdd8d280ae94b02651b5f826a2f7f3d;ds=sidebyside diff --git a/src/shared/util.h b/src/shared/util.h index 338d79c7a..57667ef89 100644 --- a/src/shared/util.h +++ b/src/shared/util.h @@ -40,6 +40,7 @@ #include #include #include +#include #include "macro.h" #include "time-util.h" @@ -811,3 +812,6 @@ int namespace_open(pid_t pid, int *pidns_fd, int *mntns_fd, int *root_fd); int namespace_enter(int pidns_fd, int mntns_fd, int root_fd); bool pid_valid(pid_t pid); + +int getpeercred(int fd, struct ucred *ucred); +int getpeersec(int fd, char **ret);