Move creds.h to 'src/common/'
authorMichael Jeanson <mjeanson@efficios.com>
Tue, 6 Apr 2021 23:17:41 +0000 (19:17 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 13 Apr 2021 18:51:14 +0000 (14:51 -0400)
Change-Id: Ifbb7f9a1af76f1f2ae2bcaa9d7d625ffc2299bfa
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
src/common/Makefile.am
src/common/creds.h [new file with mode: 0644]
src/lib/lttng-ust/Makefile.am
src/lib/lttng-ust/creds.h [deleted file]
src/lib/lttng-ust/lttng-context-vegid.c
src/lib/lttng-ust/lttng-context-veuid.c
src/lib/lttng-ust/lttng-context-vgid.c
src/lib/lttng-ust/lttng-context-vsgid.c
src/lib/lttng-ust/lttng-context-vsuid.c
src/lib/lttng-ust/lttng-context-vuid.c

index b847001e41b72a307b00ce7edaa7ef5406246dc6..d80172dd0b9482d0a6689f17de5310afdf92fde2 100644 (file)
@@ -11,6 +11,7 @@ noinst_HEADERS = \
        bitfield.h \
        bitmap.h \
        clock.h \
+       creds.h \
        dynamic-type.h \
        elf.h \
        events.h \
diff --git a/src/common/creds.h b/src/common/creds.h
new file mode 100644 (file)
index 0000000..758e1b4
--- /dev/null
@@ -0,0 +1,17 @@
+/*
+ * SPDX-License-Identifier: LGPL-2.1-only
+ *
+ * Copyright (C) 2019 Michael Jeanson <mjeanson@efficios.com>
+ */
+
+#ifndef _UST_COMMON_CREDS_H
+#define _UST_COMMON_CREDS_H
+
+/*
+ * This is used in the kernel as an invalid value.
+ */
+
+#define INVALID_UID (uid_t) -1
+#define INVALID_GID (gid_t) -1
+
+#endif /* _UST_COMMON_CREDS_H */
index 5612cb6450075b561de8e86f10dacc8289f1d69d..ef035a18a8a255c8dde244eacfba57c8020f4a97 100644 (file)
@@ -91,7 +91,6 @@ liblttng_ust_runtime_la_SOURCES = \
        string-utils.h \
        event-notifier-notification.c \
        ns.h \
-       creds.h \
        rculfhash.c \
        rculfhash.h \
        rculfhash-internal.h \
diff --git a/src/lib/lttng-ust/creds.h b/src/lib/lttng-ust/creds.h
deleted file mode 100644 (file)
index f82b9b8..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-/*
- * SPDX-License-Identifier: LGPL-2.1-only
- *
- * Copyright (C) 2019 Michael Jeanson <mjeanson@efficios.com>
- */
-
-#ifndef _LTTNG_CREDS_H
-#define _LTTNG_CREDS_H
-
-/*
- * 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 */
index 97618ce0b6e20c01fd71993d6ddeadc3a030654d..0f4817839e0fb20bd9e15d8b8478b67b22a90c0a 100644 (file)
@@ -18,7 +18,7 @@
 #include <lttng/ringbuffer-context.h>
 
 #include "context-internal.h"
-#include "creds.h"
+#include "common/creds.h"
 
 
 /*
index 5c2a1d83fd05aae709184c0b55dc7478eb39f308..cb532be11d05026722c10c3f9a0c0bb6cf2b2060 100644 (file)
@@ -18,7 +18,7 @@
 #include <lttng/ringbuffer-context.h>
 
 #include "context-internal.h"
-#include "creds.h"
+#include "common/creds.h"
 
 
 /*
index e43d5bc2b03749372bc69e43de7da4197ea2103f..9bf02abe2b16c012ed3ce9aa1252fdf32ad0ba5c 100644 (file)
@@ -18,7 +18,7 @@
 #include <lttng/ringbuffer-context.h>
 
 #include "context-internal.h"
-#include "creds.h"
+#include "common/creds.h"
 
 
 /*
index 92785420e9d5c1cd30c545603d4db89deb99d21e..8034a0247333958652af74bc453cf5f4c295c49e 100644 (file)
@@ -18,7 +18,7 @@
 #include <lttng/ringbuffer-context.h>
 
 #include "context-internal.h"
-#include "creds.h"
+#include "common/creds.h"
 
 
 /*
index fa7f3a10ffd90e6873f6ec210f2d1b6e5f039f0e..7d4009697359f115cb2f2443a25165dd410a6575 100644 (file)
@@ -18,7 +18,7 @@
 #include <lttng/ringbuffer-context.h>
 
 #include "context-internal.h"
-#include "creds.h"
+#include "common/creds.h"
 
 
 /*
index 775f2cbf5f32f132eab22bc3e59c5b6e23c36e6b..7153c130ee77c939659e09cf4d18dc34a42efb99 100644 (file)
@@ -18,7 +18,7 @@
 #include <lttng/ringbuffer-context.h>
 
 #include "context-internal.h"
-#include "creds.h"
+#include "common/creds.h"
 
 
 /*
This page took 0.028522 seconds and 4 git commands to generate.