All of lore.kernel.org
 help / color / mirror / Atom feed
* [SEMANAGE] Include guards for internal headers
@ 2005-12-13  0:48 Ivan Gyurdiev
  2005-12-13 15:58 ` Stephen Smalley
  0 siblings, 1 reply; 2+ messages in thread
From: Ivan Gyurdiev @ 2005-12-13  0:48 UTC (permalink / raw)
  To: SELinux List; +Cc: Stephen Smalley

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

Adds include guards for _internal headers.


[-- Attachment #2: libsemanage.internal_include_guards.diff --]
[-- Type: text/x-patch, Size: 3762 bytes --]

diff -Naurp --exclude-from excludes old/libsemanage/src/boolean_internal.h new/libsemanage/src/boolean_internal.h
--- old/libsemanage/src/boolean_internal.h	2005-11-16 08:44:47.000000000 -0500
+++ new/libsemanage/src/boolean_internal.h	2005-12-12 19:25:24.000000000 -0500
@@ -1,3 +1,6 @@
+#ifndef _SEMANAGE_BOOLEAN_INTERNAL_H_
+#define _SEMANAGE_BOOLEAN_INTERNAL_H_
+
 #include <semanage/boolean_record.h>
 #include <semanage/booleans_local.h>
 #include <semanage/booleans_policy.h>
@@ -13,3 +16,5 @@ hidden_proto(semanage_bool_key_extract)
 hidden_proto(semanage_bool_key_free)
 hidden_proto(semanage_bool_set_name)
 hidden_proto(semanage_bool_set_value)
+
+#endif
diff -Naurp --exclude-from excludes old/libsemanage/src/handle_internal.h new/libsemanage/src/handle_internal.h
--- old/libsemanage/src/handle_internal.h	2005-11-04 15:37:49.000000000 -0500
+++ new/libsemanage/src/handle_internal.h	2005-12-12 19:25:46.000000000 -0500
@@ -1,6 +1,11 @@
+#ifndef _SEMANAGE_HANDLE_INTERNAL_H_
+#define _SEMANAGE_HANDLE_INTERNAL_H_
+
 #include <semanage/handle.h>
 #include "dso.h"
 
 hidden_proto(semanage_begin_transaction)
 hidden_proto(semanage_handle_destroy)
 hidden_proto(semanage_reload_policy)
+
+#endif
diff -Naurp --exclude-from excludes old/libsemanage/src/iface_internal.h new/libsemanage/src/iface_internal.h
--- old/libsemanage/src/iface_internal.h	2005-11-08 09:34:17.000000000 -0500
+++ new/libsemanage/src/iface_internal.h	2005-12-12 19:26:09.000000000 -0500
@@ -1,3 +1,6 @@
+#ifndef _SEMANAGE_IFACE_INTERNAL_H_
+#define _SEMANAGE_IFACE_INTERNAL_H_
+
 #include <semanage/iface_record.h>
 #include <semanage/interfaces_local.h>
 #include <semanage/interfaces_policy.h>
@@ -15,3 +18,5 @@ hidden_proto(semanage_iface_key_free)
 hidden_proto(semanage_iface_set_ifcon)
 hidden_proto(semanage_iface_set_msgcon)
 hidden_proto(semanage_iface_set_name)
+
+#endif
diff -Naurp --exclude-from excludes old/libsemanage/src/module_internal.h new/libsemanage/src/module_internal.h
--- old/libsemanage/src/module_internal.h	2005-11-04 15:37:49.000000000 -0500
+++ new/libsemanage/src/module_internal.h	2005-12-12 19:26:28.000000000 -0500
@@ -1,3 +1,6 @@
+#ifndef _SEMANAGE_MODULE_INTERNAL_H_
+#define _SEMANAGE_MODULE_INTERNAL_H_
+
 #include <semanage/modules.h>
 #include "dso.h"
 
@@ -5,3 +8,5 @@ hidden_proto(semanage_module_get_name)
 hidden_proto(semanage_module_get_version)
 hidden_proto(semanage_module_info_datum_destroy)
 hidden_proto(semanage_module_list_nth)
+
+#endif
diff -Naurp --exclude-from excludes old/libsemanage/src/seuser_internal.h new/libsemanage/src/seuser_internal.h
--- old/libsemanage/src/seuser_internal.h	2005-11-08 09:32:57.000000000 -0500
+++ new/libsemanage/src/seuser_internal.h	2005-12-12 19:26:59.000000000 -0500
@@ -1,3 +1,6 @@
+#ifndef _SEMANAGE_SEUSER_INTERNAL_H_
+#define _SEMANAGE_SEUSER_INTERNAL_H_
+
 #include <semanage/seuser_record.h>
 #include <semanage/seusers.h>
 #include "dso.h"
@@ -16,3 +19,5 @@ hidden_proto(semanage_seuser_key_free)
 hidden_proto(semanage_seuser_set_mlsrange)
 hidden_proto(semanage_seuser_set_name)
 hidden_proto(semanage_seuser_set_sename)
+
+#endif
diff -Naurp --exclude-from excludes old/libsemanage/src/user_internal.h new/libsemanage/src/user_internal.h
--- old/libsemanage/src/user_internal.h	2005-12-05 15:00:50.000000000 -0500
+++ new/libsemanage/src/user_internal.h	2005-12-12 19:27:27.000000000 -0500
@@ -1,3 +1,6 @@
+#ifndef _SEMANAGE_USER_INTERNAL_H_
+#define _SEMANAGE_USER_INTERNAL_H_
+
 #include <semanage/user_record.h>
 #include <semanage/users_local.h>
 #include <semanage/users_policy.h>
@@ -19,3 +22,5 @@ hidden_proto(semanage_user_key_free)
 hidden_proto(semanage_user_set_mlslevel)
 hidden_proto(semanage_user_set_mlsrange)
 hidden_proto(semanage_user_set_name)
+
+#endif

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [SEMANAGE] Include guards for internal headers
  2005-12-13  0:48 [SEMANAGE] Include guards for internal headers Ivan Gyurdiev
@ 2005-12-13 15:58 ` Stephen Smalley
  0 siblings, 0 replies; 2+ messages in thread
From: Stephen Smalley @ 2005-12-13 15:58 UTC (permalink / raw)
  To: Ivan Gyurdiev; +Cc: SELinux List

On Mon, 2005-12-12 at 19:48 -0500, Ivan Gyurdiev wrote:
> Adds include guards for _internal headers.

Thanks, all four patches merged as of libsemanage 1.5.2.

-- 
Stephen Smalley
National Security Agency


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-12-13 15:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-13  0:48 [SEMANAGE] Include guards for internal headers Ivan Gyurdiev
2005-12-13 15:58 ` Stephen Smalley

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.