2010-03-09 16:07:02 +00:00
|
|
|
Index: libqpol/src/module_compiler.c
|
|
|
|
===================================================================
|
|
|
|
--- libqpol/src/module_compiler.c.orig
|
2009-08-11 15:57:05 +00:00
|
|
|
+++ libqpol/src/module_compiler.c
|
2010-03-09 16:07:02 +00:00
|
|
|
@@ -257,6 +257,7 @@ role_datum_t *declare_role(void)
|
2009-08-11 15:57:05 +00:00
|
|
|
assert(0); /* should never get here */
|
|
|
|
}
|
|
|
|
}
|
|
|
|
+ return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
type_datum_t *declare_type(unsigned char primary, unsigned char isattr)
|
2010-03-09 16:07:02 +00:00
|
|
|
@@ -324,6 +325,7 @@ type_datum_t *declare_type(unsigned char
|
2009-08-11 15:57:05 +00:00
|
|
|
assert(0); /* should never get here */
|
|
|
|
}
|
|
|
|
}
|
|
|
|
+ return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
user_datum_t *declare_user(void)
|
2010-03-09 16:07:02 +00:00
|
|
|
@@ -419,6 +421,7 @@ user_datum_t *declare_user(void)
|
2009-08-11 15:57:05 +00:00
|
|
|
assert(0); /* should never get here */
|
|
|
|
}
|
|
|
|
}
|
|
|
|
+ return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Return a type_datum_t for the local avrule_decl with the given ID.
|
2010-03-09 16:07:02 +00:00
|
|
|
@@ -771,6 +774,7 @@ int require_role(int pass)
|
2009-08-11 15:57:05 +00:00
|
|
|
assert(0); /* should never get here */
|
|
|
|
}
|
|
|
|
}
|
|
|
|
+ return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static int require_type_or_attribute(int pass, unsigned char isattr)
|
2010-03-09 16:07:02 +00:00
|
|
|
@@ -828,6 +832,7 @@ static int require_type_or_attribute(int
|
2009-08-11 15:57:05 +00:00
|
|
|
assert(0); /* should never get here */
|
|
|
|
}
|
|
|
|
}
|
|
|
|
+ return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
int require_type(int pass)
|
2010-03-09 16:07:02 +00:00
|
|
|
@@ -893,6 +898,7 @@ int require_user(int pass)
|
2009-08-11 15:57:05 +00:00
|
|
|
assert(0); /* should never get here */
|
|
|
|
}
|
|
|
|
}
|
|
|
|
+ return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
int require_bool(int pass)
|
2010-03-09 16:07:02 +00:00
|
|
|
@@ -946,6 +952,7 @@ int require_bool(int pass)
|
2009-08-11 15:57:05 +00:00
|
|
|
assert(0); /* should never get here */
|
|
|
|
}
|
|
|
|
}
|
|
|
|
+ return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
int require_sens(int pass)
|
2010-03-09 16:07:02 +00:00
|
|
|
@@ -1014,6 +1021,7 @@ int require_sens(int pass)
|
2009-08-11 15:57:05 +00:00
|
|
|
assert(0); /* should never get here */
|
|
|
|
}
|
|
|
|
}
|
|
|
|
+ return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
int require_cat(int pass)
|
2010-03-09 16:07:02 +00:00
|
|
|
@@ -1072,6 +1080,7 @@ int require_cat(int pass)
|
2009-08-11 15:57:05 +00:00
|
|
|
assert(0); /* should never get here */
|
|
|
|
}
|
|
|
|
}
|
|
|
|
+ return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static int is_scope_in_stack(scope_datum_t * scope, scope_stack_t * stack)
|
2010-03-09 16:07:02 +00:00
|
|
|
Index: libqpol/src/policy_define.c
|
|
|
|
===================================================================
|
|
|
|
--- libqpol/src/policy_define.c.orig
|
2009-08-11 15:57:05 +00:00
|
|
|
+++ libqpol/src/policy_define.c
|
2010-03-09 16:07:02 +00:00
|
|
|
@@ -1410,6 +1410,7 @@ int define_compute_type(int which)
|
2009-08-11 15:57:05 +00:00
|
|
|
assert(0); /* should never get here */
|
|
|
|
}
|
|
|
|
}
|
|
|
|
+ return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
avrule_t *define_cond_compute_type(int which)
|