aboutsummaryrefslogtreecommitdiff
path: root/selinux
diff options
context:
space:
mode:
Diffstat (limited to 'selinux')
-rw-r--r--selinux/setfiles.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/selinux/setfiles.c b/selinux/setfiles.c
index de99dfe44..51a7e63bd 100644
--- a/selinux/setfiles.c
+++ b/selinux/setfiles.c
@@ -77,9 +77,10 @@ struct globals {
77 int nerr; 77 int nerr;
78 struct edir excludeArray[MAX_EXCLUDES]; 78 struct edir excludeArray[MAX_EXCLUDES];
79} FIX_ALIASING; 79} FIX_ALIASING;
80#define G (*(struct globals*)&bb_common_bufsiz1) 80#define G (*(struct globals*)bb_common_bufsiz1)
81void BUG_setfiles_globals_too_big(void); 81void BUG_setfiles_globals_too_big(void);
82#define INIT_G() do { \ 82#define INIT_G() do { \
83 setup_common_bufsiz(); \
83 if (sizeof(G) > COMMON_BUFSIZE) \ 84 if (sizeof(G) > COMMON_BUFSIZE) \
84 BUG_setfiles_globals_too_big(); \ 85 BUG_setfiles_globals_too_big(); \
85 /* memset(&G, 0, sizeof(G)); - already is */ \ 86 /* memset(&G, 0, sizeof(G)); - already is */ \