blob: 7dfa1a0df23245ed75b25978e8fdcf2891490676 [file] [log] [blame]
Andrew Geissler7e0e3c02022-02-25 20:34:39 +00001From d16f7b37c917b91e951b9313e2c8264c72ed93e5 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 21 Jan 2022 15:17:37 -0800
4Subject: [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
9Upstream-Status: Pending
10Signed-off-by: Khem Raj <raj.khem@gmail.com>
11---
12 src/shared/mkdir-label.c | 1 +
13 1 file changed, 1 insertion(+)
14
15diff --git a/src/shared/mkdir-label.c b/src/shared/mkdir-label.c
16index 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--
282.34.1
29