All of lore.kernel.org
 help / color / mirror / Atom feed
* [SEPOL] Include guards for internal headers
@ 2005-12-31 12:24 Ivan Gyurdiev
  0 siblings, 0 replies; only message in thread
From: Ivan Gyurdiev @ 2005-12-31 12:24 UTC (permalink / raw)
  To: SELinux List; +Cc: Stephen Smalley

[-- Attachment #1: Type: text/plain, Size: 66 bytes --]

This patch adds include guards for _internal.h headers in sepol.


[-- Attachment #2: libsepol2.include_guards.diff --]
[-- Type: text/x-patch, Size: 3863 bytes --]

diff -Naurp --exclude-from excludes old/libsepol/src/boolean_internal.h new/libsepol/src/boolean_internal.h
--- old/libsepol/src/boolean_internal.h	2005-11-01 17:32:58.000000000 -0500
+++ new/libsepol/src/boolean_internal.h	2005-12-31 07:06:02.000000000 -0500
@@ -1,3 +1,6 @@
+#ifndef _SEPOL_BOOLEAN_INTERNAL_H_
+#define _SEPOL_BOOLEAN_INTERNAL_H_
+
 #include <sepol/boolean_record.h>
 #include <sepol/booleans.h>
 #include "dso.h"
@@ -10,3 +13,5 @@ hidden_proto(sepol_bool_get_value)
 hidden_proto(sepol_bool_set_value)
 hidden_proto(sepol_bool_create)
 hidden_proto(sepol_bool_free)
+
+#endif
diff -Naurp --exclude-from excludes old/libsepol/src/context.h new/libsepol/src/context.h
--- old/libsepol/src/context.h	2005-11-01 17:32:58.000000000 -0500
+++ new/libsepol/src/context.h	2005-12-31 07:10:21.000000000 -0500
@@ -1,5 +1,5 @@
-#ifndef _SEPOL_CONTEXT_INTERNAL_H_
-#define _SEPOL_CONTEXT_INTERNAL_H_
+#ifndef _SEPOL_INTERNAL_CONTEXT_H_
+#define _SEPOL_INTERNAL_CONTEXT_H_
 
 #include <stddef.h>
 #include "context_internal.h"
diff -Naurp --exclude-from excludes old/libsepol/src/context_internal.h new/libsepol/src/context_internal.h
--- old/libsepol/src/context_internal.h	2005-11-01 17:32:58.000000000 -0500
+++ new/libsepol/src/context_internal.h	2005-12-31 07:08:24.000000000 -0500
@@ -1,3 +1,6 @@
+#ifndef _SEPOL_CONTEXT_INTERNAL_H_
+#define _SEPOL_CONTEXT_INTERNAL_H_
+
 #include <sepol/context_record.h>
 #include "dso.h"
 
@@ -13,3 +16,5 @@ hidden_proto(sepol_context_set_mls)
 hidden_proto(sepol_context_set_role)
 hidden_proto(sepol_context_set_type)
 hidden_proto(sepol_context_set_user)
+
+#endif
diff -Naurp --exclude-from excludes old/libsepol/src/iface_internal.h new/libsepol/src/iface_internal.h
--- old/libsepol/src/iface_internal.h	2005-11-01 17:32:59.000000000 -0500
+++ new/libsepol/src/iface_internal.h	2005-12-31 07:08:50.000000000 -0500
@@ -1,3 +1,6 @@
+#ifndef _SEPOL_IFACE_INTERNAL_H_
+#define _SEPOL_IFACE_INTERNAL_H_
+
 #include <sepol/iface_record.h>
 #include <sepol/interfaces.h>
 #include "dso.h"
@@ -12,3 +15,5 @@ hidden_proto(sepol_iface_key_unpack)
 hidden_proto(sepol_iface_set_ifcon)
 hidden_proto(sepol_iface_set_msgcon)
 hidden_proto(sepol_iface_set_name)
+
+#endif
diff -Naurp --exclude-from excludes old/libsepol/src/policydb_internal.h new/libsepol/src/policydb_internal.h
--- old/libsepol/src/policydb_internal.h	2005-11-01 17:32:59.000000000 -0500
+++ new/libsepol/src/policydb_internal.h	2005-12-31 07:09:56.000000000 -0500
@@ -1,5 +1,10 @@
+#ifndef _SEPOL_POLICYDB_INTERNAL_H_
+#define _SEPOL_POLICYDB_INTERNAL_H_
+
 #include <sepol/policydb.h>
 #include "dso.h"
 
 hidden_proto(sepol_policydb_create)
 hidden_proto(sepol_policydb_free)
+
+#endif
diff -Naurp --exclude-from excludes old/libsepol/src/port_internal.h new/libsepol/src/port_internal.h
--- old/libsepol/src/port_internal.h	2005-11-01 17:32:59.000000000 -0500
+++ new/libsepol/src/port_internal.h	2005-12-31 07:09:11.000000000 -0500
@@ -1,3 +1,6 @@
+#ifndef _SEPOL_PORT_INTERNAL_H_
+#define _SEPOL_PORT_INTERNAL_H_
+
 #include <sepol/port_record.h>
 #include <sepol/ports.h>
 #include "dso.h"
@@ -14,3 +17,5 @@ hidden_proto(sepol_port_key_unpack)
 hidden_proto(sepol_port_set_con)
 hidden_proto(sepol_port_set_proto)
 hidden_proto(sepol_port_set_range)
+
+#endif
diff -Naurp --exclude-from excludes old/libsepol/src/user_internal.h new/libsepol/src/user_internal.h
--- old/libsepol/src/user_internal.h	2005-11-28 14:11:30.000000000 -0500
+++ new/libsepol/src/user_internal.h	2005-12-31 07:09:31.000000000 -0500
@@ -1,3 +1,6 @@
+#ifndef _SEPOL_USER_INTERNAL_H_
+#define _SEPOL_USER_INTERNAL_H_
+
 #include <sepol/user_record.h>
 #include <sepol/users.h>
 #include "dso.h"
@@ -14,3 +17,5 @@ hidden_proto(sepol_user_key_unpack)
 hidden_proto(sepol_user_set_mlslevel)
 hidden_proto(sepol_user_set_mlsrange)
 hidden_proto(sepol_user_set_name)
+
+#endif

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-12-31 12:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-31 12:24 [SEPOL] Include guards for internal headers Ivan Gyurdiev

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.