0002-Add-sys-stat.h-for-S_IFDIR.patch 788 B

1234567891011121314151617181920212223242526
  1. From 4b731a5e2547b5292f9a774b849e14c0cf7b3955 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] Add sys/stat.h for S_IFDIR
  5. ../git/src/shared/mkdir-label.c:13:61: error: use of undeclared identifier 'S_IFDIR'
  6. r = mac_selinux_create_file_prepare_at(dirfd, path, S_IFDIR);
  7. Upstream-Status: Backport [29b7114c5d9624002aa7c17748d960cd1e45362d]
  8. Signed-off-by: Khem Raj <raj.khem@gmail.com>
  9. ---
  10. src/shared/mkdir-label.c | 1 +
  11. 1 file changed, 1 insertion(+)
  12. --- a/src/shared/mkdir-label.c
  13. +++ b/src/shared/mkdir-label.c
  14. @@ -7,6 +7,7 @@
  15. #include "selinux-util.h"
  16. #include "smack-util.h"
  17. #include "user-util.h"
  18. +#include <sys/stat.h>
  19. int mkdirat_label(int dirfd, const char *path, mode_t mode) {
  20. int r;