Andrew Geissler | 7e0e3c0 | 2022-02-25 20:34:39 +0000 | [diff] [blame] | 1 | From d16f7b37c917b91e951b9313e2c8264c72ed93e5 Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Fri, 21 Jan 2022 15:17:37 -0800 |
| 4 | Subject: [PATCH 2/2] Add sys/stat.h for S_IFDIR |
| 5 | |
| 6 | ../git/src/shared/mkdir-label.c:13:61: error: use of undeclared identifier 'S_IFDIR' |
| 7 | r = mac_selinux_create_file_prepare_at(dirfd, path, S_IFDIR); |
| 8 | |
| 9 | Upstream-Status: Pending |
| 10 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 11 | --- |
| 12 | src/shared/mkdir-label.c | 1 + |
| 13 | 1 file changed, 1 insertion(+) |
| 14 | |
| 15 | diff --git a/src/shared/mkdir-label.c b/src/shared/mkdir-label.c |
| 16 | index d36a6466d7..63b764cd83 100644 |
| 17 | --- a/src/shared/mkdir-label.c |
| 18 | +++ b/src/shared/mkdir-label.c |
| 19 | @@ -4,6 +4,7 @@ |
| 20 | #include "selinux-util.h" |
| 21 | #include "smack-util.h" |
| 22 | #include "user-util.h" |
| 23 | +#include <sys/stat.h> |
| 24 | |
| 25 | int mkdirat_label(int dirfd, const char *path, mode_t mode) { |
| 26 | int r; |
| 27 | -- |
| 28 | 2.34.1 |
| 29 | |