All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ivan Gyurdiev <ivg2@cornell.edu>
To: SELinux List <SELinux@tycho.nsa.gov>
Cc: Stephen Smalley <sds@tycho.nsa.gov>
Subject: [SEMANAGE] Include guards for internal headers
Date: Mon, 12 Dec 2005 19:48:36 -0500	[thread overview]
Message-ID: <439E1A64.7030007@cornell.edu> (raw)

[-- 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

             reply	other threads:[~2005-12-13  0:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-13  0:48 Ivan Gyurdiev [this message]
2005-12-13 15:58 ` [SEMANAGE] Include guards for internal headers Stephen Smalley

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=439E1A64.7030007@cornell.edu \
    --to=ivg2@cornell.edu \
    --cc=SELinux@tycho.nsa.gov \
    --cc=sds@tycho.nsa.gov \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.