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: [SEPOL] Include guards for internal headers
Date: Sat, 31 Dec 2005 07:24:46 -0500	[thread overview]
Message-ID: <43B6788E.40103@cornell.edu> (raw)

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

                 reply	other threads:[~2005-12-31 12:24 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=43B6788E.40103@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.