X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=liblttng-ust%2Fcreds.h;fp=liblttng-ust%2Fcreds.h;h=b29319e0d1cb9aa2bc54ba7262f2e6d43865c2a8;hb=e4215fb7fae0ffd2ea4f69b2013ecebbf401fc0c;hp=0000000000000000000000000000000000000000;hpb=4b5f26af4d267f5e5a1eb9dbfd8ca4fd5f5896fb;p=lttng-ust.git diff --git a/liblttng-ust/creds.h b/liblttng-ust/creds.h new file mode 100644 index 00000000..b29319e0 --- /dev/null +++ b/liblttng-ust/creds.h @@ -0,0 +1,29 @@ +#ifndef _LTTNG_CREDS_H +#define _LTTNG_CREDS_H + +/* + * Copyright (c) 2019 - Michael Jeanson + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; only + * version 2.1 of the License. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ + +/* + * This is used in the kernel as an invalid value. + */ + +#define INVALID_UID (uid_t) -1 +#define INVALID_GID (gid_t) -1 + +#endif /* _LTTNG_CREDS_H */