Skip to contentSkip to conversation

Dropping support for disabling caching of context translations (CACHETRANS=0)

PATCH New Steve G 1 participant 1 message Mar 8, 2007 SELinux security module

lore
Share & tools
lore

Steve G

author
#0 lore raw

PATCH 1/1 Dropping support for disabling caching of context translations (CACHETRANS=0)

Quoted 2 lines

So, is anyone using CACHETRANS=0? Do we need to retain it going forward in the trunk?

Attaching a patch dropping this config option.

-Steve

____________________________________________________________________________________
Looking for earth-friendly autos?
Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center.
http://autos.yahoo.com/green_center/

src/selinux_config.c +0 -5
diff -urp libselinux-2.0.4.orig/src/selinux_config.c libselinux-2.0.4/src/selinux_config.c
@@ -17,7 +17,6 @@
 #define SELINUXTAG "SELINUX="
 #define SETLOCALDEFS "SETLOCALDEFS="
 #define REQUIRESEUSERS "REQUIRESEUSERS="
-#define CACHETRANSTAG "CACHETRANS="
 
 /* Indices for file paths arrays. */
 #define BINPOLICY         0
@@ -174,10 +173,6 @@ static void init_selinux_config(void)
 					    sizeof(REQUIRESEUSERS) - 1)) {
 				value = buf_p + sizeof(REQUIRESEUSERS) - 1;
 				intptr = &require_seusers;
-			} else if (!strncmp(buf_p, CACHETRANSTAG,
-					    sizeof(CACHETRANSTAG) - 1)) {
-				value = buf_p + sizeof(CACHETRANSTAG) - 1;
-				intptr = &cache_trans;
 			} else {
 				continue;
 			}
src/selinux_internal.h +0 -1
diff -urp libselinux-2.0.4.orig/src/selinux_internal.h libselinux-2.0.4/src/selinux_internal.h
@@ -80,4 +80,3 @@ hidden_proto(selinux_trans_to_raw_contex
 extern int load_setlocaldefs hidden;
 extern int require_seusers hidden;
 extern int selinux_page_size hidden;
-extern int cache_trans hidden;
src/setrans_client.c +40 -50

118 lines not on this page · raw message