All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/5] libselinux: rename existing name<->value functions for compat
@ 2007-06-06 19:10 Christopher J. PeBenito
  2007-06-06 20:12 ` Eamon Walsh
  0 siblings, 1 reply; 5+ messages in thread
From: Christopher J. PeBenito @ 2007-06-06 19:10 UTC (permalink / raw)
  To: SELinux Mail List

Rename existing object class and av perm value->string and string->value functions
to internal compatibility functions.

Signed-off-by: Chris PeBenito <cpebenito@tresys.com>

---
 libselinux/src/stringrep.c |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

Index: selinux-obj-class-discovery/libselinux/src/stringrep.c
===================================================================
--- selinux-obj-class-discovery.orig/libselinux/src/stringrep.c
+++ selinux-obj-class-discovery/libselinux/src/stringrep.c
@@ -144,7 +144,7 @@ static const struct av_inherit {
 #define NCLASSES ARRAY_SIZE(class_to_string)
 #define NVECTORS ARRAY_SIZE(av_perm_to_string)
 
-security_class_t string_to_security_class(const char *s)
+static security_class_t string_to_security_class_compat(const char *s)
 {
 	unsigned int val;
 
@@ -163,7 +163,7 @@ security_class_t string_to_security_clas
 	return 0;
 }
 
-access_vector_t string_to_av_perm(security_class_t tclass, const char *s)
+static access_vector_t string_to_av_perm_compat(security_class_t tclass, const char *s)
 {
 	const uint16_t *common_pts_idx = 0;
 	access_vector_t perm, common_base = 0;
@@ -200,13 +200,13 @@ access_vector_t string_to_av_perm(securi
 	return 0;
 }
 
-const char *security_class_to_string(security_class_t tclass)
+static const char *security_class_to_string_compat(security_class_t tclass)
 {
 	tclass = (tclass > 0 && tclass < NCLASSES) ? tclass : 0;
 	return class_to_string_data.str + class_to_string[tclass];
 }
 
-const char *security_av_perm_to_string(security_class_t tclass,
+static const char *security_av_perm_to_string_compat(security_class_t tclass,
 				       access_vector_t av)
 {
 	const uint16_t *common_pts_idx = 0;


--
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] 5+ messages in thread
* [PATCH 1/5] libselinux: rename existing name<->value functions for compat
@ 2007-06-07 13:38 Christopher J. PeBenito
  0 siblings, 0 replies; 5+ messages in thread
From: Christopher J. PeBenito @ 2007-06-07 13:38 UTC (permalink / raw)
  To: SELinux Mail List

Rename existing object class and av perm value->string and string->value functions
to internal compatibility functions.

Signed-off-by: Chris PeBenito <cpebenito@tresys.com>

---
 libselinux/src/stringrep.c |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

Index: selinux-obj-class-discovery/libselinux/src/stringrep.c
===================================================================
--- selinux-obj-class-discovery.orig/libselinux/src/stringrep.c
+++ selinux-obj-class-discovery/libselinux/src/stringrep.c
@@ -144,7 +144,7 @@ static const struct av_inherit {
 #define NCLASSES ARRAY_SIZE(class_to_string)
 #define NVECTORS ARRAY_SIZE(av_perm_to_string)
 
-security_class_t string_to_security_class(const char *s)
+static security_class_t string_to_security_class_compat(const char *s)
 {
 	unsigned int val;
 
@@ -164,7 +164,7 @@ security_class_t string_to_security_clas
 	return 0;
 }
 
-access_vector_t string_to_av_perm(security_class_t tclass, const char *s)
+static access_vector_t string_to_av_perm_compat(security_class_t tclass, const char *s)
 {
 	const uint16_t *common_pts_idx = 0;
 	access_vector_t perm, common_base = 0;
@@ -202,7 +202,7 @@ access_vector_t string_to_av_perm(securi
 	return 0;
 }
 
-const char *security_class_to_string(security_class_t tclass)
+static const char *security_class_to_string_compat(security_class_t tclass)
 {
 	if (tclass > 0 && tclass < NCLASSES)
 		return class_to_string_data.str + class_to_string[tclass];
@@ -211,7 +211,7 @@ const char *security_class_to_string(sec
 	return NULL;
 }
 
-const char *security_av_perm_to_string(security_class_t tclass,
+static const char *security_av_perm_to_string_compat(security_class_t tclass,
 				       access_vector_t av)
 {
 	const uint16_t *common_pts_idx = 0;


--
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] 5+ messages in thread

end of thread, other threads:[~2007-06-07 13:40 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-06 19:10 [PATCH 1/5] libselinux: rename existing name<->value functions for compat Christopher J. PeBenito
2007-06-06 20:12 ` Eamon Walsh
2007-06-06 22:16   ` Joshua Brindle
2007-06-06 23:26     ` Eamon Walsh
  -- strict thread matches above, loose matches on Subject: below --
2007-06-07 13:38 Christopher J. PeBenito

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.