--- linux-2.6.7-rsbac-v1.2.3/fs/exec.c~	2004-06-25 10:23:53.000000000 +0200
+++ linux-2.6.7-rsbac-v1.2.3/fs/exec.c	2004-06-25 10:23:53.000000000 +0200
@@ -1151,12 +1151,6 @@
 	int retval;
 	int i;
 
-	file = open_exec(filename);
-
-	retval = PTR_ERR(file);
-	if (IS_ERR(file))
-		return retval;
-
         /* RSBAC */
         #ifdef CONFIG_RSBAC
         union rsbac_target_id_t       rsbac_target_id;
@@ -1164,6 +1158,12 @@
         union rsbac_attribute_value_t rsbac_attribute_value;
         #endif
 
+	file = open_exec(filename);
+
+	retval = PTR_ERR(file);
+	if (IS_ERR(file))
+		return retval;
+
 	sched_balance_exec();
 
 	bprm.p = PAGE_SIZE*MAX_ARG_PAGES-sizeof(void *);
